[vlc-devel] segmentation fault from misc/variables - thread/mutex problem

Gilles Sabourin gilles.sabourin at free.fr
Thu Feb 28 19:54:16 CET 2008


Hello,

I got these backtraces under gdb whenever I start to display a freebox TV 
channel. I can reproduce this issue systematically.

My system is an up to date openSUSE 10.3 on a 32 bits laptop.

Regards,
Gilles

This GDB was configured as "i586-suse-linux"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run --m3u-extvlcopt Desktop/TV_fbx.m3u
Starting program: /usr/bin/vlc --m3u-extvlcopt Desktop/TV_fbx.m3u
[Thread debugging using libthread_db enabled]
[New Thread 0xb7ba6950 (LWP 28178)]
***************************************************
*** glibc version with broken libintl detected. ***
*** Messages localization will be disabled.     ***
***************************************************
VLC media player 0.9.0-svn Grishenko
[00000001] main libvlc debug: VLC media player - version 0.9.0-svn Grishenko - 
(c) 1996-2008 the VideoLAN team
[00000001] main libvlc debug: libvlc was configured 
with ./configure  '--prefix=/usr' '--libdir=/usr/lib' '--enable-fast-install' '--enable-shout' '--enable-skins2' '--disable-pda' '--disable-macosx' '--disable-qnx' '--enable-ncurses' '--enable-xosd' '--enable-visual' '--disable-goom' '--enable-slp' '--enable-lirc' '--disable-joystick' '--disable-corba' '--enable-dvdread' '--enable-dvdnav' '--disable-dshow' '--enable-v4l' '--enable-v4l2' '--enable-pvr' '--enable-vcd' '--enable-satellite' '--enable-ogg' '--enable-mkv' '--enable-mod' '--enable-libcdio' '--enable-vcdx' '--enable-cddax' '--enable-libcddb' '--enable-x11' '--enable-xvideo' '--enable-glx' '--enable-fb' '--enable-mga' '--enable-freetype' '--enable-fribidi' '--enable-svg' '--disable-hd1000v' '--disable-directx' '--disable-wingdi' '--disable-glide' '--enable-aa' '--enable-caca' '--enable-oss' '--enable-esd' '--enable-arts' '--enable-waveout' '--enable-portaudio' '--disable-coreaudio' '--disable-hd1000a' '--enable-mad' '--enable-ffmpeg' '--enable-faad' '--enable-a52' '--enable-dca' '--enable-flac' '--enable-libmpeg2' '--enable-vorbis' '--enable-tremor' '--enable-speex' '--disable-tarkin' '--enable-theora' '--enable-cmml' '--enable-utf8' '--disable-pth' '--enable-st' '--disable-gprof' '--disable-cprof' '--disable-testsuite' '--disable-optimizations' '--disable-altivec' '--enable-debug' '--enable-release' '--enable-sout' '--with-ffmpeg-faac' '--disable-galaktos' '--enable-httpd' '--disable-jack' '--enable-mozilla' '--enable-alsa' '--enable-real' '--enable-realrtsp' '--enable-live555' '--with-live555-tree=/usr/lib/live' '--enable-dvbpsi' '--enable-dvb' '--disable-loader' '--disable-nls'
[New Thread 0xb7a86b90 (LWP 28181)]
[00000001] main libvlc debug: translation test: code is "C"
[New Thread 0xb6fcfb90 (LWP 28185)]
[New Thread 0xb67ceb90 (LWP 28186)]
[New Thread 0xb5fcdb90 (LWP 28187)]
[New Thread 0xb57ccb90 (LWP 28188)]
[New Thread 0xb4fcbb90 (LWP 28189)]
[New Thread 0xb47cab90 (LWP 28190)]
[00000001] main libvlc: Running vlc with the default interface. Use 'cvlc' to 
use vlc without interface.
[New Thread 0xb32bdb90 (LWP 28194)]
[New Thread 0xb2736b90 (LWP 28204)]
[Thread 0xb2736b90 (LWP 28204) exited]
[New Thread 0xb2736b90 (LWP 28205)]
LibVLC fatal error locking mutex in thread 3005995920 at misc/variables.c:838: 
22
 Error message: Invalid argument

Program received signal SIGABRT, Aborted.
[Switching to Thread 0xb32bdb90 (LWP 28194)]
0xffffe410 in __kernel_vsyscall ()
(gdb) bt full
#0  0xffffe410 in __kernel_vsyscall ()
No symbol table info available.
#1  0xb7cf08f5 in raise () from /lib/libc.so.6
No symbol table info available.
#2  0xb7cf21e1 in abort () from /lib/libc.so.6
No symbol table info available.
#3  0xb7f220ae in vlc_pthread_fatal (action=0xb7f5660e "locking mutex", 
error=22, file=0xb7f565fc "misc/variables.c", line=838) at misc/threads.c:128
No locals.
#4  0xb7f31a18 in __vlc_mutex_lock (psz_file=0xb7f565fc "misc/variables.c", 
i_line=838, p_mutex=0x829dcdc) at ../include/vlc_threads_funcs.h:112
        val = 22
#5  0xb7f32e34 in __var_Get (p_this=0x829dd14, psz_name=0xb3f6ce25 "state", 
p_val=0xb32bc1bc) at misc/variables.c:838
        i_var = 0
        p_var = (variable_t *) 0x40072
        p_priv = (vlc_object_internals_t *) 0x829dcd8
#6  0xb3e8eadb in QVLCMenu::PopupMenuControlEntries (menu=0x81ee020, 
p_intf=0x81abea4, p_input=0x6) at menus.cpp:497
        val = {i_int = -1276870668, b_bool = -1276870668, f_float 
= -1.06403519e-07, psz_string = 0xb3e47ff4 "��m", p_address = 0xb3e47ff4,
  p_object = 0xb3e47ff4, p_list = 0xb3e47ff4, i_time = 586856156725805044, var 
= {psz_name = 0xb3e47ff4 "��m", i_object_id = 136638096}, padding = {
    a = -12 '�', b = 127 '\177', c = -28 '�', d = -77 '�', e = -112 '\220', f 
= -18 '�', g = 36 '$', h = 8 '\b'}}
#7  0xb3e910bc in QVLCMenu::updateSystrayMenu (mi=0x81d9470, p_intf=0x81abea4, 
b_force_visible=false) at menus.cpp:705
        objects = {<std::_Vector_base<int,std::allocator<int> >> = {
    _M_impl = {<std::allocator<int>> = {<__gnu_cxx::new_allocator<int>> = {<No 
data fields>}, <No data fields>}, _M_start = 0x0, _M_finish = 0x0,
      _M_end_of_storage = 0x0}}, <No data fields>}
        varnames = {<std::_Vector_base<const char*,std::allocator<const char*> 
>> = {
    _M_impl = {<std::allocator<const char*>> = 
{<__gnu_cxx::new_allocator<const char*>> = {<No data fields>}, <No data 
fields>}, _M_start = 0x0,
      _M_finish = 0x0, _M_end_of_storage = 0x0}}, <No data fields>}
        p_input = (input_thread_t *) 0x829dd14
        sysMenu = (QMenu *) 0x81ee020
#8  0xb3e97297 in MainInterface::setStatus (this=0x81d9470, status=5) at 
main_interface.cpp:916
No locals.
#9  0xb3f5fd89 in MainInterface::qt_metacall (this=0x81d9470, 
_c=QMetaObject::InvokeMetaMethod, _id=15, _a=0xb32bc7cc) at 
main_interface.moc.cpp:123
No locals.
#10 0xb36bac70 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
No symbol table info available.
#11 0xb36bb5b2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
No symbol table info available.
#12 0xb3f60ae3 in InputManager::statusChanged (this=0x81a0678, _t1=5) at 
input_manager.moc.cpp:142
        _a = {0x0, 0xb32bc7e4}
#13 0xb3e9f073 in InputManager::delInput (this=0x81a0678) at 
input_manager.cpp:118
No locals.
#14 0xb3e9ffc8 in InputManager::setInput (this=0x81a0678, _p_input=0x0) at 
input_manager.cpp:81
No locals.
#15 0xb3f60f66 in InputManager::qt_metacall (this=0x81a0678, 
_c=QMetaObject::InvokeMetaMethod, _id=6, _a=0xb32bcd5c) at 
input_manager.moc.cpp:94
No locals.
#16 0xb36bac70 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
No symbol table info available.
#17 0xb36bb5b2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
No symbol table info available.
#18 0xb3f60a43 in MainInputManager::inputChanged (this=0x81dc3f8, _t1=0x0) at 
input_manager.moc.cpp:221
        _a = {0x0, 0xb32bcd74}
#19 0xb3e9ee10 in MainInputManager::customEvent (this=0x81dc3f8, 
event=0x8275650) at input_manager.cpp:514
        type = <value optimized out>
#20 0xb36b85f9 in QObject::event () from /usr/lib/libQtCore.so.4
No symbol table info available.
#21 0xb38d209d in QApplicationPrivate::notify_helper () 
from /usr/lib/libQtGui.so.4
No symbol table info available.
#22 0xb38d8239 in QApplication::notify () from /usr/lib/libQtGui.so.4
No symbol table info available.
#23 0xb36a990b in QCoreApplication::notifyInternal () 
from /usr/lib/libQtCore.so.4
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#24 0xb36ab3ce in QCoreApplicationPrivate::sendPostedEvents () 
from /usr/lib/libQtCore.so.4
No symbol table info available.
#25 0xb36ab6ad in QCoreApplication::sendPostedEvents () 
from /usr/lib/libQtCore.so.4
No symbol table info available.
#26 0xb36cb2a0 in postEventSourceDispatch () from /usr/lib/libQtCore.so.4
No symbol table info available.
#27 0xb354b5d6 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#28 0xb354e972 in ?? () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#29 0x081a5e20 in ?? ()
No symbol table info available.
#30 0x00000000 in ?? ()
No symbol table info available.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part.
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20080228/63bebcea/attachment.sig>


More information about the vlc-devel mailing list