[C++-sig] gtkglext & mesa = __cxa_allocate_exception

Jakub Zytka kubol at kormoran.net
Wed Sep 15 09:33:11 CEST 2010

On 09/14/10 21:18, Leonard Ritter wrote:
> On Tue, Sep 14, 2010 at 9:12 PM, Leonard Ritter<paniq at paniq.org>  wrote:
>> it seems that when gtk.glext is imported in python, and a boost python
>> module hits a StopIteration exception (as it is usual for generators),
>> the exception is not caught and the app segfaults.
> that is, unless OpenGL.GL is imported before gtk.glext - in this case,
> no segfaults; it's the translation of a sites suggestion to use "env
> LD_PRELOAD=libGL.so python script.py", which is essentially the same
> thing.
> i wonder what kind of voodoo is at work here :)
Last time I run into this kind of problem it was because python was using 
different memory allocator than the library I was importing (that is: the 
library was linked against our slightly modified tcmalloc)

More information about the Cplusplus-sig mailing list