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](http://wiki.debian.org/HowToGetABacktrace) 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.
---
** [bugs:#211] VLC plugin crash Pd**
**Status:** open
**Created:** Thu Jun 06, 2013 05:02 PM UTC by jack
**Last Updated:** Thu Jun 06, 2013 05:08 PM UTC
**Owner:** nobody
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
---
Sent from sourceforge.net because you indicated interest in <https://sourceforge.net/p/pd-gem/bugs/211/>
To unsubscribe from further messages, please visit <https://sourceforge.net/auth/subscriptions/>
thanks.
Pd does *not* crash here (tested with the same libvlc (2.0.6-1) but on an i386 machine running debian).
---
** [bugs:#211] VLC plugin crash Pd**
**Status:** open
**Created:** Thu Jun 06, 2013 05:02 PM UTC by jack
**Last Updated:** Thu Jun 06, 2013 05:08 PM UTC
**Owner:** nobody
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
---
Sent from sourceforge.net because you indicated interest in <https://sourceforge.net/p/pd-gem/bugs/211/>
To unsubscribe from further messages, please visit <https://sourceforge.net/auth/subscriptions/>
$ 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)
---
** [bugs:#211] VLC plugin crash Pd**
**Status:** open
**Created:** Thu Jun 06, 2013 05:02 PM UTC by jack
**Last Updated:** Thu Jun 06, 2013 05:08 PM UTC
**Owner:** nobody
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
---
Sent from sourceforge.net because you indicated interest in <https://sourceforge.net/p/pd-gem/bugs/211/>
To unsubscribe from further messages, please visit <https://sourceforge.net/auth/subscriptions/>
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
---
** [bugs:#211] VLC plugin crash Pd**
**Status:** open
**Created:** Thu Jun 06, 2013 05:02 PM UTC by jack
**Last Updated:** Thu Jun 06, 2013 05:08 PM UTC
**Owner:** nobody
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
---
Sent from sourceforge.net because you indicated interest in <https://sourceforge.net/p/pd-gem/bugs/211/>
To unsubscribe from further messages, please visit <https://sourceforge.net/auth/subscriptions/>
could you provide a gdb backtrace?
$ gdb --args pd -nrt ...
[...]
(gdb) run
[...wait for crash...]
(gdb) bt
---
** [bugs:#211] VLC plugin crash Pd**
**Status:** open
**Created:** Thu Jun 06, 2013 05:02 PM UTC by jack
**Last Updated:** Thu Jun 06, 2013 05:02 PM UTC
**Owner:** nobody
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
---
Sent from sourceforge.net because you indicated interest in <https://sourceforge.net/p/pd-gem/bugs/211/>
To unsubscribe from further messages, please visit <https://sourceforge.net/auth/subscriptions/>
---
** [bugs:#211] VLC plugin crash Pd**
**Status:** open
**Created:** Thu Jun 06, 2013 05:02 PM UTC by jack
**Last Updated:** Thu Jun 06, 2013 05:02 PM UTC
**Owner:** nobody
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
---
Sent from sourceforge.net because you indicated interest in <https://sourceforge.net/p/pd-gem/bugs/211/>
To unsubscribe from further messages, please visit <https://sourceforge.net/auth/subscriptions/>