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.
++
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
$valgrindpd-nrt==17882==Memcheck,amemoryerrordetector==17882==Copyright(C)2002-2012,andGNUGPL'd, by Julian Seward et al.==17882==UsingValgrind-3.8.1andLibVEX;rerunwith-hforcopyrightinfo==17882==Command:pd-nrt==17882====17882==Invalidreadofsize1==17882==at0x5D19040:vfprintf(vfprintf.c:1655)==17882==by0x5DDBA83:__vsprintf_chk(vsprintf_chk.c:84)==17882==by0x5DDB9CC:__sprintf_chk(sprintf_chk.c:32)==17882==by0x4DC696:alsa_getdevs(in/usr/local/bin/pd)==17882==by0x48C8B3:sys_set_audio_settings(in/usr/local/bin/pd)==17882==by0x485D44:sys_loadpreferences(in/usr/local/bin/pd)==17882==by0x482438:sys_main(in/usr/local/bin/pd)==17882==by0x5CEDEA4:(belowmain)(libc-start.c:260)==17882==Address0x698d298is40bytesinsideablockofsize376free'd==17882==at0x4C2BA6C:free(in/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)==17882==by0x4DC677:alsa_getdevs(in/usr/local/bin/pd)==17882==by0x48C8B3:sys_set_audio_settings(in/usr/local/bin/pd)==17882==by0x485D44:sys_loadpreferences(in/usr/local/bin/pd)==17882==by0x482438:sys_main(in/usr/local/bin/pd)==17882==by0x5CEDEA4:(belowmain)(libc-start.c:260)==17882====17882==Invalidreadofsize1==17882==at0x5D48AB0:_IO_default_xsputn(genops.c:476)==17882==by0x5D18FFE:vfprintf(vfprintf.c:1655)==17882==by0x5DDBA83:__vsprintf_chk(vsprintf_chk.c:84)==17882==by0x5DDB9CC:__sprintf_chk(sprintf_chk.c:32)==17882==by0x4DC696:alsa_getdevs(in/usr/local/bin/pd)==17882==by0x48C8B3:sys_set_audio_settings(in/usr/local/bin/pd)==17882==by0x485D44:sys_loadpreferences(in/usr/local/bin/pd)==17882==by0x482438:sys_main(in/usr/local/bin/pd)==17882==by0x5CEDEA4:(belowmain)(libc-start.c:260)==17882==Address0x698d298is40bytesinsideablockofsize376free'd==17882==at0x4C2BA6C:free(in/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)==17882==by0x4DC677:alsa_getdevs(in/usr/local/bin/pd)==17882==by0x48C8B3:sys_set_audio_settings(in/usr/local/bin/pd)==17882==by0x485D44:sys_loadpreferences(in/usr/local/bin/pd)==17882==by0x482438:sys_main(in/usr/local/bin/pd)==17882==by0x5CEDEA4:(belowmain)(libc-start.c:260)==17882====17882==Invalidreadofsize1==17882==at0x5D48AC2:_IO_default_xsputn(genops.c:475)==17882==by0x5D18FFE:vfprintf(vfprintf.c:1655)==17882==by0x5DDBA83:__vsprintf_chk(vsprintf_chk.c:84)==17882==by0x5DDB9CC:__sprintf_chk(sprintf_chk.c:32)==17882==by0x4DC696:alsa_getdevs(in/usr/local/bin/pd)==17882==by0x48C8B3:sys_set_audio_settings(in/usr/local/bin/pd)==17882==by0x485D44:sys_loadpreferences(in/usr/local/bin/pd)==17882==by0x482438:sys_main(in/usr/local/bin/pd)==17882==by0x5CEDEA4:(belowmain)(libc-start.c:260)==17882==Address0x698d29ais42bytesinsideablockofsize376free'd==17882==at0x4C2BA6C:free(in/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)==17882==by0x4DC677:alsa_getdevs(in/usr/local/bin/pd)==17882==by0x48C8B3:sys_set_audio_settings(in/usr/local/bin/pd)==17882==by0x485D44:sys_loadpreferences(in/usr/local/bin/pd)==17882==by0x482438:sys_main(in/usr/local/bin/pd)==17882==by0x5CEDEA4:(belowmain)(libc-start.c:260)==17882====17882==Invalidreadofsize1==17882==at0x5D19040:vfprintf(vfprintf.c:1655)==17882==by0x5DDBA83:__vsprintf_chk(vsprintf_chk.c:84)==17882==by0x5DDB9CC:__sprintf_chk(sprintf_chk.c:32)==17882==by0x4DC6B9:alsa_getdevs(in/usr/local/bin/pd)==17882==by0x48C8B3:sys_set_audio_settings(in/usr/local/bin/pd)==17882==by0x485D44:sys_loadpreferences(in/usr/local/bin/pd)==17882==by0x482438:sys_main(in/usr/local/bin/pd)==17882==by0x5CEDEA4:(belowmain)(libc-start.c:260)==17882==Address0x698d298is40bytesinsideablockofsize376free'd==17882==at0x4C2BA6C:free(in/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)==17882==by0x4DC677:alsa_getdevs(in/usr/local/bin/pd)==17882==by0x48C8B3:sys_set_audio_settings(in/usr/local/bin/pd)==17882==by0x485D44:sys_loadpreferences(in/usr/local/bin/pd)==17882==by0x482438:sys_main(in/usr/local/bin/pd)==17882==by0x5CEDEA4:(belowmain)(libc-start.c:260)==17882====17882==Invalidreadofsize1==17882==at0x5D19040:vfprintf(vfprintf.c:1655)==17882==by0x5DDBA83:__vsprintf_chk(vsprintf_chk.c:84)==17882==by0x5DDB9CC:__sprintf_chk(sprintf_chk.c:32)==17882==by0x4DC6D8:alsa_getdevs(in/usr/local/bin/pd)==17882==by0x48C8B3:sys_set_audio_settings(in/usr/local/bin/pd)==17882==by0x485D44:sys_loadpreferences(in/usr/local/bin/pd)==17882==by0x482438:sys_main(in/usr/local/bin/pd)==17882==by0x5CEDEA4:(belowmain)(libc-start.c:260)==17882==Address0x698d298is40bytesinsideablockofsize376free'd==17882==at0x4C2BA6C:free(in/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)==17882==by0x4DC677:alsa_getdevs(in/usr/local/bin/pd)==17882==by0x48C8B3:sys_set_audio_settings(in/usr/local/bin/pd)==17882==by0x485D44:sys_loadpreferences(in/usr/local/bin/pd)==17882==by0x482438:sys_main(in/usr/local/bin/pd)==17882==by0x5CEDEA4:(belowmain)(libc-start.c:260)==17882====17882==Invalidreadofsize1==17882==at0x5D19040:vfprintf(vfprintf.c:1655)==17882==by0x5DDBA83:__vsprintf_chk(vsprintf_chk.c:84)==17882==by0x5DDB9CC:__sprintf_chk(sprintf_chk.c:32)==17882==by0x4DC6FD:alsa_getdevs(in/usr/local/bin/pd)==17882==by0x48C8B3:sys_set_audio_settings(in/usr/local/bin/pd)==17882==by0x485D44:sys_loadpreferences(in/usr/local/bin/pd)==17882==by0x482438:sys_main(in/usr/local/bin/pd)==17882==by0x5CEDEA4:(belowmain)(libc-start.c:260)==17882==Address0x698d298is40bytesinsideablockofsize376free'd==17882==at0x4C2BA6C:free(in/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)==17882==by0x4DC677:alsa_getdevs(in/usr/local/bin/pd)==17882==by0x48C8B3:sys_set_audio_settings(in/usr/local/bin/pd)==17882==by0x485D44:sys_loadpreferences(in/usr/local/bin/pd)==17882==by0x482438:sys_main(in/usr/local/bin/pd)==17882==by0x5CEDEA4:(belowmain)(libc-start.c:260)==17882==open:/etc/pd/gem.conf:Nosuchfileordirectoryopen:/home/jack/.config/pure-data/gem.conf:Nosuchfileordirectoryopen:./gem.conf:Nosuchfileordirectoryloadplugins'film'in'/home/jack/Gem/'pattern:/home/jack/Gem/gem_film*.sodylibloadingfile'/home/jack/Gem/gem_filmGMERLIN.so'!loadplugins'image'in'/home/jack/Gem/'pattern:/home/jack/Gem/gem_image*.sodylibloadingfile'/home/jack/Gem/gem_imageJPEG.so'!dylibloadingfile'/home/jack/Gem/gem_imageMAGICK.so'!dylibloadingfile'/home/jack/Gem/gem_imageSGI.so'!dylibloadingfile'/home/jack/Gem/gem_imageTIFF.so'!notreloading'image'plugins(already4loaded)loadplugins'image'in'/home/jack/Gem/'pattern:/home/jack/Gem/gem_image*.sodylibloadingfile'/home/jack/Gem/gem_imageJPEG.so'!dylibloadingfile'/home/jack/Gem/gem_imageMAGICK.so'!dylibloadingfile'/home/jack/Gem/gem_imageSGI.so'!dylibloadingfile'/home/jack/Gem/gem_imageTIFF.so'!loadplugins'model'in'/home/jack/Gem/'pattern:/home/jack/Gem/gem_model*.sodylibloadingfile'/home/jack/Gem/gem_modelOBJ.so'!loadplugins'record'in'/home/jack/Gem/'pattern:/home/jack/Gem/gem_record*.sodylibloadingfile'/home/jack/Gem/gem_recordV4L.so'!dylibloadingfile'/home/jack/Gem/gem_recordV4L2.so'!loadplugins'video'in'/home/jack/Gem/'pattern:/home/jack/Gem/gem_video*.sodylibloadingfile'/home/jack/Gem/gem_videoV4L.so'!dylibloadingfile'/home/jack/Gem/gem_videoV4L2.so'!dylibloadingfile'/home/jack/Gem/gem_videoVLC.so'!==17882====17882==HEAPSUMMARY:==17882==inuseatexit:4,287,292bytesin29,547blocks==17882==totalheapusage:64,495allocs,34,948frees,32,741,190bytesallocated==17882====17882==LEAKSUMMARY:==17882==definitelylost:36,666bytesin59blocks==17882==indirectlylost:18,596bytesin527blocks==17882==possiblylost:47,402bytesin1,383blocks==17882==stillreachable:4,184,628bytesin27,578blocks==17882==suppressed:0bytesin0blocks==17882==Rerunwith--leak-check=fulltoseedetailsofleakedmemory==17882====17882==Forcountsofdetectedandsuppressederrors,rerunwith:-v==17882==ERRORSUMMARY:216errorsfrom6contexts(suppressed:2from2)Erreurdesegmentation(coredumped)
++
Jack
Last edit: IOhannes m zmölnig 2013-06-06
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
OK, here the output of gdb (I use -nrt and not -rt) :
$gdb--argspd-nrt-stderr-verbose-verbose...GNUgdb(GDB)7.5.91.20130417-cvs-ubuntuCopyright(C)2013FreeSoftwareFoundation,Inc.LicenseGPLv3+:GNUGPLversion3orlater<http://gnu.org/licenses/gpl.html>Thisisfreesoftware:youarefreetochangeandredistributeit.ThereisNOWARRANTY,totheextentpermittedbylaw.Type"show copying"and"show warranty"fordetails.ThisGDBwasconfiguredas"x86_64-linux-gnu".Forbugreportinginstructions,pleasesee:<http://www.gnu.org/software/gdb/bugs/>...Readingsymbolsfrom/usr/local/bin/pd...(nodebuggingsymbolsfound)...done.(gdb)runStartingprogram:/usr/local/bin/pd-nrt-stderr-verbose-verbose...warning:noloadablesectionsfoundinaddedsymbol-filesystem-suppliedDSOat0x7ffff7ffa000[Threaddebuggingusinglibthread_dbenabled]Usinghostlibthread_dblibrary"/lib/x86_64-linux-gnu/libthread_db.so.1".inputchannels=2,outputchannels=2Pd-0.44.3("")compiled11:55:24Apr292013port5400TCL_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"5400Waitingforconnectionrequest......connectedopened0MIDIinputdevice(s)and0MIDIoutputdevice(s).inputchannels=2,outputchannels=2audiobuffersetto25openedinputdevicenamehw:0configuringsoundinput...Samplewidthsetto4bytesconfiguringsoundoutput...Samplewidthsetto4bytestried./Gem.l_ia64andfailedtried/home/jack/Gem/Gem.l_ia64andfailedtried/home/jack/pure-data/externals/moocow/pdstring/src/Gem.l_ia64andfailedtried/home/jack/pure-data/externals/zexy/src/.libs/Gem.l_ia64andfailedtried/home/jack/pure-data/externals/iem/iemnet/Gem.l_ia64andfailedtried/home/jack/Documents/PureData/PDabstractions/Gem.l_ia64andfailedtried/home/jack/pure-data/externals/mapping/Gem.l_ia64andfailedtried/home/jack/pure-data/externals/pmpd/Gem.l_ia64andfailedtried/home/jack/pure-data/externals/iem/iem_tab/Gem.l_ia64andfailedtried/home/jack/pure-data/abstractions/footils/list-abs/Gem.l_ia64andfailedtried/home/jack/pure-data/externals/boids/Gem.l_ia64andfailedtried/home/jack/pure-data/externals/ggee/control/Gem.l_ia64andfailedtried/home/jack/pure-data/externals/ggee/filters/Gem.l_ia64andfailedtried/home/jack/pure-data/trunk/externals/vbap/Gem.l_ia64andfailedtried/home/jack/pure-data/trunk/externals/loaders/pdlua/src/Gem.l_ia64andfailedtried/home/jack/pure-data/trunk/externals/pix_opencv/Gem.l_ia64andfailedtried/home/jack/pure-data/trunk/externals/mrpeach/osc/Gem.l_ia64andfailedtried/home/jack/pure-data/trunk/externals/iem/comport/comport/Gem.l_ia64andfailedtried/home/jack/pure-data/trunk/externals/extra/Gem.l_ia64andfailedtried/home/jack/Gem/extra/pix_fiducialtrack/Gem.l_ia64andfailedtried/home/jack/pure-data/externals/zexy/abs/Gem.l_ia64andfailedtried/home/jack/pure-data/externals/share_mem/Gem.l_ia64andfailedtried/home/jack/pd-externals/Gem.l_ia64andfailedtried/usr/local/lib/pd-externals/Gem.l_ia64andfailedtried/usr/local/lib/pd/extra/Gem.l_ia64andfailedtried./Gem.pd_linuxandfailedtried/home/jack/Gem/Gem.pd_linuxandsucceededverbose(5):notregistering[pix_filmQT]again...GEM:GraphicsEnvironmentforMultimediaverbose(2):GEM:ver:0.93.git374f713verbose(2):GEM:compiled:Apr302013verbose(2):GEM:maintainedbyIOhannesmzmoelnigverbose(2):GEM:Authors:MarkDanks(originalversion)verbose(2):GEM:ChrisClepperverbose(2):GEM:CyrilleHenryverbose(2):GEM:IOhannesmzmoelnigverbose(2):GEM:withhelpbyGuenterGeiger,DanielHeckenberg,JamesTittle,Hans-ChristophSteiner,etal.verbose(2):GEM:foundabug?missafeature?pleasereportit:verbose(2):GEM:homepagehttp://gem.iem.at/verbose(2):GEM:bug-trackerhttp://sourceforge.net/projects/pd-gem/verbose(2):GEM:mailing-listhttp://lists.puredata.info/listinfo/gem-dev/open:/etc/pd/gem.conf:Nosuchfileordirectoryopen:/home/jack/.config/pure-data/gem.conf:Nosuchfileordirectoryopen:./gem.conf:Nosuchfileordirectorytried./Gem-meta.pdandfailedtried/home/jack/Gem/Gem-meta.pdandsucceededverbose(2):GEM:compiledforMMX/SSE2architectureverbose(2):GEM:usingSSE2optimizationverbose(2):GEM:detected8CPUsloadplugins'film'in'/home/jack/Gem/'pattern:/home/jack/Gem/gem_film*.sodylibloadingfile'/home/jack/Gem/gem_filmGMERLIN.so'!verbose(5):backend'DirectShow'unavailableverbose(5):backend'AVI'unavailableverbose(5):tryingtoadd'gmerlin'asbackendverbose(5):addedbackend#0 'gmerlin'verbose(5):backend'QuickTime'unavailableverbose(5):backend'quicktime4linux'unavailableverbose(5):backend'MPEG3'unavailableverbose(5):backend'aviplay'unavailableverbose(5):backend'MPEG1'unavailableverbose(5):tryingtoadd'gmerlin'asbackendloadplugins'image'in'/home/jack/Gem/'pattern:/home/jack/Gem/gem_image*.sodylibloadingfile'/home/jack/Gem/gem_imageJPEG.so'!dylibloadingfile'/home/jack/Gem/gem_imageMAGICK.so'!dylibloadingfile'/home/jack/Gem/gem_imageSGI.so'!dylibloadingfile'/home/jack/Gem/gem_imageTIFF.so'!verbose(5):tryingtoadd'magick'asbackendverbose(5):addedbackend#0 'magick' @ 0x7ca090verbose(5):tryingtoadd'SGI'asbackendverbose(5):addedbackend#1 'SGI' @ 0x7ca040verbose(5):tryingtoadd'jpeg'asbackendverbose(5):addedbackend#2 'jpeg' @ 0xac9b10verbose(5):tryingtoadd'magick'asbackendverbose(5):tryingtoadd'tiff'asbackendverbose(5):addedbackend#3 'tiff' @ 0xac9b70GEM:imageloadingsupport:magickSGIjpegtiffnotreloading'image'plugins(already4loaded)verbose(5):tryingtoadd'magick'asbackendverbose(5):addedbackend#0 'magick' @ 0xad4840verbose(5):tryingtoadd'SGI'asbackendverbose(5):addedbackend#1 'SGI' @ 0x7a14a0verbose(5):tryingtoadd'jpeg'asbackendverbose(5):addedbackend#2 'jpeg' @ 0xad4930verbose(5):tryingtoadd'magick'asbackendverbose(5):tryingtoadd'tiff'asbackendverbose(5):addedbackend#3 'tiff' @ 0xad4bb0loadplugins'image'in'/home/jack/Gem/'pattern:/home/jack/Gem/gem_image*.sodylibloadingfile'/home/jack/Gem/gem_imageJPEG.so'!dylibloadingfile'/home/jack/Gem/gem_imageMAGICK.so'!dylibloadingfile'/home/jack/Gem/gem_imageSGI.so'!dylibloadingfile'/home/jack/Gem/gem_imageTIFF.so'!verbose(5):tryingtoadd'jpeg'asbackendverbose(5):addedbackend#0 'jpeg' @ 0x8b9e68verbose(5):tryingtoadd'magick'asbackendverbose(5):addedbackend#1 'magick' @ 0x8b9b98verbose(5):tryingtoadd'tiff'asbackendverbose(5):addedbackend#2 'tiff' @ 0x8b9ea8GEM:imagesavingsupport:jpegmagicktiffloadplugins'model'in'/home/jack/Gem/'pattern:/home/jack/Gem/gem_model*.sodylibloadingfile'/home/jack/Gem/gem_modelOBJ.so'!verbose(5):tryingtoadd'OBJ'asbackendverbose(5):addedbackend#0 'OBJ'loadplugins'record'in'/home/jack/Gem/'pattern:/home/jack/Gem/gem_record*.sodylibloadingfile'/home/jack/Gem/gem_recordV4L.so'!dylibloadingfile'/home/jack/Gem/gem_recordV4L2.so'!verbose(5):backend'QT'unavailableverbose(5):backend'QT4L'unavailableverbose(5):tryingtoadd'V4L'asbackendverbose(5):addedbackend#0 'V4L'verbose(5):tryingtoadd'V4L2'asbackendverbose(5):addedbackend#1 'V4L2'loadplugins'video'in'/home/jack/Gem/'pattern:/home/jack/Gem/gem_video*.sodylibloadingfile'/home/jack/Gem/gem_videoV4L.so'!dylibloadingfile'/home/jack/Gem/gem_videoV4L2.so'!dylibloadingfile'/home/jack/Gem/gem_videoVLC.so'!verbose(5):Gem::video:tryingtoadd'v4l2'asbackendverbose(5):Gem::video:addedbackend#0 'v4l2'verbose(5):Gem::video:tryingtoadd'v4l'asbackendverbose(5):Gem::video:addedbackend#1 'v4l'verbose(5):Gem::video:backend'dv4l'unavailableverbose(5):Gem::video:tryingtoadd'v4l'asbackendverbose(5):Gem::video:tryingtoadd'v4l2'asbackendverbose(5):Gem::video:tryingtoadd'vlc'asbackendProgramreceivedsignalSIGSEGV,Segmentationfault.__strcmp_sse42()at../sysdeps/x86_64/multiarch/strcmp-sse42.S:164164../sysdeps/x86_64/multiarch/strcmp-sse42.S:Aucunfichieroudossierdecetype.(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)atdl-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)atdl-error.c:177#10 0x00007ffff7ded809 in _dl_open (file=0xbb4590 "/usr/lib/vlc/plugins/gui/libqt4_plugin.so", mode=-2147483647, caller_dlopen=<optimizedout>,nsid=-2,argc=6,argv=0x7fffffffe198,env=0x7fffffffe1d0)atdl-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)atdl-error.c:177#13 0x00007ffff6f4363c in _dlerror_run (operate=operate@entry=0x7ffff6f42fc0 <dlopen_doit>, args=args@entry=0x7fffffffc3c0)atdlerror.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>tocontinue,orq<return>toquit---#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)atvideo.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>tocontinue,orq<return>toquit---#38 0x000000000047d89d in m_mainloop ()#39 0x00007ffff6b9bea5 in __libc_start_main (main=0x411cf0 <main>, argc=6, ubp_av=0x7fffffffe198, init=<optimized out>, fini=<optimizedout>,rtld_fini=<optimizedout>,stack_end=0x7fffffffe188)atlibc-start.c:260#40 0x0000000000411d21 in _start ()
++
Jack
Last edit: IOhannes m zmölnig 2013-06-06
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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).
Then it stops.
With valgrind, i get (if that can replace gdb) :
++
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
runcommand) and after it crashed, you have to manually ask it for a backtrace (with thebtcommand)once you are done, you can exit it with the
quitcommand. e.g. check the debian help for more information.and i forgot: please add the flags
-stderr -verbose -verbosewhen running Pd (in addition to-rt), it might reveal something that gets lost otherwise.OK, here the output of gdb (I use -nrt and not -rt) :
++
Jack
Last edit: IOhannes m zmölnig 2013-06-06
btw, doing a quick google for
libvlc_new segfault(libvlc_newis 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.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.
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
closing, as the problem is not wih Gem but with vlc (and fixable by upgrading)