[Bug target/13391] AIX: crash on throw/catch between shared objects

ddurham_gcc_bz at davyandbeth dot com gcc-bugzilla@gcc.gnu.org
Mon Dec 29 16:24:00 GMT 2003


------- Additional Comments From ddurham_gcc_bz at davyandbeth dot com  2003-12-29 16:16 -------
(In reply to comment #8)
> ... the second testcase is invalid due to 
> duplicte definitions.  Resolving the duplicate fixes the bug.

Are you refering to my main&foo example as testcase 2?

Resolving the dups in my example does in fact 'fix the bug'.  However, I'm
linking against existing libraries that have duplicate symbols that I have no
control over and I can't use exceptions because of it.  I could say, "well ugh,
I won't use exceptions."  However using dynamic_cast to a reference may throw
and exception which will now abort the process.

Do you have any idea why a duplicate symbol would cause exceptions to miss being
caught?  Is it the compiler or the linker?  I've tried AIX's ld and GNU's ld and
both have identical problems.  That leads me to believe it's either the
compiler, the assembler or maybe some runtime lib.  Any ideas?

Thanks

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13391



More information about the Gcc-bugs mailing list