Bug#511670: totem-xine segfault when playing dvd with menu and using alsa bluetooth

Jelle de Jong jelledejong at powercraft.nl
Thu Jan 15 12:57:27 UTC 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Josselin Mouette wrote:
> Hi,
> 
> Le mardi 13 janvier 2009 � 11:25 +0100, Jelle de Jong a �crit :
>> Package: totem-xine
>> Version: 2.22.2-5
>> Severity: normal
>>
>> totem-xine[6333]: segfault at 8bdf000 ip b721dcac sp b424df3c error 4 in libc-2.7.so[b71a6000+155000]
>>
>> totem-xine segfaults about everytime I try using dvd's with menus together with my also
>> configured bluetooth headset/speakers. It sometimes works but most time it just segfaults 
>> driving me nuts.
> 
> Could you please install totem-dbg, libxine1-dbg and ffmpeg-dbg, then
> obtain a full backtrace with gdb? See
> http://wiki.debian.org/HowToGetABacktrace for more information.
> 
> Thanks,

Hi Josselin,

I tried my very best to provide useful backtrace information. The
segfaults only happens when using my bluetooth speakers or headsets.

Please see the information below for the backtrace and some additional
information.

I also tried the experimental package of totem-xine and the gdb symbols
but that version of totem-xine did not want to play the dvd at all, I
made a separate bug report for it:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=511885

I put a lot of time in these reports please help,

Thanks in advance,

Jelle de Jong

- ------------------------------------------------------------------------

sudo apt-get update
sudo apt-get remove --purge -t experimental totem-xine
sudo apt-get remove --purge -t experimental gdb totem-dbg libxine1-dbg
ffmpeg-dbg

sudo aptitude update
sudo aptitude install -t unstable totem-xine gdb totem-dbg libxine1-dbg
ffmpeg-dbg

- ------------------------------------------------------------------------

totem-xine
/mnt/powercraft-server-jelle/root/home/jelle/download/usenet/series/LOST/LOST_S3/LOST_S3D1_MOUNT/

gdb totem-xine
(gdb) set pagination 0
(gdb) thread apply all bt full
(gdb) run
/mnt/powercraft-server-jelle/root/home/jelle/download/usenet/series/LOST/LOST_S3/LOST_S3D1_MOUNT/
(gdb) backtrace full
(gdb) info registers
(gdb) thread apply all backtrace
(gdb) quit

- ------------------------------------------------------------------------

http://debian.pastebin.com/d5090b1ab

$ gdb totem-xine
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
(gdb) set pagination 0
(gdb) thread apply all bt full
No registers.
(gdb) run
/mnt/powercraft-server-jelle/root/home/jelle/download/usenet/series/LOST/LOST_S3/LOST_S3D1_MOUNT/
Starting program: /usr/bin/totem-xine
/mnt/powercraft-server-jelle/root/home/jelle/download/usenet/series/LOST/LOST_S3/LOST_S3D1_MOUNT/
[Thread debugging using libthread_db enabled]
[New Thread 0xb67d09d0 (LWP 4205)]
[New Thread 0xb59a9b90 (LWP 4209)]
[New Thread 0xb487db90 (LWP 4210)]
[New Thread 0xb401eb90 (LWP 4211)]
[New Thread 0xb361cb90 (LWP 4212)]
[New Thread 0xb2e1bb90 (LWP 4213)]
[Thread 0xb361cb90 (LWP 4212) exited]
E: socket-client.c: socket(): Address family not supported by protocol
[Thread 0xb2e1bb90 (LWP 4213) exited]
[Thread 0xb401eb90 (LWP 4211) exited]
[New Thread 0xb401eb90 (LWP 4217)]
[New Thread 0xb2e1bb90 (LWP 4218)]
[New Thread 0xb361cb90 (LWP 4219)]
[New Thread 0xb2051b90 (LWP 4220)]
libdvdnav: Using dvdnav version 1.1.16.1 from http://xine.sf.net
libdvdread: Using libdvdcss version 1.2.9 for DVD access
libdvdread: Attempting to use device /dev/loop0 mounted on
/mnt/powercraft-server-jelle/root/home/jelle/download/usenet/series/LOST/LOST_S3/LOST_S3D1_MOUNT
for CSS authentication
libdvdnav: Can't read name block. Probably not a DVD-ROM device.
libdvdnav: Unable to find map file '/home/jelle/.dvdnav/.map'
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions:
1 2 3 4 5 6 7 8

libdvdread: Attempting to retrieve all CSS keys
libdvdread: This can take a _long_ time, please be patient

libdvdread: Get key for /VIDEO_TS/VIDEO_TS.VOB at 0x00000159
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x000028c4
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x000309f0
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_0.VOB at 0x000b1bb6
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_1.VOB at 0x000b1bbe
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_0.VOB at 0x0012beee
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_1.VOB at 0x0012bef6
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_04_0.VOB at 0x001ac49c
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_04_1.VOB at 0x001ac4a4
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_05_0.VOB at 0x0022b528
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_05_1.VOB at 0x0022b530
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_06_0.VOB at 0x0022b54a
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_06_1.VOB at 0x0022b552
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_07_0.VOB at 0x0022b56c
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_07_1.VOB at 0x0022b5cc
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_08_0.VOB at 0x0022b61d
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_08_1.VOB at 0x0022b625
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_09_0.VOB at 0x0022b63c
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_09_1.VOB at 0x0022b644
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_10_0.VOB at 0x0022b65b
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_10_1.VOB at 0x0022b663
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_11_0.VOB at 0x0022b699
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_11_1.VOB at 0x0022b6a1
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_12_0.VOB at 0x0022b6c6
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_12_1.VOB at 0x0022b6ce
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_13_0.VOB at 0x0022b738
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_13_1.VOB at 0x0022b740
libdvdread: Elapsed time 0
libdvdread: Found 13 VTS's
libdvdread: Elapsed time 0
demux_wavpack: (open_wv_file:127) open_wv_file: non-seekable inputs
aren't supported yet.
[New Thread 0xb61f6b90 (LWP 4221)]
[New Thread 0xb0f43b90 (LWP 4222)]
libdvdnav: RANDOM or SHUFFLE titles are NOT handled yet.
[Thread 0xb0f43b90 (LWP 4222) exited]
[New Thread 0xb0f43b90 (LWP 4223)]
[Thread 0xb0f43b90 (LWP 4223) exited]
[New Thread 0xb0f43b90 (LWP 4224)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb401eb90 (LWP 4217)]
0xb726bc1c in memcpy () from /lib/i686/cmov/libc.so.6
(gdb) backtrace full
#0  0xb726bc1c in memcpy () from /lib/i686/cmov/libc.so.6
No symbol table info available.
#1  0xb3816a16 in bluetooth_a2dp_write () from
/usr/lib/alsa-lib/libasound_module_pcm_bluetooth.so
No locals.
#2  0xb6282bc1 in ?? () from /usr/lib/libasound.so.2
No symbol table info available.
#3  0x0910e198 in ?? ()
No symbol table info available.
#4  0x08ace700 in ?? ()
No symbol table info available.
#5  0x00000000 in ?? ()
No symbol table info available.
(gdb) info registers
eax            0xffffff6c	-148
ecx            0x3fff4c89	1073695881
edx            0x910e198	152101272
ebx            0xb381dcec	-1283334932
esp            0xb401df5c	0xb401df5c
ebp            0xb401dfc8	0xb401dfc8
esi            0x9145000	152326144
edi            0x913b234	152285748
eip            0xb726bc1c	0xb726bc1c <memcpy+28>
eflags         0x210206	[ PF IF RF ID ]
cs             0x73	115
ss             0x7b	123
ds             0x7b	123
es             0x7b	123
fs             0x0	0
gs             0x33	51
(gdb) thread apply all backtrace

Thread 14 (Thread 0xb0f43b90 (LWP 4224)):
#0  0xb7f8f424 in __kernel_vsyscall ()
#1  0xb72c9e67 in poll () from /lib/i686/cmov/libc.so.6
#2  0xb3816e32 in playback_hw_thread () from
/usr/lib/alsa-lib/libasound_module_pcm_bluetooth.so
#3  0xb73554c0 in start_thread () from /lib/i686/cmov/libpthread.so.0
#4  0xb72d46de in clone () from /lib/i686/cmov/libc.so.6

Thread 11 (Thread 0xb61f6b90 (LWP 4221)):
#0  0xb7f8f424 in __kernel_vsyscall ()
#1  0xb7359025 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/i686/cmov/libpthread.so.0
#2  0xb7b4bf76 in buffer_pool_alloc (this=0x90b5280) at buffer.c:90
#3  0xb62f47cb in dvd_plugin_read_block (this_gen=0x90fc208,
fifo=0xfffffe00, nlen=2048) at input_dvd.c:590
#4  0xb7b697ee in cache_plugin_read_block (this_gen=0x91024f0,
fifo=0x80, todo=2048) at input_cache.c:199
#5  0xb36225fd in demux_mpeg_block_parse_pack (this=0x90b5280,
preview_mode=0) at demux_mpeg_block.c:189
#6  0xb3623605 in demux_mpeg_block_send_chunk (this_gen=0x9116af0) at
demux_mpeg_block.c:1003
#7  0xb7b619f6 in demux_loop (stream_gen=0x90b4690) at demux.c:304
#8  0xb73554c0 in start_thread () from /lib/i686/cmov/libpthread.so.0
#9  0xb72d46de in clone () from /lib/i686/cmov/libc.so.6

Thread 10 (Thread 0xb2051b90 (LWP 4220)):
#0  0xb7f8f424 in __kernel_vsyscall ()
#1  0xb7359025 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/i686/cmov/libpthread.so.0
#2  0xb7b5c67e in listener_loop (queue_gen=0x90e45c8) at events.c:56
#3  0xb73554c0 in start_thread () from /lib/i686/cmov/libpthread.so.0
#4  0xb72d46de in clone () from /lib/i686/cmov/libc.so.6

Thread 9 (Thread 0xb361cb90 (LWP 4219)):
#0  0xb7f8f424 in __kernel_vsyscall ()
#1  0xb7359352 in pthread_cond_timedwait@@GLIBC_2.3.2 () from
/lib/i686/cmov/libpthread.so.0
#2  0xb7b58373 in ao_get_buffer (this_gen=0x8f94608) at audio_out.c:353
#3  0xb59d0405 in a52dec_decode_data (this_gen=0x8acf088, buf=0x90b7a50)
at xine_a52_decoder.c:293
#4  0xb7b53589 in audio_decoder_loop (stream_gen=0x90b4690) at
audio_decoder.c:360
#5  0xb73554c0 in start_thread () from /lib/i686/cmov/libpthread.so.0
#6  0xb72d46de in clone () from /lib/i686/cmov/libc.so.6

Thread 8 (Thread 0xb2e1bb90 (LWP 4218)):
#0  0xb7f8f424 in __kernel_vsyscall ()
#1  0xb7359352 in pthread_cond_timedwait@@GLIBC_2.3.2 () from
/lib/i686/cmov/libpthread.so.0
#2  0xb7b53d08 in vo_remove_from_img_buf_queue_int (queue=0x8b79898,
blocking=0, width=720, height=576, ratio=1.7777777777777777,
format=842094169, flags=31) at video_out.c:251
#3  0xb7b53db4 in vo_get_frame (this_gen=0x8b79240, width=720,
height=576, ratio=1.2222695759517241e-311, format=842094169, flags=31)
at video_out.c:296
#4  0xb59dead7 in mpeg2_decode_data (mpeg2dec=0x8ad1670,
current=0xb4e219f6
"K_V0&#65533;<6&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;}^&#65533;&#65533;J&#65533;VQV|&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;U\032&#65533;&#65533;{+\225d&#65533;5&#65533;r&#65533;&#65533;H&#65533;\200",
end=0xb4e22000 "", pts=0) at decode.c:515
#5  0xb59f2b97 in mpeg2dec_decode_data (this_gen=0x8ad1658,
buf=0x90c2430) at xine_mpeg2_decoder.c:77
#6  0xb7b5213b in video_decoder_loop (stream_gen=0x90b4690) at
video_decoder.c:382
#7  0xb73554c0 in start_thread () from /lib/i686/cmov/libpthread.so.0
#8  0xb72d46de in clone () from /lib/i686/cmov/libc.so.6

Thread 7 (Thread 0xb401eb90 (LWP 4217)):
#0  0xb726bc1c in memcpy () from /lib/i686/cmov/libc.so.6
#1  0xb3816a16 in bluetooth_a2dp_write () from
/usr/lib/alsa-lib/libasound_module_pcm_bluetooth.so
#2  0xb6282bc1 in ?? () from /usr/lib/libasound.so.2
#3  0x0910e198 in ?? ()
#4  0x08ace700 in ?? ()
#5  0x00000000 in ?? ()

Thread 3 (Thread 0xb487db90 (LWP 4210)):
#0  0xb7f8f424 in __kernel_vsyscall ()
#1  0xb72ccab1 in select () from /lib/i686/cmov/libc.so.6
#2  0xb7b71f6e in xine_usec_sleep (usec=20000) at utils.c:481
#3  0xb7b56168 in video_out_loop (this_gen=0x8b79240) at video_out.c:1246
#4  0xb73554c0 in start_thread () from /lib/i686/cmov/libpthread.so.0
#5  0xb72d46de in clone () from /lib/i686/cmov/libc.so.6

Thread 2 (Thread 0xb59a9b90 (LWP 4209)):
#0  0xb7f8f424 in __kernel_vsyscall ()
#1  0xb7359352 in pthread_cond_timedwait@@GLIBC_2.3.2 () from
/lib/i686/cmov/libpthread.so.0
#2  0xb7b48927 in metronom_sync_loop (this=0x8ad37e0) at metronom.c:870
#3  0xb73554c0 in start_thread () from /lib/i686/cmov/libpthread.so.0
#4  0xb72d46de in clone () from /lib/i686/cmov/libc.so.6

Thread 1 (Thread 0xb67d09d0 (LWP 4205)):
#0  0xb7f8f424 in __kernel_vsyscall ()
#1  0xb72c9e67 in poll () from /lib/i686/cmov/libc.so.6
#2  0xb73a48c2 in ?? () from /usr/lib/libglib-2.0.so.0
#3  0xb5000540 in ?? ()
#4  0x00000009 in ?? ()
#5  0x00000057 in ?? ()
#6  0xb5000540 in ?? ()
#7  0x00000009 in ?? ()
#8  0x00000000 in ?? ()
#0  0xb726bc1c in memcpy () from /lib/i686/cmov/libc.so.6
(gdb) quit
The program is running.  Exit anyway? (y or n) y

ldd /usr/sbin/bluetoothd
	linux-gate.so.1 =>  (0xb7fa0000)
	libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xb7ed9000)
	libdbus-1.so.3 => /usr/lib/libdbus-1.so.3 (0xb7ea1000)
	libbluetooth.so.3 => /usr/lib/libbluetooth.so.3 (0xb7e8d000)
	libdl.so.2 => /lib/i686/cmov/libdl.so.2 (0xb7e89000)
	libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb7d2e000)
	libpcre.so.3 => /usr/lib/libpcre.so.3 (0xb7cff000)
	/lib/ld-linux.so.2 (0xb7fa1000)

- ------------------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iJwEAQECAAYFAklvMrUACgkQ1WclBW9j5HlM3gP/Rgykb/qOaeCzdTKCuB5Uk/IF
pXQB3af/DycUG+4Ex232GoYmjVcMHRiLqTllGg7x5cdwcnD4ogE/NGI1s1q1pA0s
kawlno1honaPzSaszYW1mnV0HrFkTypFaWdkFrly5pj8rhnsmYflGhTJLAx4KWaj
FZnbJ5UihGEwXHdsSRY=
=db09
-----END PGP SIGNATURE-----






More information about the pkg-gnome-maintainers mailing list