[L2Ork-dev] Purr Data 2.4.4

Alberto Zin alberto.zin at gmail.com
Tue Dec 12 05:39:48 UTC 2017


Hello Jonathan,
thanks for the propmt support. This is the output of valgrind when loading
the patch I was talking about:

alberto at alberto-XPS-8300 ~ $ valgrind purr-data -nrt
~/Documenti/PureData_Archive/patches/AlbertoZ/Modulare_optim_tests/release/Main.pd

==3875== Memcheck, a memory error detector
==3875== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==3875== Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info
==3875== Command: purr-data -nrt
/home/alberto/Documenti/PureData_Archive/patches/AlbertoZ/Modulare_optim_tests/release/Main.pd
==3875==
guidir is /opt/purr-data/lib/pd-l2ork/bin
[1212/061021.708492:WARNING:chrome_main_delegate.cc(565)] final extension:
/etc/pd/gem.conf: No such file or directory
/home/alberto/.config/pure-data/gem.conf: No such file or directory
./gem.conf: No such file or directory
load plugins 'film' in '/opt/purr-data/lib/pd-l2ork/extra/Gem/'
pattern : /opt/purr-data/lib/pd-l2ork/extra/Gem/gem_film*.so
dylib loading file
'/opt/purr-data/lib/pd-l2ork/extra/Gem/gem_filmAVIPLAY.so'!
<init> : Avifile RELEASE-0.7.48-131109-06:30-../src/configure
<init> : Available CPU flags: fpu vme de pse tsc msr pae mce cx8 apic sep
mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe
syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl
<init> : 1600.00 MHz Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz processor
detected
dylib loading file
'/opt/purr-data/lib/pd-l2ork/extra/Gem/gem_filmGMERLIN.so'!
dylib loading file '/opt/purr-data/lib/pd-l2ork/extra/Gem/gem_filmMPEG3.so'!
dylib loading file '/opt/purr-data/lib/pd-l2ork/extra/Gem/gem_filmQT4L.so'!
load plugins 'image' in '/opt/purr-data/lib/pd-l2ork/extra/Gem/'
pattern : /opt/purr-data/lib/pd-l2ork/extra/Gem/gem_image*.so
dylib loading file '/opt/purr-data/lib/pd-l2ork/extra/Gem/gem_imageJPEG.so'!
dylib loading file
'/opt/purr-data/lib/pd-l2ork/extra/Gem/gem_imageMAGICK.so'!
dylib loading file '/opt/purr-data/lib/pd-l2ork/extra/Gem/gem_imageSGI.so'!
dylib loading file '/opt/purr-data/lib/pd-l2ork/extra/Gem/gem_imageTIFF.so'!
not reloading 'image' plugins (already 4 loaded)
load plugins 'image' in '/opt/purr-data/lib/pd-l2ork/extra/Gem/'
pattern : /opt/purr-data/lib/pd-l2ork/extra/Gem/gem_image*.so
dylib loading file '/opt/purr-data/lib/pd-l2ork/extra/Gem/gem_imageJPEG.so'!
dylib loading file
'/opt/purr-data/lib/pd-l2ork/extra/Gem/gem_imageMAGICK.so'!
dylib loading file '/opt/purr-data/lib/pd-l2ork/extra/Gem/gem_imageSGI.so'!
dylib loading file '/opt/purr-data/lib/pd-l2ork/extra/Gem/gem_imageTIFF.so'!
load plugins 'model' in '/opt/purr-data/lib/pd-l2ork/extra/Gem/'
pattern : /opt/purr-data/lib/pd-l2ork/extra/Gem/gem_model*.so
dylib loading file '/opt/purr-data/lib/pd-l2ork/extra/Gem/gem_modelOBJ.so'!
load plugins 'record' in '/opt/purr-data/lib/pd-l2ork/extra/Gem/'
pattern : /opt/purr-data/lib/pd-l2ork/extra/Gem/gem_record*.so
dylib loading file
'/opt/purr-data/lib/pd-l2ork/extra/Gem/gem_recordQT4L.so'!
dylib loading file '/opt/purr-data/lib/pd-l2ork/extra/Gem/gem_recordV4L.so'!
dylib loading file
'/opt/purr-data/lib/pd-l2ork/extra/Gem/gem_recordV4L2.so'!

==3875== Invalid read of size 4
==3875==    at 0x1C0B12AD: ??? (in
/usr/lib/x86_64-linux-gnu/libquicktime.so.2.0.0)
==3875==    by 0x1C0B1ED8: ??? (in
/usr/lib/x86_64-linux-gnu/libquicktime.so.2.0.0)
==3875==    by 0x1C0B4F60: lqt_registry_init (in
/usr/lib/x86_64-linux-gnu/libquicktime.so.2.0.0)
==3875==    by 0x1F519E23: gem::plugins::recordQT4L::recordQT4L() (in
/opt/purr-data/lib/pd-l2ork/extra/Gem/gem_recordQT4L.so)
==3875==    by 0x1F51A53A: ??? (in
/opt/purr-data/lib/pd-l2ork/extra/Gem/gem_recordQT4L.so)
==3875==    by 0xFF27547: gem::plugins::record::getInstance() (in
/opt/purr-data/lib/pd-l2ork/extra/Gem/Gem.pd_linux)
==3875==    by 0xFEFF304: gem::plugins::init() (in
/opt/purr-data/lib/pd-l2ork/extra/Gem/Gem.pd_linux)
==3875==    by 0x4B0CDB: ??? (in /opt/purr-data/bin/pd-l2ork)
==3875==    by 0x4B111C: sys_loadlib_iter (in /opt/purr-data/bin/pd-l2ork)
==3875==    by 0x439194: canvas_path_iterate (in
/opt/purr-data/bin/pd-l2ork)
==3875==    by 0x4B1367: sys_load_lib (in /opt/purr-data/bin/pd-l2ork)
==3875==    by 0x4A9452: glob_initfromgui (in /opt/purr-data/bin/pd-l2ork)
==3875==  Address 0x6d284f0 is 64 bytes inside a block of size 67 alloc'd
==3875==    at 0x4C2AB80: malloc (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==3875==    by 0x1C0B127D: ??? (in
/usr/lib/x86_64-linux-gnu/libquicktime.so.2.0.0)
==3875==    by 0x1C0B1ED8: ??? (in
/usr/lib/x86_64-linux-gnu/libquicktime.so.2.0.0)
==3875==    by 0x1C0B4F60: lqt_registry_init (in
/usr/lib/x86_64-linux-gnu/libquicktime.so.2.0.0)
==3875==    by 0x1F519E23: gem::plugins::recordQT4L::recordQT4L() (in
/opt/purr-data/lib/pd-l2ork/extra/Gem/gem_recordQT4L.so)
==3875==    by 0x1F51A53A: ??? (in
/opt/purr-data/lib/pd-l2ork/extra/Gem/gem_recordQT4L.so)
==3875==    by 0xFF27547: gem::plugins::record::getInstance() (in
/opt/purr-data/lib/pd-l2ork/extra/Gem/Gem.pd_linux)
==3875==    by 0xFEFF304: gem::plugins::init() (in
/opt/purr-data/lib/pd-l2ork/extra/Gem/Gem.pd_linux)
==3875==    by 0x4B0CDB: ??? (in /opt/purr-data/bin/pd-l2ork)
==3875==    by 0x4B111C: sys_loadlib_iter (in /opt/purr-data/bin/pd-l2ork)
==3875==    by 0x439194: canvas_path_iterate (in
/opt/purr-data/bin/pd-l2ork)
==3875==    by 0x4B1367: sys_load_lib (in /opt/purr-data/bin/pd-l2ork)
==3875==
==3875== Invalid read of size 4
==3875==    at 0x1C0B1298: ??? (in
/usr/lib/x86_64-linux-gnu/libquicktime.so.2.0.0)
==3875==    by 0x1C0B1ED8: ??? (in
/usr/lib/x86_64-linux-gnu/libquicktime.so.2.0.0)
==3875==    by 0x1C0B4F60: lqt_registry_init (in
/usr/lib/x86_64-linux-gnu/libquicktime.so.2.0.0)
==3875==    by 0x1F519E23: gem::plugins::recordQT4L::recordQT4L() (in
/opt/purr-data/lib/pd-l2ork/extra/Gem/gem_recordQT4L.so)
==3875==    by 0x1F51A53A: ??? (in
/opt/purr-data/lib/pd-l2ork/extra/Gem/gem_recordQT4L.so)
==3875==    by 0xFF27547: gem::plugins::record::getInstance() (in
/opt/purr-data/lib/pd-l2ork/extra/Gem/Gem.pd_linux)
==3875==    by 0xFEFF304: gem::plugins::init() (in
/opt/purr-data/lib/pd-l2ork/extra/Gem/Gem.pd_linux)
==3875==    by 0x4B0CDB: ??? (in /opt/purr-data/bin/pd-l2ork)
==3875==    by 0x4B111C: sys_loadlib_iter (in /opt/purr-data/bin/pd-l2ork)
==3875==    by 0x439194: canvas_path_iterate (in
/opt/purr-data/bin/pd-l2ork)
==3875==    by 0x4B1367: sys_load_lib (in /opt/purr-data/bin/pd-l2ork)
==3875==    by 0x4A9452: glob_initfromgui (in /opt/purr-data/bin/pd-l2ork)
==3875==  Address 0x6d286c4 is 68 bytes inside a block of size 70 alloc'd
==3875==    at 0x4C2AB80: malloc (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==3875==    by 0x1C0B127D: ??? (in
/usr/lib/x86_64-linux-gnu/libquicktime.so.2.0.0)
==3875==    by 0x1C0B1ED8: ??? (in
/usr/lib/x86_64-linux-gnu/libquicktime.so.2.0.0)
==3875==    by 0x1C0B4F60: lqt_registry_init (in
/usr/lib/x86_64-linux-gnu/libquicktime.so.2.0.0)
==3875==    by 0x1F519E23: gem::plugins::recordQT4L::recordQT4L() (in
/opt/purr-data/lib/pd-l2ork/extra/Gem/gem_recordQT4L.so)
==3875==    by 0x1F51A53A: ??? (in
/opt/purr-data/lib/pd-l2ork/extra/Gem/gem_recordQT4L.so)
==3875==    by 0xFF27547: gem::plugins::record::getInstance() (in
/opt/purr-data/lib/pd-l2ork/extra/Gem/Gem.pd_linux)
==3875==    by 0xFEFF304: gem::plugins::init() (in
/opt/purr-data/lib/pd-l2ork/extra/Gem/Gem.pd_linux)
==3875==    by 0x4B0CDB: ??? (in /opt/purr-data/bin/pd-l2ork)
==3875==    by 0x4B111C: sys_loadlib_iter (in /opt/purr-data/bin/pd-l2ork)
==3875==    by 0x439194: canvas_path_iterate (in
/opt/purr-data/bin/pd-l2ork)
==3875==    by 0x4B1367: sys_load_lib (in /opt/purr-data/bin/pd-l2ork)
==3875==
load plugins 'video' in '/opt/purr-data/lib/pd-l2ork/extra/Gem/'
pattern : /opt/purr-data/lib/pd-l2ork/extra/Gem/gem_video*.so
dylib loading file
'/opt/purr-data/lib/pd-l2ork/extra/Gem/gem_videoDC1394.so'!
dylib loading file '/opt/purr-data/lib/pd-l2ork/extra/Gem/gem_videoDV4L.so'!
dylib loading file
'/opt/purr-data/lib/pd-l2ork/extra/Gem/gem_videoUNICAP.so'!
dylib loading file '/opt/purr-data/lib/pd-l2ork/extra/Gem/gem_videoV4L.so'!
dylib loading file
'/opt/purr-data/lib/pd-l2ork/extra/Gem/gem_videoV4L2.so'!

Up to here the patch is on the screen with no issues, When I try to open
the main abstraction present in the patch, which contains the GUI, I get a
stack overflow:

==3875== Stack overflow in thread 1: can't grow stack to 0xffe801fa8
==3875== Can't extend stack to 0xffe801058 during signal delivery for
thread 1:
==3875==   no stack segment
==3875==
==3875== Process terminating with default action of signal 11 (SIGSEGV)
==3875==  Access not within mapped region at address 0xFFE801058
==3875==    at 0x444938: ??? (in /opt/purr-data/bin/pd-l2ork)
==3875==  If you believe this happened as a result of a stack
==3875==  overflow in your program's main thread (unlikely but
==3875==  possible), you can try to increase the size of the
==3875==  main thread stack using the --main-stacksize= flag.
==3875==  The main thread stack size used in this run was 8388608.
==3875==
==3875== HEAP SUMMARY:
==3875==     in use at exit: 178,356,838 bytes in 238,525 blocks
==3875==   total heap usage: 609,140 allocs, 370,615 frees, 2,153,577,540
bytes allocated
==3875==
==3875== LEAK SUMMARY:
==3875==    definitely lost: 46,152 bytes in 306 blocks
==3875==    indirectly lost: 22,744 bytes in 761 blocks
==3875==      possibly lost: 52,177 bytes in 1,523 blocks
==3875==    still reachable: 178,235,765 bytes in 235,935 blocks
==3875==         suppressed: 0 bytes in 0 blocks
==3875== Rerun with --leak-check=full to see details of leaked memory
==3875==
==3875== For counts of detected and suppressed errors, rerun with: -v
==3875== ERROR SUMMARY: 165 errors from 2 contexts (suppressed: 0 from 0)
Ucciso             (<== KILLED :-)
alberto at alberto-XPS-8300 ~ $
[3877:3877:1212/061304.191686:ERROR:extension_function_dispatcher.cc(601)]
Permission denied for nw.App.quit


I can see an issue with a GEM library above, but this patch does not use
GEM.
This patch never caused issues since few releases ago (I'm not sure I
checked it with 2.3.3).
I quickly checked the windows version of purr-data 2.4.4 with same crash
results.
Just in case, the patch is available as part of my patch collection, but of
course I don't force anyone at debugging it :-)
https://sites.google.com/site/albertozin/Home/pd , it's the patch called
*~moduLaRe~*
Any feedback on how to debug further is welcome.

Thanks,

Alberto







2017-12-11 23:19 GMT+01:00 Jonathan Wilkes <jancsika at yahoo.com>:

> Try installing valgrind and then prefixing the pd-l2ork command with it:
>
> valgrind pd-l2ork -nrt yourPatch.pd
> That should provide a backtrace that gives me a little more info about
> where the bug is.
>
> Also, if you can take one of the patches which causes the segfault and
> remove the extraneous
> parts of the patch that would be helpful.  On another segfault issue I was
> able to whittle the patch
> down to about 10 objects total which helped narrow things down.
>
> -Jonathan
>
> ------------------------------
> *From:* Alberto Zin <alberto.zin at gmail.com>
> *To:* l2ork-dev at disis.music.vt.edu
> *Sent:* Monday, December 11, 2017 4:28 PM
> *Subject:* Re: [L2Ork-dev] Purr Data 2.4.4
>
> Hello,
>
> for some reasons I'm not yet able to investigate in detail, this release
> 2.4.4 of purr-data broke something on my system.
> Many of my past patches, when opened present a "segmentation fault" error.
> My simple question is; in order to debug the issue and report something
> useful to the issue tracker on github
> do I need to build a purr-data version myself with the debug flags
> enabled?
> Any simpler ways like high verbosity level when opening a patch or similar?
> Since I have a lot of GoP on my patches I suspect that it is something
> related to this.
>
> I'm on Linux Mint 17.3 - 64 bits (based on Ubuntu 14.04).
> My PPA is dr_graef/pd-l2ork.trusty
>
> Thanks in advance,
>
> Alberto
>
>
>
>
>
> 2017-12-09 16:16 GMT+01:00 Albert Graef <aggraef at gmail.com>:
>
> The github mirror at https://github.com/agraef/ purr-data
> <https://github.com/agraef/purr-data> has also been updated, as well as
> the JGU Arch and Ubuntu packages (https://agraef.github.io/
> purr-data/#jgu-packages <https://agraef.github.io/purr-data/#jgu-packages>).
> As usual, the JGU Ubuntu packages are still building on Launchpad, but they
> should be ready soon.
>
> On Wed, Dec 6, 2017 at 6:07 AM, Jonathan Wilkes <jancsika at yahoo.com>
> wrote:
>
> Hi list,
>
> Purr Data 2.4.4 is now available:
>
> https://github.com/jonwwilkes/ purr-data/releases/tag/2.4.4
> <https://github.com/jonwwilkes/purr-data/releases/tag/2.4.4>
>
> Please report bugs here:
>
> https://git.purrdata.net/jwilk es/purr-data/issues
> <https://git.purrdata.net/jwilkes/purr-data/issues>
>
> Changes:
> * fixed dangling selection rectangle when a new patch window gains focus
> * added Pd Vanilla fudiparse and fudiformat classes
> * fixed crasher and consistency error with nested gops
> * fixed crasher when conforming a struct used as an array template in
> another struct
> * fixed display error with [moonlib/mknob] inside gop
> * fixed erroneous error message with [set]
> * various other GUI fixes for GOP
>
> Best,
> Jonathan
>
>
> ______________________________ _________________
> L2Ork-dev mailing list
> L2Ork-dev at disis.music.vt.edu
> https://disis.music.vt.edu/lis tinfo/l2ork-dev
> <https://disis.music.vt.edu/listinfo/l2ork-dev>
>
>
>
>
> --
> Dr. Albert Gr"af
> Computer Music Research Group, JGU Mainz, Germany
> Email:  aggraef at gmail.com
> WWW:    https://plus.google.com/+ AlbertGraef
> <https://plus.google.com/+AlbertGraef>
>
> ______________________________ _________________
> L2Ork-dev mailing list
> L2Ork-dev at disis.music.vt.edu
> https://disis.music.vt.edu/ listinfo/l2ork-dev
> <https://disis.music.vt.edu/listinfo/l2ork-dev>
>
>
> _______________________________________________
> L2Ork-dev mailing list
> L2Ork-dev at disis.music.vt.edu
> https://disis.music.vt.edu/listinfo/l2ork-dev
>
>
>
> _______________________________________________
> L2Ork-dev mailing list
> L2Ork-dev at disis.music.vt.edu
> https://disis.music.vt.edu/listinfo/l2ork-dev
>



-- 
https://soundcloud.com/albertoz
<https://soundcloud.com/albertoz>https://www.flickr.com/photos/94787902@N08/
http://sites.google.com/site/albertozin/

47 41 4d 45 20 4f 56 45 52
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://disis.music.vt.edu/pipermail/l2ork-dev/attachments/20171212/8bb5b8ff/attachment-0001.html>


More information about the L2Ork-dev mailing list