Page 1 of 1

Assertion failed on 1.1.0rc2 with custom configuration

Posted: 06 Jun 2010 22:31
by laurent1103
Hello,

here is the problem : on Debian Squeeze (testing) I want to have a light VLC configuration to stream DVB-T on the network (using RTSP). I disabled everything I could except DVB-T and RTSP related options. Everything goes fine on compilation, but I have a segfault.

Code: Select all

Linux tnt 2.6.32-3-686 #1 SMP Thu Feb 25 06:14:20 UTC 2010 i686 GNU/Linux
Trace :

Code: Select all

vlc@tnt:~/apps/bin$ gdb --args ./vlc -vvv --color --ttl 12 --ts-es-id-pid --programs=1537,1538,1542 dvb:// --dvb-adapter=2 --dvb-frequency=586000000 --dvb-bandwidth=8 --sout-standard-access=udp --sout-standard-mux=ts --sout '#duplicate{dst=rtp{mux=ts,sdp=rtsp://:8011/tv.sdp,port=9011,name="TV - FR - TF1"},select="program=1537",dst=rtp{mux=ts,sdp=rtsp://:8012/tv.sdp,port=9012,name="TV - FR - NRJ12"},select="program=1538",dst=rtp{mux=ts,sdp=rtsp://:8013/tv.sdp,port=9013,name="TV - FR - TMC"},select="program=1542"}' GNU gdb (GDB) 7.0.1-debian Copyright (C) 2009 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". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /home/vlc/apps/bin/vlc...done. (gdb) run Starting program: /home/vlc/apps/bin/vlc -vvv --color --ttl 12 --ts-es-id-pid --programs=1537,1538,1542 dvb:// --dvb-adapter=2 --dvb-frequency=586000000 --dvb-bandwidth=8 --sout-standard-access=udp --sout-standard-mux=ts --sout \#duplicate\{dst=rtp\{mux=ts,sdp=rtsp://:8011/tv.sdp,port=9011,name=\"TV\ -\ FR\ -\ TF1\"\},select=\"program=1537\",dst=rtp\{mux=ts,sdp=rtsp://:8012/tv.sdp,port=9012,name=\"TV\ -\ FR\ -\ NRJ12\"\},select=\"program=1538\",dst=rtp\{mux=ts,sdp=rtsp://:8013/tv.sdp,port=9013,name=\"TV\ -\ FR\ -\ TMC\"\},select=\"program=1542\"\} [Thread debugging using libthread_db enabled] VLC media player 1.1.0-rc2 The Luggage (revision 1.1.0-rc2-37-ga6d4afc) [0x804b9c0] main libvlc debug: VLC media player - 1.1.0-rc2 The Luggage [0x804b9c0] main libvlc debug: Copyright © 1996-2010 the VideoLAN team [0x804b9c0] main libvlc debug: revision 1.1.0-rc2-37-ga6d4afc [0x804b9c0] main libvlc debug: configured with ./configure '--enable-debug' '--enable-static' '--disable-telepathy' '--disable-dbus' '--disable-dbus-control' '--disable-lua' '--disable-httpd' '--disable-vlm' '--disable-dc1394' '--disable-dvdread' '--disable-dvdnav' '--disable-smb' '--disable-libcddb' '--disable-vcd' '--disable-screen' '--disable-ogg' '--disable-mux_ogg' '--disable-mkv' '--disable-mod' '--disable-mpc' '--disable-gme' '--disable-id3tag' '--disable-swscale' '--disable-postproc' '--enable-real' '--enable-realrtsp' '--disable-libtar' '--disable-a52' '--disable-dca' '--disable-vorbis' '--disable-speex' '--disable-theora' '--disable-schroedinger' '--disable-png' '--disable-x264' '--disable-fluidsynth' '--disable-zvbi' '--disable-telx' '--disable-kate' '--without-x' '--disable-xcb' '--disable-xvideo' '--disable-glx' '--disable-sdl' '--disable-sdl-image' '--disable-freetype' '--disable-fribidi' '--disable-fontconfig' '--disable-libxml2' '--disable-fb' '--disable-oss' '--disable-pulse' '--disable-alsa' '--disable-upnp' '--disable-skins2' '--disable-qt4' '--disable-ncurses' '--disable-visual' '--disable-atmo' '--disable-bonjour' '--disable-remoteosd' '--with-tuning=pentium4' '--disable-update-check' '--prefix=/home/vlc/apps/' '--with-binary-version=2' [0x804b9c0] main libvlc debug: translation test: code is "FR" [0x804b9c0] main libvlc debug: checking plugin modules [0x804b9c0] main libvlc debug: loading plugins cache file /home/vlc/apps/lib/vlc/plugins/plugins-04041e-1e8.dat [0x804b9c0] main libvlc debug: recursively browsing `/home/vlc/apps/lib/vlc/plugins' [0x804b9c0] main libvlc debug: saving plugins cache /home/vlc/apps/lib/vlc/plugins/plugins-04041e-1e8.dat [0x804b9c0] main libvlc debug: module bank initialized (287 modules) [0x804b9c0] main libvlc debug: opening config file (/home/vlc/.config/vlc/vlcrc) [0x804b9c0] main libvlc debug: CPU has capabilities MMX MMXEXT SSE SSE2 SSE3 FPU [0x804b9c0] main libvlc debug: looking for memcpy module: 3 candidates [0x804b9c0] main libvlc debug: using memcpy module "memcpymmxext" [0x80cd468] main input debug: Creating an input for 'Bibliothèque' vlc: misc/variables.c :826 : var_GetChecked: L'assertion « expected_type == 0 || (p_var->i_type & 0x00f0) == expected_type » a échoué. Program received signal SIGABRT, Aborted. 0xb7fe1424 in __kernel_vsyscall ()
Options '--enable-debug' and '--enable-static' are enabled for debugging purpose.

On VLC 1.0.5 the following configuration works, so I assumed it should be working without many changes for VLC 1.1 (except deprecated options like '--disable-opengl') :

Code: Select all

VLC media player 1.0.5 Goldeneye [0x94dd8a8] main libvlc debug: VLC media player - version 1.0.5 Goldeneye - (c) 1996-2010 the VideoLAN team [0x94dd8a8] main libvlc debug: libvlc was configured with ./configure '--disable-telepathy' '--disable-dbus' '--disable-dbus-control' '--disable-lua' '--disable-vlm' '--disable-dvdread' '--disable-dvdnav' '--disable-smb' '--disable-libcddb' '--disable-vcd' '--disable-screen' '--disable-ogg' '--disable-mkv' '--disable-mod' '--disable-mpc' '--disable-gme' '--disable-id3tag' '--disable-postproc' '--enable-real' '--enable-realrtsp' '--disable-libtar' '--disable-a52' '--disable-dca' '--disable-vorbis' '--disable-speex' '--disable-schroedinger' '--disable-png' '--disable-x264' '--disable-fluidsynth' '--disable-zvbi' '--disable-telx' '--disable-kate' '--without-x' '--disable-xcb' '--disable-xvideo' '--disable-glx' '--disable-opengl' '--disable-sdl' '--disable-sdl-image' '--disable-freetype' '--disable-fribidi' '--disable-fontconfig' '--disable-libxml2' '--disable-fb' '--disable-oss' '--disable-pulse' '--disable-alsa' '--disable-upnp' '--disable-skins2' '--disable-qt4' '--disable-ncurses' '--disable-visual' '--disable-atmo' '--disable-bonjour' '--with-tuning=pentium4' '--disable-update-check' '--prefix=/usr' '--with-binary-version=2'
Any help appreciated.

Re: Assertion failed on 1.1.0rc2 with custom configuration

Posted: 06 Jun 2010 23:26
by Rémi Denis-Courmont
You're more likely to get help if you show the full backtrace of the assertion...

Re: Assertion failed on 1.1.0rc2 with custom configuration

Posted: 07 Jun 2010 13:34
by laurent1103

Code: Select all

(gdb) backtrace #0 var_GetChecked (p_this=0x804b9c0, psz_name=0xb7fa90da "verbose", expected_type=48, p_val=0xbffff3dc) at misc/variables.c:814 #1 0xb7f9df21 in var_Inherit (p_this=0x804b9c0, psz_name=0xb7fa90da "verbose", i_type=<value optimized out>, p_val=0xbffff3dc) at misc/variables.c:1277 #2 0xb7f0b7f8 in var_InheritInteger (p_libvlc=0x804b9c0, i_argc=18, ppsz_argv=0xbffff420) at ../include/vlc_variables.h:672 #3 libvlc_InternalInit (p_libvlc=0x804b9c0, i_argc=18, ppsz_argv=0xbffff420) at libvlc.c:330 #4 0xb7fcddcf in libvlc_new (argc=17, argv=0xbffff4d0) at control/core.c:58 #5 0x08049109 in main (i_argc=16, ppsz_argv=0xbffff674) at vlc.c:182

Re: Assertion failed on 1.1.0rc2 with custom configuration

Posted: 07 Jun 2010 19:35
by Rémi Denis-Courmont
Your backtrace does not even correspond to the earlier report.

Re: Assertion failed on 1.1.0rc2 with custom configuration

Posted: 07 Jun 2010 20:16
by laurent1103
Ok, sorry.

Is the information below what you need ?

Code: Select all

vlc@tnt:~/apps/bin$ gdb --args ./vlc -vvv --reset-config --color --ttl 12 --ts-es-id-pid --programs=1537,1538,1542 dvb:// --dvb-adapter=2 --dvb-frequency=586000000 --dvb-bandwidth=8 --sout-standard-access=udp --sout-standard-mux=ts --sout '#duplicate{dst=rtp{mux=ts,sdp=rtsp://:8011/tv.sdp,port=9011,name="TV - FR - TF1"},select="program=1537",dst=rtp{mux=ts,sdp=rtsp://:8012/tv.sdp,port=9012,name="TV - FR - NRJ12"},select="program=1538",dst=rtp{mux=ts,sdp=rtsp://:8013/tv.sdp,port=9013,name="TV - FR - TMC"},select="program=1542"}' GNU gdb (GDB) 7.0.1-debian Copyright (C) 2009 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". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /home/vlc/apps/bin/vlc...done. (gdb) break misc/variables.c:826 No source file named misc/variables.c. Make breakpoint pending on future shared library load? (y or [n]) y Breakpoint 1 (misc/variables.c:826) pending. (gdb) run Starting program: /home/vlc/apps/bin/vlc -vvv --reset-config --color --ttl 12 --ts-es-id-pid --programs=1537,1538,1542 dvb:// --dvb-adapter=2 --dvb-frequency=586000000 --dvb-bandwidth=8 --sout-standard-access=udp --sout-standard-mux=ts --sout \#duplicate\{dst=rtp\{mux=ts,sdp=rtsp://:8011/tv.sdp,port=9011,name=\"TV\ -\ FR\ -\ TF1\"\},select=\"program=1537\",dst=rtp\{mux=ts,sdp=rtsp://:8012/tv.sdp,port=9012,name=\"TV\ -\ FR\ -\ NRJ12\"\},select=\"program=1538\",dst=rtp\{mux=ts,sdp=rtsp://:8013/tv.sdp,port=9013,name=\"TV\ -\ FR\ -\ TMC\"\},select=\"program=1542\"\} [Thread debugging using libthread_db enabled] VLC media player 1.1.0-rc2 The Luggage (revision 1.1.0-rc2-37-ga6d4afc) Breakpoint 1, var_GetChecked (p_this=0x804b9c0, psz_name=0xb7fa90da "verbose", expected_type=48, p_val=0xbffff3dc) at misc/variables.c:829 829 *p_val = p_var->val; (gdb) continue Continuing. [0x804b9c0] main libvlc debug: VLC media player - 1.1.0-rc2 The Luggage [0x804b9c0] main libvlc debug: Copyright © 1996-2010 the VideoLAN team [0x804b9c0] main libvlc debug: revision 1.1.0-rc2-37-ga6d4afc [0x804b9c0] main libvlc debug: configured with ./configure '--enable-debug' '--enable-static' '--disable-telepathy' '--disable-dbus' '--disable-dbus-control' '--disable-lua' '--disable-httpd' '--disable-vlm' '--disable-dc1394' '--disable-dvdread' '--disable-dvdnav' '--disable-smb' '--disable-libcddb' '--disable-vcd' '--disable-screen' '--disable-ogg' '--disable-mux_ogg' '--disable-mkv' '--disable-mod' '--disable-mpc' '--disable-gme' '--disable-id3tag' '--disable-swscale' '--disable-postproc' '--enable-real' '--enable-realrtsp' '--disable-libtar' '--disable-a52' '--disable-dca' '--disable-vorbis' '--disable-speex' '--disable-theora' '--disable-schroedinger' '--disable-png' '--disable-x264' '--disable-fluidsynth' '--disable-zvbi' '--disable-telx' '--disable-kate' '--without-x' '--disable-xcb' '--disable-xvideo' '--disable-glx' '--disable-sdl' '--disable-sdl-image' '--disable-freetype' '--disable-fribidi' '--disable-fontconfig' '--disable-libxml2' '--disable-fb' '--disable-oss' '--disable-pulse' '--disable-alsa' '--disable-upnp' '--disable-skins2' '--disable-qt4' '--disable-ncurses' '--disable-visual' '--disable-atmo' '--disable-bonjour' '--disable-remoteosd' '--with-tuning=pentium4' '--disable-update-check' '--prefix=/home/vlc/apps/' '--with-binary-version=2' [0x804b9c0] main libvlc debug: translation test: code is "FR" [0x804b9c0] main libvlc debug: checking plugin modules [0x804b9c0] main libvlc debug: loading plugins cache file /home/vlc/apps/lib/vlc/plugins/plugins-04041e-1e8.dat [0x804b9c0] main libvlc debug: recursively browsing `/home/vlc/apps/lib/vlc/plugins' [0x804b9c0] main libvlc debug: saving plugins cache /home/vlc/apps/lib/vlc/plugins/plugins-04041e-1e8.dat [0x804b9c0] main libvlc debug: module bank initialized (284 modules) Breakpoint 1, var_GetChecked (p_this=0x804b9c0, psz_name=0xb7fa93d6 "ignore-config", expected_type=32, p_val=0xbffff3a4) at misc/variables.c:829 829 *p_val = p_var->val; (gdb) continue Continuing. Breakpoint 1, var_GetChecked (p_this=0x804b9c0, psz_name=0xb7fa93e4 "reset-config", expected_type=32, p_val=0xbffff39c) at misc/variables.c:829 829 *p_val = p_var->val; (gdb) continue Continuing. Breakpoint 1, var_GetChecked (p_this=0x804b9c0, psz_name=0xb7fa93dd "config", expected_type=64, p_val=0xbfffecc4) at misc/variables.c:829 829 *p_val = p_var->val; (gdb) continue Continuing. [0x804b9c0] main libvlc debug: opening config file (/home/vlc/.config/vlc/vlcrc) Breakpoint 1, var_GetChecked (p_this=0x804b9c0, psz_name=0xb7fa93dd "config", expected_type=64, p_val=0xbfffed34) at misc/variables.c:829 829 *p_val = p_var->val; (gdb) continue Continuing. Breakpoint 1, var_GetChecked (p_this=0x804b9c0, psz_name=0xb7fa93d6 "ignore-config", expected_type=32, p_val=0xbffff394) at misc/variables.c:829 829 *p_val = p_var->val; (gdb) continue Continuing. Breakpoint 1, var_GetChecked (p_this=0x804b9c0, psz_name=0xb7fa93dd "config", expected_type=64, p_val=0xbfffe944) at misc/variables.c:829 829 *p_val = p_var->val; (gdb) continue Continuing. [0x804b9c0] main libvlc debug: opening config file (/home/vlc/.config/vlc/vlcrc) Breakpoint 1, var_GetChecked (p_this=0x804b9c0, psz_name=0xb7fa90da "verbose", expected_type=48, p_val=0xbffff3d4) at misc/variables.c:829 829 *p_val = p_var->val; (gdb) continue Continuing. Breakpoint 1, var_GetChecked (p_this=0x804b9c0, psz_name=0xb7fa93f1 "verbose-objects", expected_type=64, p_val=0xbffff38c) at misc/variables.c:829 829 *p_val = p_var->val; (gdb) continue Continuing. Breakpoint 1, var_GetChecked (p_this=0x804b9c0, psz_name=0xb7fa90da "verbose", expected_type=48, p_val=0x8059c8c) at misc/variables.c:829 829 *p_val = p_var->val; (gdb) continue Continuing. Breakpoint 1, var_GetChecked (p_this=0x804b9c0, psz_name=0xb7fa90e2 "color", expected_type=32, p_val=0xbffff258) at misc/variables.c:829 829 *p_val = p_var->val; (gdb) continue Continuing. [0x804b9c0] main libvlc debug: CPU has capabilities MMX MMXEXT SSE SSE2 SSE3 FPU Breakpoint 1, var_GetChecked (p_this=0x804b9c0, psz_name=0xb7fa9487 "memcpy", expected_type=64, p_val=0xbffff244) at misc/variables.c:829 829 *p_val = p_var->val; (gdb) continue Continuing. [0x804b9c0] main libvlc debug: looking for memcpy module: 3 candidates [0x804b9c0] main libvlc debug: using memcpy module "memcpymmxext" Breakpoint 1, var_GetChecked (p_this=0x8059cf8, psz_name=0xb7fb1826 "album-art", expected_type=48, p_val=0xbffff1d8) at misc/variables.c:829 829 *p_val = p_var->val; (gdb) continue Continuing. Breakpoint 1, var_GetChecked (p_this=0x8059cf8, psz_name=0xb7fb1826 "album-art", expected_type=48, p_val=0xbffff1d8) at misc/variables.c:829 829 *p_val = p_var->val; (gdb) continue Continuing. [0x80caed8] main input debug: Creating an input for 'Bibliothèque' Breakpoint 1, var_GetChecked (p_this=0x804b9c0, psz_name=0xb7fb81b6 "sout", expected_type=64, p_val=0x80ce4cc) at misc/variables.c:829 829 *p_val = p_var->val; (gdb) continue Continuing. Breakpoint 1, var_GetChecked (p_this=0x80caed8, psz_name=0xb7fb2af0 "program", expected_type=0, p_val=0xbfffef48) at misc/variables.c:829 829 *p_val = p_var->val; (gdb) continue Continuing. vlc: misc/variables.c :826 : var_GetChecked: L'assertion « expected_type == 0 || (p_var->i_type & 0x00f0) == expected_type » a échoué. Program received signal SIGABRT, Aborted. 0xb7fe1424 in __kernel_vsyscall ()

Re: Assertion failed on 1.1.0rc2 with custom configuration

Posted: 07 Jun 2010 20:37
by Rémi Denis-Courmont
NOOO. I want the backtrace of the assertion failure. Is it that hard to understand?

Re: Assertion failed on 1.1.0rc2 with custom configuration

Posted: 07 Jun 2010 20:47
by laurent1103
Well, as this is the first time I'm doing that, I need to search a little.

Code: Select all

... vlc: misc/variables.c :826 : var_GetChecked: L'assertion « expected_type == 0 || (p_var->i_type & 0x00f0) == expected_type » a échoué. Program received signal SIGABRT, Aborted. 0xb7fe1424 in __kernel_vsyscall () (gdb) bt #0 0xb7fe1424 in __kernel_vsyscall () #1 0xb7db78e0 in *__GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 #2 0xb7dbae15 in *__GI_abort () at abort.c:88 #3 0xb7db0ace in *__GI___assert_fail (assertion=0xb7fc01f8 "expected_type == 0 || (p_var->i_type & 0x00f0) == expected_type", file=0xb7fc0179 "misc/variables.c", line=826, function=0xb7fc05f0 "var_GetChecked") at assert.c:78 #4 0xb7f9de4d in var_GetChecked (p_this=0x804b9c0, psz_name=0xb7fb0d35 "programs", expected_type=144, p_val=0x80d0204) at misc/variables.c:825 #5 0xb7f9df21 in var_Inherit (p_this=0x80caed8, psz_name=0xb7fb0d35 "programs", i_type=<value optimized out>, p_val=0x80d0204) at misc/variables.c:1277 #6 0xb7f9efca in var_Create (p_this=0x80caed8, psz_name=0xb7fb0d35 "programs", i_type=32912) at misc/variables.c:303 #7 0xb7f5a2f6 in input_ControlVarInit (p_input=0x80caed8) at input/var.c:181 #8 0xb7f478c1 in Create (p_parent=<value optimized out>, p_item=<value optimized out>, psz_header=0x0, b_quick=false, p_resource=0x0) at input/input.c:414 #9 0xb7f4f36e in input_Read (p_parent=0x8059cf8, p_item=0x80cb240) at input/input.c:164 #10 0xb7f299f4 in playlist_MLLoad (p_playlist=0x8059cf8) at playlist/loadsave.c:181 #11 0xb7f260ae in playlist_Create (p_parent=0x804b9c0) at playlist/engine.c:172 #12 0xb7f0c1ec in libvlc_InternalInit (p_libvlc=0x804b9c0, i_argc=18, ppsz_argv=0xbffff420) at libvlc.c:806 #13 0xb7fcddcf in libvlc_new (argc=17, argv=0xbffff4d0) at control/core.c:58 #14 0x08049109 in main (i_argc=16, ppsz_argv=0xbffff674) at vlc.c:182
Is that better ? If not, please explain me how to get the right information.

Re: Assertion failed on 1.1.0rc2 with custom configuration

Posted: 08 Jun 2010 20:41
by Rémi Denis-Courmont
That is more helpful, yes.

Re: Assertion failed on 1.1.0rc2 with custom configuration

Posted: 08 Jun 2010 20:42
by Rémi Denis-Courmont
Until this is fixed in the next release, you should keep the "programs" config option empty.

Re: Assertion failed on 1.1.0rc2 with custom configuration

Posted: 08 Jun 2010 22:05
by laurent1103
Ok. But as --programs is mandatory for streaming multiple DVB-T programs, I'll stay on 1.0.5 which is working great :)

Thanks for the support.