#211 VLC plugin crash Pd

0.94
closed-wont-fix
5
2014-08-28
2013-06-06
jack
No

Hello,
Using VLC plugin crash Pd.
Removing the symlink solve this problem.
Can I help to enable this plugin in a patch ?
Configuration :
Ubuntu 13.04, Pd 0.44.3, Gem ver: 0.93.git 374f713.
++

Jack

Discussion

  • could you provide a gdb backtrace?

    $ gdb --args pd -nrt ...
    [...]
    (gdb) run
    [...wait for crash...]
    (gdb) bt

    and please provide the exact version of libvlc you are using as well.

    and a description of how to reproduce the bug.

     
    Last edit: IOhannes m zmölnig 2013-06-06
    • jack
      jack
      2013-06-06

      Version of libvlc :
      $ dpkg --list | grep libvlc
      ii libvlc-dev 2.0.6-1 amd64 development files for libvlc
      ii libvlc5 2.0.6-1 amd64 multimedia player and streamer library
      ii libvlccore5 2.0.6-1 amd64 base library for VLC and its modules

      To reproduce the bug :
      $ pd
      -> crash

      ++

      Jack

       
      • thanks.
        Pd does not crash here (tested with the same libvlc (2.0.6-1) but on an i386 machine running debian).

         
    • jack
      jack
      2013-06-06

      $ gdb --args pd -nrt ...
      GNU gdb (GDB) 7.5.91.20130417-cvs-ubuntu
      Copyright (C) 2013 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 "x86_64-linux-gnu".
      For bug reporting instructions, please see:
      <http://www.gnu.org/software/gdb/bugs/>...
      Reading symbols from /usr/local/bin/pd...(no debugging symbols found)...done.
      (gdb)
      

      Then it stops.

      With valgrind, i get (if that can replace gdb) :

      $ valgrind pd -nrt
      ==17882== Memcheck, a memory error detector
      ==17882== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
      ==17882== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
      ==17882== Command: pd -nrt
      ==17882== 
      ==17882== Invalid read of size 1
      ==17882==    at 0x5D19040: vfprintf (vfprintf.c:1655)
      ==17882==    by 0x5DDBA83: __vsprintf_chk (vsprintf_chk.c:84)
      ==17882==    by 0x5DDB9CC: __sprintf_chk (sprintf_chk.c:32)
      ==17882==    by 0x4DC696: alsa_getdevs (in /usr/local/bin/pd)
      ==17882==    by 0x48C8B3: sys_set_audio_settings (in /usr/local/bin/pd)
      ==17882==    by 0x485D44: sys_loadpreferences (in /usr/local/bin/pd)
      ==17882==    by 0x482438: sys_main (in /usr/local/bin/pd)
      ==17882==    by 0x5CEDEA4: (below main) (libc-start.c:260)
      ==17882==  Address 0x698d298 is 40 bytes inside a block of size 376 free'd
      ==17882==    at 0x4C2BA6C: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
      ==17882==    by 0x4DC677: alsa_getdevs (in /usr/local/bin/pd)
      ==17882==    by 0x48C8B3: sys_set_audio_settings (in /usr/local/bin/pd)
      ==17882==    by 0x485D44: sys_loadpreferences (in /usr/local/bin/pd)
      ==17882==    by 0x482438: sys_main (in /usr/local/bin/pd)
      ==17882==    by 0x5CEDEA4: (below main) (libc-start.c:260)
      ==17882== 
      ==17882== Invalid read of size 1
      ==17882==    at 0x5D48AB0: _IO_default_xsputn (genops.c:476)
      ==17882==    by 0x5D18FFE: vfprintf (vfprintf.c:1655)
      ==17882==    by 0x5DDBA83: __vsprintf_chk (vsprintf_chk.c:84)
      ==17882==    by 0x5DDB9CC: __sprintf_chk (sprintf_chk.c:32)
      ==17882==    by 0x4DC696: alsa_getdevs (in /usr/local/bin/pd)
      ==17882==    by 0x48C8B3: sys_set_audio_settings (in /usr/local/bin/pd)
      ==17882==    by 0x485D44: sys_loadpreferences (in /usr/local/bin/pd)
      ==17882==    by 0x482438: sys_main (in /usr/local/bin/pd)
      ==17882==    by 0x5CEDEA4: (below main) (libc-start.c:260)
      ==17882==  Address 0x698d298 is 40 bytes inside a block of size 376 free'd
      ==17882==    at 0x4C2BA6C: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
      ==17882==    by 0x4DC677: alsa_getdevs (in /usr/local/bin/pd)
      ==17882==    by 0x48C8B3: sys_set_audio_settings (in /usr/local/bin/pd)
      ==17882==    by 0x485D44: sys_loadpreferences (in /usr/local/bin/pd)
      ==17882==    by 0x482438: sys_main (in /usr/local/bin/pd)
      ==17882==    by 0x5CEDEA4: (below main) (libc-start.c:260)
      ==17882== 
      ==17882== Invalid read of size 1
      ==17882==    at 0x5D48AC2: _IO_default_xsputn (genops.c:475)
      ==17882==    by 0x5D18FFE: vfprintf (vfprintf.c:1655)
      ==17882==    by 0x5DDBA83: __vsprintf_chk (vsprintf_chk.c:84)
      ==17882==    by 0x5DDB9CC: __sprintf_chk (sprintf_chk.c:32)
      ==17882==    by 0x4DC696: alsa_getdevs (in /usr/local/bin/pd)
      ==17882==    by 0x48C8B3: sys_set_audio_settings (in /usr/local/bin/pd)
      ==17882==    by 0x485D44: sys_loadpreferences (in /usr/local/bin/pd)
      ==17882==    by 0x482438: sys_main (in /usr/local/bin/pd)
      ==17882==    by 0x5CEDEA4: (below main) (libc-start.c:260)
      ==17882==  Address 0x698d29a is 42 bytes inside a block of size 376 free'd
      ==17882==    at 0x4C2BA6C: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
      ==17882==    by 0x4DC677: alsa_getdevs (in /usr/local/bin/pd)
      ==17882==    by 0x48C8B3: sys_set_audio_settings (in /usr/local/bin/pd)
      ==17882==    by 0x485D44: sys_loadpreferences (in /usr/local/bin/pd)
      ==17882==    by 0x482438: sys_main (in /usr/local/bin/pd)
      ==17882==    by 0x5CEDEA4: (below main) (libc-start.c:260)
      ==17882== 
      ==17882== Invalid read of size 1
      ==17882==    at 0x5D19040: vfprintf (vfprintf.c:1655)
      ==17882==    by 0x5DDBA83: __vsprintf_chk (vsprintf_chk.c:84)
      ==17882==    by 0x5DDB9CC: __sprintf_chk (sprintf_chk.c:32)
      ==17882==    by 0x4DC6B9: alsa_getdevs (in /usr/local/bin/pd)
      ==17882==    by 0x48C8B3: sys_set_audio_settings (in /usr/local/bin/pd)
      ==17882==    by 0x485D44: sys_loadpreferences (in /usr/local/bin/pd)
      ==17882==    by 0x482438: sys_main (in /usr/local/bin/pd)
      ==17882==    by 0x5CEDEA4: (below main) (libc-start.c:260)
      ==17882==  Address 0x698d298 is 40 bytes inside a block of size 376 free'd
      ==17882==    at 0x4C2BA6C: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
      ==17882==    by 0x4DC677: alsa_getdevs (in /usr/local/bin/pd)
      ==17882==    by 0x48C8B3: sys_set_audio_settings (in /usr/local/bin/pd)
      ==17882==    by 0x485D44: sys_loadpreferences (in /usr/local/bin/pd)
      ==17882==    by 0x482438: sys_main (in /usr/local/bin/pd)
      ==17882==    by 0x5CEDEA4: (below main) (libc-start.c:260)
      ==17882== 
      ==17882== Invalid read of size 1
      ==17882==    at 0x5D19040: vfprintf (vfprintf.c:1655)
      ==17882==    by 0x5DDBA83: __vsprintf_chk (vsprintf_chk.c:84)
      ==17882==    by 0x5DDB9CC: __sprintf_chk (sprintf_chk.c:32)
      ==17882==    by 0x4DC6D8: alsa_getdevs (in /usr/local/bin/pd)
      ==17882==    by 0x48C8B3: sys_set_audio_settings (in /usr/local/bin/pd)
      ==17882==    by 0x485D44: sys_loadpreferences (in /usr/local/bin/pd)
      ==17882==    by 0x482438: sys_main (in /usr/local/bin/pd)
      ==17882==    by 0x5CEDEA4: (below main) (libc-start.c:260)
      ==17882==  Address 0x698d298 is 40 bytes inside a block of size 376 free'd
      ==17882==    at 0x4C2BA6C: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
      ==17882==    by 0x4DC677: alsa_getdevs (in /usr/local/bin/pd)
      ==17882==    by 0x48C8B3: sys_set_audio_settings (in /usr/local/bin/pd)
      ==17882==    by 0x485D44: sys_loadpreferences (in /usr/local/bin/pd)
      ==17882==    by 0x482438: sys_main (in /usr/local/bin/pd)
      ==17882==    by 0x5CEDEA4: (below main) (libc-start.c:260)
      ==17882== 
      ==17882== Invalid read of size 1
      ==17882==    at 0x5D19040: vfprintf (vfprintf.c:1655)
      ==17882==    by 0x5DDBA83: __vsprintf_chk (vsprintf_chk.c:84)
      ==17882==    by 0x5DDB9CC: __sprintf_chk (sprintf_chk.c:32)
      ==17882==    by 0x4DC6FD: alsa_getdevs (in /usr/local/bin/pd)
      ==17882==    by 0x48C8B3: sys_set_audio_settings (in /usr/local/bin/pd)
      ==17882==    by 0x485D44: sys_loadpreferences (in /usr/local/bin/pd)
      ==17882==    by 0x482438: sys_main (in /usr/local/bin/pd)
      ==17882==    by 0x5CEDEA4: (below main) (libc-start.c:260)
      ==17882==  Address 0x698d298 is 40 bytes inside a block of size 376 free'd
      ==17882==    at 0x4C2BA6C: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
      ==17882==    by 0x4DC677: alsa_getdevs (in /usr/local/bin/pd)
      ==17882==    by 0x48C8B3: sys_set_audio_settings (in /usr/local/bin/pd)
      ==17882==    by 0x485D44: sys_loadpreferences (in /usr/local/bin/pd)
      ==17882==    by 0x482438: sys_main (in /usr/local/bin/pd)
      ==17882==    by 0x5CEDEA4: (below main) (libc-start.c:260)
      ==17882== 
      open: /etc/pd/gem.conf: No such file or directory
      open: /home/jack/.config/pure-data/gem.conf: No such file or directory
      open: ./gem.conf: No such file or directory
      load plugins 'film' in '/home/jack/Gem/'
      pattern : /home/jack/Gem/gem_film*.so
      dylib loading file '/home/jack/Gem/gem_filmGMERLIN.so'!
      load plugins 'image' in '/home/jack/Gem/'
      pattern : /home/jack/Gem/gem_image*.so
      dylib loading file '/home/jack/Gem/gem_imageJPEG.so'!
      dylib loading file '/home/jack/Gem/gem_imageMAGICK.so'!
      dylib loading file '/home/jack/Gem/gem_imageSGI.so'!
      dylib loading file '/home/jack/Gem/gem_imageTIFF.so'!
      not reloading 'image' plugins (already 4 loaded)
      load plugins 'image' in '/home/jack/Gem/'
      pattern : /home/jack/Gem/gem_image*.so
      dylib loading file '/home/jack/Gem/gem_imageJPEG.so'!
      dylib loading file '/home/jack/Gem/gem_imageMAGICK.so'!
      dylib loading file '/home/jack/Gem/gem_imageSGI.so'!
      dylib loading file '/home/jack/Gem/gem_imageTIFF.so'!
      load plugins 'model' in '/home/jack/Gem/'
      pattern : /home/jack/Gem/gem_model*.so
      dylib loading file '/home/jack/Gem/gem_modelOBJ.so'!
      load plugins 'record' in '/home/jack/Gem/'
      pattern : /home/jack/Gem/gem_record*.so
      dylib loading file '/home/jack/Gem/gem_recordV4L.so'!
      dylib loading file '/home/jack/Gem/gem_recordV4L2.so'!
      load plugins 'video' in '/home/jack/Gem/'
      pattern : /home/jack/Gem/gem_video*.so
      dylib loading file '/home/jack/Gem/gem_videoV4L.so'!
      dylib loading file '/home/jack/Gem/gem_videoV4L2.so'!
      dylib loading file '/home/jack/Gem/gem_videoVLC.so'!
      ==17882== 
      ==17882== HEAP SUMMARY:
      ==17882==     in use at exit: 4,287,292 bytes in 29,547 blocks
      ==17882==   total heap usage: 64,495 allocs, 34,948 frees, 32,741,190 bytes allocated
      ==17882== 
      ==17882== LEAK SUMMARY:
      ==17882==    definitely lost: 36,666 bytes in 59 blocks
      ==17882==    indirectly lost: 18,596 bytes in 527 blocks
      ==17882==      possibly lost: 47,402 bytes in 1,383 blocks
      ==17882==    still reachable: 4,184,628 bytes in 27,578 blocks
      ==17882==         suppressed: 0 bytes in 0 blocks
      ==17882== Rerun with --leak-check=full to see details of leaked memory
      ==17882== 
      ==17882== For counts of detected and suppressed errors, rerun with: -v
      ==17882== ERROR SUMMARY: 216 errors from 6 contexts (suppressed: 2 from 2)
      Erreur de segmentation (core dumped)
      

      ++

      Jack

       
      Last edit: IOhannes m zmölnig 2013-06-06
      • thanks.

        my initial thought that the version of Gem you are running does not match the version of Gem the videoVLC plugin was compiled with (though it should detect that), seems to be highly unlikely given that setup.

        anyhow, valgrind is not a replacement for gdb, they are complementing each other.
        so i'd still like to have a gdb backtrace.

        the trick (as outlined in the original post) is, that gdb is interactive. after starting it, you have to manually run the program (with the run command) and after it crashed, you have to manually ask it for a backtrace (with the bt command)
        once you are done, you can exit it with the quit command. e.g. check the debian help for more information.

        and i forgot: please add the flags -stderr -verbose -verbose when running Pd (in addition to -rt), it might reveal something that gets lost otherwise.

         
        • jack
          jack
          2013-06-06

          OK, here the output of gdb (I use -nrt and not -rt) :

          $ gdb --args pd -nrt -stderr -verbose -verbose ...
          GNU gdb (GDB) 7.5.91.20130417-cvs-ubuntu
          Copyright (C) 2013 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 "x86_64-linux-gnu".
          For bug reporting instructions, please see:
          <http://www.gnu.org/software/gdb/bugs/>...
          Reading symbols from /usr/local/bin/pd...(no debugging symbols found)...done.
          (gdb) run
          Starting program: /usr/local/bin/pd -nrt -stderr -verbose -verbose ...
          warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7ffff7ffa000
          [Thread debugging using libthread_db enabled]
          Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
          input channels = 2, output channels = 2
          Pd-0.44.3 ("") compiled 11:55:24 Apr 29 2013
          port 5400
          TCL_LIBRARY="/usr/local/lib/pd/lib/tcl/library" TK_LIBRARY="/usr/local/lib/pd/lib/tk/library"   wish "/usr/local/lib/pd/tcl//pd-gui.tcl" 5400
          Waiting for connection request... 
          ... connected
          opened 0 MIDI input device(s) and 0 MIDI output device(s).
          input channels = 2, output channels = 2
          audio buffer set to 25
          opened input device name hw:0
          configuring sound input...
          Sample width set to 4 bytes
          configuring sound output...
          Sample width set to 4 bytes
          tried ./Gem.l_ia64 and failed
          tried /home/jack/Gem/Gem.l_ia64 and failed
          tried /home/jack/pure-data/externals/moocow/pdstring/src/Gem.l_ia64 and failed
          tried /home/jack/pure-data/externals/zexy/src/.libs/Gem.l_ia64 and failed
          tried /home/jack/pure-data/externals/iem/iemnet/Gem.l_ia64 and failed
          tried /home/jack/Documents/PureData/PDabstractions/Gem.l_ia64 and failed
          tried /home/jack/pure-data/externals/mapping/Gem.l_ia64 and failed
          tried /home/jack/pure-data/externals/pmpd/Gem.l_ia64 and failed
          tried /home/jack/pure-data/externals/iem/iem_tab/Gem.l_ia64 and failed
          tried /home/jack/pure-data/abstractions/footils/list-abs/Gem.l_ia64 and failed
          tried /home/jack/pure-data/externals/boids/Gem.l_ia64 and failed
          tried /home/jack/pure-data/externals/ggee/control/Gem.l_ia64 and failed
          tried /home/jack/pure-data/externals/ggee/filters/Gem.l_ia64 and failed
          tried /home/jack/pure-data/trunk/externals/vbap/Gem.l_ia64 and failed
          tried /home/jack/pure-data/trunk/externals/loaders/pdlua/src/Gem.l_ia64 and failed
          tried /home/jack/pure-data/trunk/externals/pix_opencv/Gem.l_ia64 and failed
          tried /home/jack/pure-data/trunk/externals/mrpeach/osc/Gem.l_ia64 and failed
          tried /home/jack/pure-data/trunk/externals/iem/comport/comport/Gem.l_ia64 and failed
          tried /home/jack/pure-data/trunk/externals/extra/Gem.l_ia64 and failed
          tried /home/jack/Gem/extra/pix_fiducialtrack/Gem.l_ia64 and failed
          tried /home/jack/pure-data/externals/zexy/abs/Gem.l_ia64 and failed
          tried /home/jack/pure-data/externals/share_mem/Gem.l_ia64 and failed
          tried /home/jack/pd-externals/Gem.l_ia64 and failed
          tried /usr/local/lib/pd-externals/Gem.l_ia64 and failed
          tried /usr/local/lib/pd/extra/Gem.l_ia64 and failed
          tried ./Gem.pd_linux and failed
          tried /home/jack/Gem/Gem.pd_linux and succeeded
          verbose(5): not registering [pix_filmQT] again...
          GEM: Graphics Environment for Multimedia
          verbose(2): GEM: ver: 0.93.git 374f713
          verbose(2): GEM: compiled: Apr 30 2013
          verbose(2): GEM: maintained by IOhannes m zmoelnig
          verbose(2): GEM: Authors :  Mark Danks (original version)
          verbose(2): GEM:        Chris Clepper
          verbose(2): GEM:        Cyrille Henry
          verbose(2): GEM:        IOhannes m zmoelnig
          verbose(2): GEM: with help by Guenter Geiger, Daniel Heckenberg, James Tittle, Hans-Christoph Steiner, et al.
          verbose(2): GEM: found a bug? miss a feature? please report it:
          verbose(2): GEM:    homepage http://gem.iem.at/
          verbose(2): GEM:    bug-tracker http://sourceforge.net/projects/pd-gem/
          verbose(2): GEM:    mailing-list http://lists.puredata.info/listinfo/gem-dev/
          open: /etc/pd/gem.conf: No such file or directory
          open: /home/jack/.config/pure-data/gem.conf: No such file or directory
          open: ./gem.conf: No such file or directory
          tried ./Gem-meta.pd and failed
          tried /home/jack/Gem/Gem-meta.pd and succeeded
          verbose(2): GEM: compiled for MMX/SSE2 architecture
          verbose(2): GEM: using SSE2 optimization
          verbose(2): GEM: detected 8 CPUs
          load plugins 'film' in '/home/jack/Gem/'
          pattern : /home/jack/Gem/gem_film*.so
          dylib loading file '/home/jack/Gem/gem_filmGMERLIN.so'!
          verbose(5): backend 'DirectShow' unavailable
          verbose(5): backend 'AVI' unavailable
          verbose(5): trying to add 'gmerlin' as backend
          verbose(5): added backend#0 'gmerlin'
          verbose(5): backend 'QuickTime' unavailable
          verbose(5): backend 'quicktime4linux' unavailable
          verbose(5): backend 'MPEG3' unavailable
          verbose(5): backend 'aviplay' unavailable
          verbose(5): backend 'MPEG1' unavailable
          verbose(5): trying to add 'gmerlin' as backend
          load plugins 'image' in '/home/jack/Gem/'
          pattern : /home/jack/Gem/gem_image*.so
          dylib loading file '/home/jack/Gem/gem_imageJPEG.so'!
          dylib loading file '/home/jack/Gem/gem_imageMAGICK.so'!
          dylib loading file '/home/jack/Gem/gem_imageSGI.so'!
          dylib loading file '/home/jack/Gem/gem_imageTIFF.so'!
          verbose(5): trying to add 'magick' as backend
          verbose(5): added backend#0 'magick' @ 0x7ca090
          verbose(5): trying to add 'SGI' as backend
          verbose(5): added backend#1 'SGI' @ 0x7ca040
          verbose(5): trying to add 'jpeg' as backend
          verbose(5): added backend#2 'jpeg' @ 0xac9b10
          verbose(5): trying to add 'magick' as backend
          verbose(5): trying to add 'tiff' as backend
          verbose(5): added backend#3 'tiff' @ 0xac9b70
          GEM: image loading support: magick SGI jpeg tiff
          not reloading 'image' plugins (already 4 loaded)
          verbose(5): trying to add 'magick' as backend
          verbose(5): added backend#0 'magick' @ 0xad4840
          verbose(5): trying to add 'SGI' as backend
          verbose(5): added backend#1 'SGI' @ 0x7a14a0
          verbose(5): trying to add 'jpeg' as backend
          verbose(5): added backend#2 'jpeg' @ 0xad4930
          verbose(5): trying to add 'magick' as backend
          verbose(5): trying to add 'tiff' as backend
          verbose(5): added backend#3 'tiff' @ 0xad4bb0
          load plugins 'image' in '/home/jack/Gem/'
          pattern : /home/jack/Gem/gem_image*.so
          dylib loading file '/home/jack/Gem/gem_imageJPEG.so'!
          dylib loading file '/home/jack/Gem/gem_imageMAGICK.so'!
          dylib loading file '/home/jack/Gem/gem_imageSGI.so'!
          dylib loading file '/home/jack/Gem/gem_imageTIFF.so'!
          verbose(5): trying to add 'jpeg' as backend
          verbose(5): added backend#0 'jpeg' @ 0x8b9e68
          verbose(5): trying to add 'magick' as backend
          verbose(5): added backend#1 'magick' @ 0x8b9b98
          verbose(5): trying to add 'tiff' as backend
          verbose(5): added backend#2 'tiff' @ 0x8b9ea8
          GEM: image saving support: jpeg magick tiff
          load plugins 'model' in '/home/jack/Gem/'
          pattern : /home/jack/Gem/gem_model*.so
          dylib loading file '/home/jack/Gem/gem_modelOBJ.so'!
          verbose(5): trying to add 'OBJ' as backend
          verbose(5): added backend#0 'OBJ'
          load plugins 'record' in '/home/jack/Gem/'
          pattern : /home/jack/Gem/gem_record*.so
          dylib loading file '/home/jack/Gem/gem_recordV4L.so'!
          dylib loading file '/home/jack/Gem/gem_recordV4L2.so'!
          verbose(5): backend 'QT' unavailable
          verbose(5): backend 'QT4L' unavailable
          verbose(5): trying to add 'V4L' as backend
          verbose(5): added backend#0 'V4L'
          verbose(5): trying to add 'V4L2' as backend
          verbose(5): added backend#1 'V4L2'
          load plugins 'video' in '/home/jack/Gem/'
          pattern : /home/jack/Gem/gem_video*.so
          dylib loading file '/home/jack/Gem/gem_videoV4L.so'!
          dylib loading file '/home/jack/Gem/gem_videoV4L2.so'!
          dylib loading file '/home/jack/Gem/gem_videoVLC.so'!
          verbose(5): Gem::video: trying to add 'v4l2' as backend
          verbose(5): Gem::video: added backend#0 'v4l2'
          verbose(5): Gem::video: trying to add 'v4l' as backend
          verbose(5): Gem::video: added backend#1 'v4l'
          verbose(5): Gem::video: backend 'dv4l' unavailable
          verbose(5): Gem::video: trying to add 'v4l' as backend
          verbose(5): Gem::video: trying to add 'v4l2' as backend
          verbose(5): Gem::video: trying to add 'vlc' as backend
          
          Program received signal SIGSEGV, Segmentation fault.
          __strcmp_sse42 () at ../sysdeps/x86_64/multiarch/strcmp-sse42.S:164
          164 ../sysdeps/x86_64/multiarch/strcmp-sse42.S: Aucun fichier ou dossier de ce type.
          (gdb) bt
          #0  __strcmp_sse42 () at ../sysdeps/x86_64/multiarch/strcmp-sse42.S:164
          #1  0x00007fffe57b2f99 in g_str_equal () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
          #2  0x00007fffe57b26cf in g_hash_table_lookup () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
          #3  0x00007fffe57d1e5f in g_quark_from_static_string () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
          #4  0x00007fffe08c66ec in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
          #5  0x00007ffff7de9876 in call_init (l=l@entry=0xbc2830, argc=argc@entry=6, argv=argv@entry=0x7fffffffe198, 
              env=env@entry=0x7fffffffe1d0) at dl-init.c:84
          #6  0x00007ffff7de9930 in call_init (env=<optimized out>, argv=<optimized out>, argc=<optimized out>, l=0xbc2830) at dl-init.c:55
          #7  _dl_init (main_map=main_map@entry=0xbb9150, argc=6, argv=0x7fffffffe198, env=0x7fffffffe1d0) at dl-init.c:133
          #8  0x00007ffff7dedfdf in dl_open_worker (a=a@entry=0x7fffffffc1b8) at dl-open.c:566
          #9  0x00007ffff7de9706 in _dl_catch_error (objname=objname@entry=0x7fffffffc1a8, errstring=errstring@entry=0x7fffffffc1b0, 
              mallocedp=mallocedp@entry=0x7fffffffc1a0, operate=operate@entry=0x7ffff7dedc00 <dl_open_worker>, args=args@entry=0x7fffffffc1b8)
              at dl-error.c:177
          #10 0x00007ffff7ded809 in _dl_open (file=0xbb4590 "/usr/lib/vlc/plugins/gui/libqt4_plugin.so", mode=-2147483647, 
              caller_dlopen=<optimized out>, nsid=-2, argc=6, argv=0x7fffffffe198, env=0x7fffffffe1d0) at dl-open.c:656
          #11 0x00007ffff6f43026 in dlopen_doit (a=a@entry=0x7fffffffc3c0) at dlopen.c:66
          #12 0x00007ffff7de9706 in _dl_catch_error (objname=0x740e30, errstring=0x740e38, mallocedp=0x740e28, 
              operate=0x7ffff6f42fc0 <dlopen_doit>, args=0x7fffffffc3c0) at dl-error.c:177
          #13 0x00007ffff6f4363c in _dlerror_run (operate=operate@entry=0x7ffff6f42fc0 <dlopen_doit>, args=args@entry=0x7fffffffc3c0)
              at dlerror.c:163
          #14 0x00007ffff6f430c1 in __dlopen (file=<optimized out>, mode=<optimized out>) at dlopen.c:87
          #15 0x00007fffe333313d in ?? () from /usr/lib/libvlccore.so.5
          #16 0x00007fffe331a1c8 in ?? () from /usr/lib/libvlccore.so.5
          ---Type <return> to continue, or q <return> to quit---
          #17 0x00007fffe331a49b in ?? () from /usr/lib/libvlccore.so.5
          #18 0x00007fffe331a68d in ?? () from /usr/lib/libvlccore.so.5
          #19 0x00007fffe331a7b0 in ?? () from /usr/lib/libvlccore.so.5
          #20 0x00007fffe331ae3d in ?? () from /usr/lib/libvlccore.so.5
          #21 0x00007fffe32aff0b in libvlc_InternalInit () from /usr/lib/libvlccore.so.5
          #22 0x00007fffe35815b5 in libvlc_new () from /usr/lib/libvlc.so.5
          #23 0x00007fffe3799aad in gem::plugins::videoVLC::videoVLC (this=0x7d33a0) at videoVLC.cpp:56
          #24 0x00007fffe3799bb3 in gem::PluginFactoryRegistrar::allocator<gem::plugins::videoVLC, gem::plugins::video> ()
              at ../../src/plugins/PluginFactoryTimple.h:134
          #25 0x00007ffff38f307a in doGetInstance (id=..., this=<optimized out>) at ../../src/plugins/PluginFactoryTimple.h:70
          #26 getInstance (id=...) at ../../src/plugins/PluginFactoryTimple.h:96
          #27 addPlugin (ID=..., available=<error reading variable: access outside bounds of object referenced via synthetic pointer>, 
              this=0x7cf4a0) at video.cpp:80
          #28 gem::plugins::videoMeta::videoMeta (this=0x7cf4a0) at video.cpp:111
          #29 0x00007ffff38ea9d3 in gem::plugins::video::getInstance () at video.cpp:313
          #30 0x00007ffff38bdd9d in gem::plugins::init () at PluginFactory.cpp:175
          #31 0x0000000000488bc3 in sys_do_load_lib ()
          #32 0x0000000000488f48 in sys_load_lib ()
          #33 0x0000000000480cb3 in glob_initfromgui ()
          #34 0x000000000046f5d9 in pd_typedmess ()
          #35 0x000000000047995b in binbuf_eval ()
          #36 0x0000000000483e13 in socketreceiver_read ()
          #37 0x00000000004828ac in sys_domicrosleep.constprop.3 ()
          ---Type <return> to continue, or q <return> to quit---
          #38 0x000000000047d89d in m_mainloop ()
          #39 0x00007ffff6b9bea5 in __libc_start_main (main=0x411cf0 <main>, argc=6, ubp_av=0x7fffffffe198, init=<optimized out>, 
              fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe188) at libc-start.c:260
          #40 0x0000000000411d21 in _start ()
          

          ++

          Jack

           
          Last edit: IOhannes m zmölnig 2013-06-06
  • btw, doing a quick google for libvlc_new segfault (libvlc_new is the function that triggers the segfault) gives me a number of results, all related to C++-code. it might be a problem with libvlc (or a common compiler/linker issue that Gem triggers as well). maybe you can dig more info out of those search results.

     
    • jack
      jack
      2013-06-07

      Hello,

      I do the following to stop the crash :
      $ sudo mv /usr/lib/vlc/plugins/gui/libqt4_plugin.so /usr/lib/vlc/plugins/gui/libqt4_plugin.so_back
      $ sudo mv /usr/lib/vlc/plugins/notify/libnotify_plugin.so /usr/lib/vlc/plugins/notify/libnotify_plugin.so_back

      I don't know if there will be consequences with the VLC plugin, but now i get :
      [pix_video]: backend #0='v4l2' : v4l2 analog
      [pix_video]: backend #1='v4l' : v4l analog
      [pix_video]: backend #2='dc1394' : dc1394 iidc
      [pix_video]: backend #3='vlc' : vlc

      And when i send the message [device screen://( to [pix_video], is is working fine :)
      ++

      Jack

       
  • i don't know either, but it might hint at a bug within VLC (or some linker problem due to a special config within VLC). it would be great if you forwarded that bug to the VLC devs.

     
    • jack
      jack
      2013-08-03

      The last version of libvlc (2.0.8) solved all problems :

      $ dpkg --list | grep libvlc
      ii libvlc-dev 2.0.8-0ubuntu0.13.04.1 amd64 development files for libvlc
      ii libvlc5 2.0.8-0ubuntu0.13.04.1 amd64 multimedia player and streamer library
      ii libvlccore5 2.0.8-0ubuntu0.13.04.1 amd64 base library for VLC and its modules
      ++

      Jack

       


Anonymous


Cancel   Add attachments