This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]