darksnow segfaults on Ubuntu 12.04 reliably

Bug #1045960 reported by Chris Van Hoof on 2012-09-04
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
darksnow (Ubuntu)
Undecided
Unassigned

Bug Description

= How to reproduce =
* Launch darksnow:
  * Server options
  * Set streaming destination: Icecast 2
  * Server Icecast2 server (properly configured)
  * mount point /vanhoof/foo.mp3
  * password: $password
  * verbosity level: 10
  * no remote dump file
* Audio options
  * Format: mp3
  * Bitratemode: Constant
  * Sample Rate: 44100
  * quality: 1
  * bits per sample: 16
  * number of channels: 2 stereo
  * buffer size: 10
  * device input: hw0,0
* Streaming description
  * set radio name
  * set description
  * set url
  * set genre: weather
  * public: yes

... select start streaming, and immediately segfaults:

vanhoof@hatori:~$ darksnow
*** buffer overflow detected ***: darksnow terminated
DarkIce 1.0 live audio streamer, http://code.google.com/p/darkice/
Copyright (c) 2000-2007, Tyrell Hungary, http://tyrell.hu/
Copyright (c) 2008-2010, Akos Maroy and Rafael Diniz
This is free software, and you are welcome to redistribute it
under the terms of The GNU General Public License version 3 or
any later version.

/lib/x86_64-linux-gnu/libc.so.6(+0x107f00)[0x7fe006164f00]
Using config file: /home/vanhoof/.darksnow/darkice.cfg
/lib/x86_64-linux-gnu/libc.so.6(+0x106dd3)[0x7fe006163dd3]
darksnow[0x407bc7]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(+0xfeca)[0x7fe006f49eca]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit_valist+0x421)[0x7fe006f62741]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit+0x82)[0x7fe006f63242]
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(+0x8e845)[0x7fe008d63845]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_closure_invoke+0x132)[0x7fe006f49ca2]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(+0x21179)[0x7fe006f5b179]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit_valist+0xd79)[0x7fe006f63099]
04-Sep-2012 13:59:55 Using ALSA DSP input device: hw:0,0
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit+0x82)[0x7fe006f63242]
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(+0x8d66d)[0x7fe008d6266d]
04-Sep-2012 13:59:55 encoding
04-Sep-2012 13:59:55 scheduler high priority 99
04-Sep-2012 13:59:55 Could not set POSIX real-time scheduling, this may cause recording skips.
Try to run darkice as the super-user.
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(+0x136dd8)[0x7fe008e0bdd8]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_closure_invoke+0x132)[0x7fe006f49ca2]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(+0x21339)[0x7fe006f5b339]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit_valist+0xa5e)[0x7fe006f62d7e]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit+0x82)[0x7fe006f63242]
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(+0x251191)[0x7fe008f26191]
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(gtk_propagate_event+0xc3)[0x7fe008e09f63]
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(gtk_main_do_event+0x283)[0x7fe008e0a2c3]
/usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0(+0x5bcac)[0x7fe008a7ecac]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x133)[0x7fe00667ed53]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x480a0)[0x7fe00667f0a0]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_loop_run+0x6a)[0x7fe00667f49a]
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(gtk_main+0xa7)[0x7fe008e092f7]
darksnow[0x406ea6]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7fe00607e76d]
darksnow[0x402e49]
======= Memory map: ========
00400000-0040b000 r-xp 00000000 08:02 6971016 /usr/bin/darksnow
0060a000-0060b000 r--p 0000a000 08:02 6971016 /usr/bin/darksnow
0060b000-0060c000 rw-p 0000b000 08:02 6971016 /usr/bin/darksnow
01425000-017a7000 rw-p 00000000 00:00 0 [heap]
7fdfec000000-7fdfec022000 rw-p 00000000 00:00 0
7fdfec022000-7fdff0000000 ---p 00000000 00:00 0
7fdff4000000-7fdff4022000 rw-p 00000000 00:00 0
7fdff4022000-7fdff8000000 ---p 00000000 00:00 0
7fdff9ad8000-7fdff9aed000 r-xp 00000000 08:02 131530 /lib/x86_64-linux-gnu/libgcc_s.so.1
7fdff9aed000-7fdff9cec000 ---p 00015000 08:02 131530 /lib/x86_64-linux-gnu/libgcc_s.so.1
7fdff9cec000-7fdff9ced000 r--p 00014000 08:02 131530 /lib/x86_64-linux-gnu/libgcc_s.so.1
7fdff9ced000-7fdff9cee000 rw-p 00015000 08:02 131530 /lib/x86_64-linux-gnu/libgcc_s.so.1
7fdff9cee000-7fdff9cfa000 r-xp 00000000 08:02 135537 /lib/x86_64-linux-gnu/libudev.so.0.13.0
7fdff9cfa000-7fdff9ef9000 ---p 0000c000 08:02 135537 /lib/x86_64-linux-gnu/libudev.so.0.13.0
7fdff9ef9000-7fdff9efa000 r--p 0000b000 08:02 135537 /lib/x86_64-linux-gnu/libudev.so.0.13.0
7fdff9efa000-7fdff9efb000 rw-p 0000c000 08:02 135537 /lib/x86_64-linux-gnu/libudev.so.0.13.0
7fdff9efb000-7fdff9f3d000 r-xp 00000000 08:02 131149 /lib/x86_64-linux-gnu/libdbus-1.so.3.5.8
7fdff9f3d000-7fdffa13d000 ---p 00042000 08:02 131149 /lib/x86_64-linux-gnu/libdbus-1.so.3.5.8
7fdffa13d000-7fdffa13e000 r--p 00042000 08:02 131149 /lib/x86_64-linux-gnu/libdbus-1.so.3.5.8
7fdffa13e000-7fdffa13f000 rw-p 00043000 08:02 131149 /lib/x86_64-linux-gnu/libdbus-1.so.3.5.8
7fdffa13f000-7fdffa155000 r-xp 00000000 08:02 7097 /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so
7fdffa155000-7fdffa354000 ---p 00016000 08:02 7097 /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so
7fdffa354000-7fdffa355000 r--p 00015000 08:02 7097 /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so
7fdffa355000-7fdffa356000 rw-p 00016000 08:02 7097 /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so
7fdffa356000-7fdffa37e000 r-xp 00000000 08:02 6951801 /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so
7fdffa37e000-7fdffa57d000 ---p 00028000 08:02 6951801 /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so
7fdffa57d000-7fdffa57e000 r--p 00027000 08:02 6951801 /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so
7fdffa57e000-7fdffa57f000 rw-p 00028000 08:02 6951801 /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so
7fdffa57f000-7fdffa5c3000 r-xp 00000000 08:02 6949248 /usr/lib/x86_64-linux-gnu/libibus-1.0.so.0.401.0
7fdffa5c3000-7fdffa7c2000 ---p 00044000 08:02 6949248 /usr/lib/x86_64-linux-gnu/libibus-1.0.so.0.401.0
7fdffa7c2000-7fdffa7c4000 r--p 00043000 08:02 6949248 /usr/lib/x86_64-linux-gnu/libibus-1.0.so.0.401.0
7fdffa7c4000-7fdffa7c5000 rw-p 00045000 08:02 6949248 /usr/lib/x86_64-linux-gnu/libibus-1.0.so.0.401.0
7fdffa7c5000-7fdffa7c6000 rw-p 00000000 00:00 0
7fdffa7c6000-7fdffa7cc000 r-xp 00000000 08:02 406 /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/im-ibus.so
7fdffa7cc000-7fdffa9cb000 ---p 00006000 08:02 406 /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/im-ibus.so
7fdffa9cb000-7fdffa9cc000 r--p 00005000 08:02 406 /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/im-ibus.so
7fdffa9cc000-7fdffa9cd000 rw-p 00006000 08:02 406 /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/im-ibus.so
7fdffa9cd000-7fdffa9cf000 r-xp 00000000 08:02 1052354 /usr/lib/x86_64-linux-gnu/pango/1.6.0/modules/pango-basic-fc.so
7fdffa9cf000-7fdffabce000 ---p 00002000 08:02 1052354 /usr/lib/x86_64-linux-gnu/pango/1.6.0/modules/pango-basic-fc.so
7fdffabce000-7fdffabcf000 r--p 00001000 08:02 1052354 /usr/lib/x86_64-linux-gnu/pango/1.6.0/modules/pango-basic-fc.so04-Sep-2012 13:59:56 set lame mode 1
04-Sep-2012 13:59:56 set lame channels 2
04-Sep-2012 13:59:56 set lame in sample rate 44100
04-Sep-2012 13:59:56 set lame out sample rate 44100
04-Sep-2012 13:59:56 set lame bit rate 128
04-Sep-2012 13:59:56 set lame quality 0
04-Sep-2012 13:59:56 set lame lowpass frequency 0
04-Sep-2012 13:59:56 set lame highpass frequency 0
04-Sep-2012 13:59:56 set lame psycho acoustic model 1
04-Sep-2012 13:59:56 set lame error protection 1
LAME 3.99.3 64bits (http://lame.sf.net)
Using polyphase lowpass filter, transition band: 16538 Hz - 17071 Hz
04-Sep-2012 13:59:56 MultiThreadedConnector :: tranfer, bytes 0
04-Sep-2012 13:59:56 MultiThreadedConnector :: ThreadData :: threadFunction, was (thread, priority, type): 0x16fd3d0 0 SCHED_OTHER
04-Sep-2012 13:59:56 MultiThreadedConnector :: ThreadData :: threadFunction, now is (thread, priority, type): 0x16fd3d0 0 SCHED_OTHER
Aborted (core dumped)
vanhoof@hatori:~$ darksnow
*** buffer overflow detected ***: darksnow terminated
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x7ffcafba3007]
/lib/x86_64-linux-gnu/libc.so.6(+0x107f00)[0x7ffcafba1f00]
/lib/x86_64-linux-gnu/libc.so.6(+0x106dd3)[0x7ffcafba0dd3]
darksnow[0x407bc7]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(+0xfeca)[0x7ffcb0986eca]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit_valist+0x421)[0x7ffcb099f741]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit+0x82)[0x7ffcb09a0242]
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(+0x8e845)[0x7ffcb27a0845]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_closure_invoke+0x132)[0x7ffcb0986ca2]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(+0x21179)[0x7ffcb0998179]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit_valist+0xd79)[0x7ffcb09a0099]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit+0x82)[0x7ffcb09a0242]
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(+0x8d66d)[0x7ffcb279f66d]
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(+0x136dd8)[0x7ffcb2848dd8]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_closure_invoke+0x132)[0x7ffcb0986ca2]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(+0x21339)[0x7ffcb0998339]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit_valist+0xa5e)[0x7ffcb099fd7e]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit+0x82)[0x7ffcb09a0242]
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(+0x251191)[0x7ffcb2963191]
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(gtk_propagate_event+0xc3)[0x7ffcb2846f63]
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(gtk_main_do_event+0x283)[0x7ffcb28472c3]
/usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0(+0x5bcac)[0x7ffcb24bbcac]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x133)[0x7ffcb00bbd53]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x480a0)[0x7ffcb00bc0a0]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_loop_run+0x6a)[0x7ffcb00bc49a]
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(gtk_main+0xa7)[0x7ffcb28462f7]
darksnow[0x406ea6]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7ffcafabb76d]
darksnow[0x402e49]
======= Memory map: ========
00400000-0040b000 r-xp 00000000 08:02 6971016 /usr/bin/darksnow
0060a000-0060b000 r--p 0000a000 08:02 6971016 /usr/bin/darksnow
0060b000-0060c000 rw-p 0000b000 08:02 6971016 /usr/bin/darksnow
00d71000-010e1000 rw-p 00000000 00:00 0 [heap]
7ffc9b559000-7ffc9b56e000 r-xp 00000000 08:02 131530 /lib/x86_64-linux-gnu/libgcc_s.so.1
7ffc9b56e000-7ffc9b76d000 ---p 00015000 08:02 131530 /lib/x86_64-linux-gnu/libgcc_s.so.1
7ffc9b76d000-7ffc9b76e000 r--p 00014000 08:02 131530 /lib/x86_64-linux-gnu/libgcc_s.so.1
7ffc9b76e000-7ffc9b76f000 rw-p 00015000 08:02 131530 /lib/x86_64-linux-gnu/libgcc_s.so.1
7ffc9b76f000-7ffc9b77b000 r-xp 00000000 08:02 135537 /lib/x86_64-linux-gnu/libudev.so.0.13.0
7ffc9b77b000-7ffc9b97a000 ---p 0000c000 08:02 135537 /lib/x86_64-linux-gnu/libudev.so.0.13.0
7ffc9b97a000-7ffc9b97b000 r--p 0000b000 08:02 135537 /lib/x86_64-linux-gnu/libudev.so.0.13.0
7ffc9b97b000-7ffc9b97c000 rw-p 0000c000 08:02 135537 /lib/x86_64-linux-gnu/libudev.so.0.13.0
7ffc9b97c000-7ffc9b9be000 r-xp 00000000 08:02 131149 /lib/x86_64-linux-gnu/libdbus-1.so.3.5.8
7ffc9b9be000-7ffc9bbbe000 ---p 00042000 08:02 131149 /lib/x86_64-linux-gnu/libdbus-1.so.3.5.8
7ffc9bbbe000-7ffc9bbbf000 r--p 00042000 08:02 131149 /lib/x86_64-linux-gnu/libdbus-1.so.3.5.8
7ffc9bbbf000-7ffc9bbc0000 rw-p 00043000 08:02 131149 /lib/x86_64-linux-gnu/libdbus-1.so.3.5.8
7ffc9bbc0000-7ffc9bbd6000 r-xp 00000000 08:02 7097 /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so
7ffc9bbd6000-7ffc9bdd5000 ---p 00016000 08:02 7097 /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so
7ffc9bdd5000-7ffc9bdd6000 r--p 00015000 08:02 7097 /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so
7ffc9bdd6000-7ffc9bdd7000 rw-p 00016000 08:02 7097 /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so
7ffc9bdd7000-7ffc9bdff000 r-xp 00000000 08:02 6951801 /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so
7ffc9bdff000-7ffc9bffe000 ---p 00028000 08:02 6951801 /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so
7ffc9bffe000-7ffc9bfff000 r--p 00027000 08:02 6951801 /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so
7ffc9bfff000-7ffc9c000000 rw-p 00028000 08:02 6951801 /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so
7ffc9c000000-7ffc9c022000 rw-p 00000000 00:00 0
7ffc9c022000-7ffca0000000 ---p 00000000 00:00 0
7ffca0000000-7ffca0022000 rw-p 00000000 00:00 0
7ffca0022000-7ffca4000000 ---p 00000000 00:00 0
7ffca4000000-7ffca4022000 rw-p 00000000 00:00 0
7ffca4022000-7ffca8000000 ---p 00000000 00:00 0
7ffca812a000-7ffca816e000 r-xp 00000000 08:02 6949248 /usr/lib/x86_64-linux-gnu/libibus-1.0.so.0.401.0
7ffca816e000-7ffca836d000 ---p 00044000 08:02 6949248 /usr/lib/x86_64-linux-gnu/libibus-1.0.so.0.401.0
7ffca836d000-7ffca836f000 r--p 00043000 08:02 6949248 /usr/lib/x86_64-linux-gnu/libibus-1.0.so.0.401.0
7ffca836f000-7ffca8370000 rw-p 00045000 08:02 6949248 /usr/lib/x86_64-linux-gnu/libibus-1.0.so.0.401.0
7ffca8370000-7ffca8371000 rw-p 00000000 00:00 0
7ffca8371000-7ffca8377000 r-xp 00000000 08:02 406 /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/im-ibus.so
7ffca8377000-7ffca8576000 ---p 00006000 08:02 406 /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/im-ibus.so
7ffca8576000-7ffca8577000 r--p 00005000 08:02 406 /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/im-ibus.so
7ffca8577000-7ffca8578000 rw-p 00006000 08:02 406 /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/im-ibus.so
7ffca8578000-7ffca857a000 r-xp 00000000 08:02 1052354 /usr/lib/x86_64-linux-gnu/pango/1.6.0/modules/pango-basic-fc.so
7ffca857a000-7ffca8779000 ---p 00002000 08:02 1052354 /usr/lib/x86_64-linux-gnu/pango/1.6.0/modules/pango-basic-fc.so
7ffca8779000-7ffca877a000 r--p 00001000 08:02 1052354 /usr/lib/x86_64-linux-gnu/pango/1.6.0/modules/pango-basic-fc.soDarkIce 1.0 live audio streamer, http://code.google.com/p/darkice/
Copyright (c) 2000-2007, Tyrell Hungary, http://tyrell.hu/
Copyright (c) 2008-2010, Akos Maroy and Rafael Diniz
This is free software, and you are welcome to redistribute it
under the terms of The GNU General Public License version 3 or
any later version.

Using config file: /home/vanhoof/.darksnow/darkice.cfg
04-Sep-2012 14:27:33 Using ALSA DSP input device: hw:0,0
04-Sep-2012 14:27:33 encoding
04-Sep-2012 14:27:33 scheduler high priority 99
04-Sep-2012 14:27:33 Could not set POSIX real-time scheduling, this may cause recording skips.
Try to run darkice as the super-user.
DarkIce: DarkIce.cpp:1187: can't open connector [0]
Aborted (core dumped)

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: darksnow 0.6.1-3ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-29.46-generic 3.2.24
Uname: Linux 3.2.0-29-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.0.1-0ubuntu12
Architecture: amd64
Date: Tue Sep 4 14:28:44 2012
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110426)
ProcEnviron:
 TERM=xterm
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: darksnow
UpgradeStatus: Upgraded to precise on 2012-01-18 (229 days ago)

Chris Van Hoof (vanhoof) wrote :
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers