[GEM-dev] ATI linux drivers vs C++ exceptions [SOLVED]

Claude Heiland-Allen claudiusmaximus at goto10.org
Sat Oct 4 19:20:45 CEST 2008


Hi,

I'd been having horrible issues with Pd crashing with a segfault in 
__cxa_allocate_exception() when using both Gem and GridFlow, preventing 
me using the Gem<=>GridFlow bridge:

   pd -lib gridflow -lib Gem     => no crash
   pd -lib Gem -lib gridflow     => segfault

Turns out that it's a bug in the ATI OpenGL implementation, and the 
suggested workaround (to link libstdc++ before opengl libraries) works 
better than I had hoped:

   http://wiki.fifengine.de/Segfault_in_cxa_allocate_exception#Workaround

Using the attached source, I can do:

   pd -lib libstdcpp -lib Gem -lib gridflow     => no crash

Hope this helps others in a similar predicament.


Claude
-- 
http://claudiusmaximus.goto10.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libstdcpp.c
Type: text/x-csrc
Size: 38 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/gem-dev/attachments/20081004/d2f94081/attachment.c>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Makefile
URL: <http://lists.puredata.info/pipermail/gem-dev/attachments/20081004/d2f94081/attachment.txt>


More information about the GEM-dev mailing list