[C++-sig] Multiple typeinfos causing failure of exception catches

Ralf W. Grosse-Kunstleve rwgk at yahoo.com
Fri Jul 9 06:24:31 CEST 2004


--- Niall Douglas <s_sourceforge at nedprod.com> wrote:
> BTW, your problem with python having to load extension modules with 
> RTDL_LOCAL rather than RTDL_GLOBAL goes away if you use my -
> fvisibility=hidden patch as no symbol clashes can happen.

Hi Niall,

I don't use embedding, so I am not sure this is relevant, but ever since I
started importing all extension modules with RTLD_GLOBAL under Linux I've not
observed exception handling problems anymore. I.e. I am doing the exact
opposite of what I understand you are suggesting above. Here is my trick,
the "import_ext" function:

   
http://cvs.sourceforge.net/viewcvs.py/cctbx/boost_adaptbx/boost/python.py?view=markup

Does it make sense to you that this approach seems to fix the EH problems? (Or
am I just lucky? Hope not.)

Ralf



		
__________________________________
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail



More information about the Cplusplus-sig mailing list