2017-02-25 23:39 CET

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0004639MPDMPDpublic2017-02-10 22:24
Reporterprezi 
Assigned Tocirrus 
PrioritynormalSeveritycrashReproducibilityalways
StatusresolvedResolutionfixed 
Product Versiongit 
Target VersionFixed in Versiongit 
Summary0004639: terminate called after throwing an instance of 'std::bad_alloc'
DescriptionIn git on musl I got this:

terminate called after throwing an instance of 'std::bad_alloc'
  what(): std::bad_alloc
Aborted

It happens when I try to play any file.
I attached verbose output of mpd.
Additional Informationthis is version up till http://git.musicpd.org/cgit/master/mpd.git/commit/?id=b1c7649edb80285c113f4710dd4c19d8f7c1aef7

version up till http://git.musicpd.org/cgit/master/mpd.git/commit/?id=38507165221cdf0cc5c76020658b8c69d2a31dbe is just fine.

TagsNo tags attached.
Attached Files
  • txt file icon bug.txt (5,006 bytes) 2017-02-10 17:34 -
    config_file: loading file /etc/mpd.conf
    path: SetFSCharset: fs charset is:
    soxr: soxr converter 'very high'
    vorbis: Xiph.Org libVorbis 1.3.5
    simple_db: reading DB
    curl: version 7.51.0
    avahi: Initializing interface
    avahi: Client changed to state 2
    avahi: Client is RUNNING
    avahi: Registering service _mpd._tcp/SHADOW Music Player
    avahi: Service group changed to state 0
    avahi: Service group is UNCOMMITED
    state_file: Loading state file /tmp/mpd.state
    exception: OutputThread could not get realtime scheduling, continuing anyway: sched_setscheduler failed: Function not implemented
    avahi: Service group changed to state 1
    avahi: Service group is REGISTERING
    client: [0] opened from 127.0.0.1:36523
    client: [1] opened from local
    client: [2] opened from 127.0.0.1:60822
    client: [3] opened from local
    client: [0] process command "status"
    client: [0] command returned 0
    client: [1] closed
    client: [4] opened from 127.0.0.1:60824
    client: [2] process command "status"
    client: [2] command returned 0
    client: [3] process command "status"
    client: [3] command returned 0
    client: [0] closed
    client: [5] opened from 127.0.0.1:60826
    client: [4] closed
    client: [5] process command "idle database stored_playlist playlist player mixer output options update"
    client: [5] command returned 1
    client: [3] process command "lsinfo """
    client: [3] command returned 0
    client: [6] opened from 127.0.0.1:60828
    client: [6] process command "idle player"
    client: [6] command returned 1
    client: [3] process command "plchanges "0""
    client: [3] command returned 0
    client: [7] opened from 127.0.0.1:60830
    client: [7] process command "outputs"
    client: [7] command returned 0
    client: [3] process command "outputs"
    client: [3] command returned 0
    client: [3] process command "decoders"
    client: [3] command returned 0
    client: [3] process command "outputs"
    client: [3] command returned 0
    client: [3] process command "outputs"
    client: [3] command returned 0
    client: [3] process command "idle"
    client: [3] command returned 1
    avahi: Service group changed to state 2
    avahi: Service 'SHADOW Music Player' successfully established.
    client: [2] process command "status"
    client: [2] command returned 0
    client: [2] process command "currentsong"
    client: [2] command returned 0
    client: [2] process command "playlistinfo "1291""
    client: [2] command returned 0
    client: [7] process command "status"
    client: [7] command returned 0
    client: [7] process command "outputs"
    client: [7] command returned 0
    client: [2] process command "status"
    client: [2] command returned 0
    client: [2] process command "currentsong"
    client: [2] command returned 0
    client: [2] process command "playlistinfo "1291""
    client: [2] command returned 0
    client: [7] process command "status"
    client: [7] command returned 0
    client: [7] process command "outputs"
    client: [7] command returned 0
    client: [2] process command "status"
    client: [2] command returned 0
    client: [2] process command "currentsong"
    client: [2] command returned 0
    client: [2] process command "playlistinfo "1291""
    client: [2] command returned 0
    client: [7] process command "status"
    client: [7] command returned 0
    client: [7] process command "outputs"
    client: [7] command returned 0
    client: [3] process command "playid "5""
    playlist: play 4:"SKLADANKI/Kabaret_Dudek/CD1/1-01_Sygnal_kabaretu_I_powitanie.flac"
    client: [3] command returned 0
    playlist: queue song 5:"SKLADANKI/Kabaret_Dudek/CD1/1-02_Upupa_epops.flac"
    client: [3] process command "idle"
    client: [3] command returned 1
    decoder_thread: probing plugin flac
    decoder: audio_format=44100:16:2, seekable=true
    alsa_output: opened hw:V102,0 type=HW
    alsa_output: buffer: size=90..174762 time=2040..3962858
    alsa_output: period: size=45..87381 time=1020..1981429
    alsa_output: default period_time = buffer_time/4 = 500000/4 = 125000
    alsa_output: format=S24_3LE (Signed 24 bit Little Endian in 3bytes)
    alsa_output: buffer_size=22050 period_size=5513
    output: opened plugin=alsa name="V102,0 [USB-SPDIF V1.02 USB Audio]" audio_format=44100:24:2
    output: converting in=44100:16:2 -> f=44100:16:2 -> out=44100:24:2
    client: [5] process command list
    client: process command "status"
    client: command returned 0
    client: process command "currentsong"
    client: command returned 0
    client: [5] process command list returned 0
    client: [6] closed
    client: [3] process command "status"
    client: [3] command returned 0
    client: [5] process command "idle database stored_playlist playlist player mixer output options update"
    client: [5] command returned 1
    client: [5] process command list
    client: process command "status"
    client: command returned 0
    client: process command "currentsong"
    client: command returned 0
    client: [5] process command list returned 0
    client: [5] process command "idle database stored_playlist playlist player mixer output options update"
    client: [5] command returned 1
    client: [8] opened from 127.0.0.1:46741
    client: [8] process command "status"
    client: [8] command returned 0
    terminate called after throwing an instance of 'std::bad_alloc'
      what():  std::bad_alloc
    Aborted
    
    txt file icon bug.txt (5,006 bytes) 2017-02-10 17:34 +

-Relationships
+Relationships

-Notes

~0010315

cirrus (administrator)

Need a backtrace.

~0010317

prezi (reporter)

This is my first time. Is it ok?

mpd compiled with -g

Reading symbols from mpd...done.
(gdb) r --no-daemon
Starting program: /usr/bin/mpd --no-daemon
[New LWP 6157]
[New LWP 6158]
[New LWP 6159]
[New LWP 6160]

Program received signal SIGABRT, Aborted.
[Switching to LWP 6160]
0xb6ae3ab9 in __kernel_vsyscall ()
(gdb) bt
#0 0xb6ae3ab9 in __kernel_vsyscall ()
#1 0xb6b00282 in ?? () from /lib/ld-musl-i386.so.1
#2 0xb5bb3b62 in ?? () from /usr/lib/libstdc++.so.6
#3 0xb5bb3bf1 in std::terminate() () from /usr/lib/libstdc++.so.6
#4 0xb5bb3e4d in __cxa_throw () from /usr/lib/libstdc++.so.6
#5 0xb5bb42df in operator new(unsigned int) () from /usr/lib/libstdc++.so.6
#6 0xb5bb436f in operator new[](unsigned int) () from /usr/lib/libstdc++.so.6
#7 0x0809f12d in ReusableArray<unsigned char, 8192u>::Get (size=<optimized out>, this=0x8105e78) at ./src/util/ReusableArray.hxx:94
#8 PcmBuffer::Get (this=0x8105e78, new_size=<optimized out>) at src/pcm/PcmBuffer.cxx:31
#9 0x0809f36a in PcmExport::Export (this=0x8105e68, data=...) at src/pcm/PcmExport.cxx:179
#10 0x08097315 in AlsaOutput::Play (this=0x8105d30, chunk=0x98e5af8, size=4294964568) at src/output/plugins/AlsaOutputPlugin.cxx:1189
#11 0x0807176e in AudioOutput::PlayChunk (this=0x8105d58) at src/output/OutputThread.cxx:299
#12 0x080718d5 in AudioOutput::Play (this=0x8105d58) at src/output/OutputThread.cxx:356
#13 0x080720e1 in AudioOutput::Task (this=0x8105d58) at src/output/OutputThread.cxx:504
0000014 0x080a801f in Thread::ThreadProc (ctx=0x8105da4) at src/thread/Thread.cxx:105
0000015 0xb6b2fbbc in ?? () from /lib/ld-musl-i386.so.1

~0010318

cirrus (administrator)

Wow, trying to play back 4294964568 bytes - that smells fishy!

~0010319

cirrus (administrator)

4a80e9cb2580a8be155a75117a6f52b8d267cdf6
+Notes

-Issue History
Date Modified Username Field Change
2017-02-10 17:34 prezi New Issue
2017-02-10 17:34 prezi File Added: bug.txt
2017-02-10 20:40 cirrus Note Added: 0010315
2017-02-10 22:15 prezi Note Added: 0010317
2017-02-10 22:21 cirrus Note Added: 0010318
2017-02-10 22:24 cirrus Assigned To => cirrus
2017-02-10 22:24 cirrus Status new => resolved
2017-02-10 22:24 cirrus Resolution open => fixed
2017-02-10 22:24 cirrus Fixed in Version => git
2017-02-10 22:24 cirrus Note Added: 0010319
+Issue History