GDB libVLC
Posted: 28 Sep 2009 20:43
Hi all,
I'm having troubles debugging a libVLC module (invmem). I compiled VLC from git with --enable-debug. When I run my program, I have a segfault and I don't know how to debug it.
How can I load the source associated with libinvmem_plugin.so (invmem.c in modules/codec) so I can add breaks, and even see what line number is giving me a segfault (0x21 isn't obvious to me...)?
Thanks
I'm having troubles debugging a libVLC module (invmem). I compiled VLC from git with --enable-debug. When I run my program, I have a segfault and I don't know how to debug it.
Code: Select all
[0x7fffe800a870] mux_ts mux debug: adding input codec=mpgv pid=68
[0x7fffe800a870] mux_ts mux debug: new PCR PID is 68
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffee9ca910 (LWP 7340)]
0x0000000000000021 in ?? ()
(gdb) info stack
#0 0x0000000000000021 in ?? ()
#1 0x00007fffee6c9047 in DecodeBlock ()
from /usr/lib64/vlc/codec/libinvmem_plugin.so
#2 0x00007fffefdfba6e in Send ()
from /usr/lib64/vlc/stream_out/libstream_out_transcode_plugin.so
Thanks