This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/13391] AIX: crash on throw/catch between shared objects
- From: "ddurham_gcc_bz at davyandbeth dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Dec 2003 16:16:08 -0000
- Subject: [Bug target/13391] AIX: crash on throw/catch between shared objects
- References: <20031212191310.13391.greed@pobox.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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