[C++-sig] Boost.Python exception problems on AIX 5.3 (compiled with gcc 3.4.3, 64 bit)

Ralf W. Grosse-Kunstleve rwgk at yahoo.com
Thu Dec 21 21:32:03 CET 2006


Under Linux I'm importing all extension modules with RTLD_GLOBAL. This is a very old workaround for exception handling problems similar to what you describe, but I'm not sure about the details anymore (e.g. which gcc was the trouble maker).

This is roughly how I import our extensions:

  previous_dlopenflags = sys.getdlopenflags()
  sys.setdlopenflags(0x100|0x2)
  import myext
  sys.setdlopenflags(previous_dlopenflags)

The bit masks are platform specific, RTLD_GLOBAL | RTLD_NOW. If any of this applies to AIX (?) you have to find out somehow what the correct bit masks are.

HTH,
        Ralf



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the Cplusplus-sig mailing list