public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "ajd at gentrack dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/13391] AIX: collect2 emits bad code with duplicated symbols Date: Wed, 03 Mar 2004 01:11:00 -0000 [thread overview] Message-ID: <20040303011144.5329.qmail@sources.redhat.com> (raw) In-Reply-To: <20031212191310.13391.greed@pobox.com> ------- Additional Comments From ajd at gentrack dot com 2004-03-03 01:11 ------- I think there are two separate issues here. The issue reported by Davy Durham does not relate to shared libraries and may be an enhancement request for duplicate symbol handling. But the original report is a problem throwing exceptions across a shared library boundary. I am having the same problem as the original reporter. A simple testcase: a1.cpp: extern void mycall(); int main() { try { mycall(); } catch (int i) { return i; } return 1; } a2.cpp: void mycall() { throw 0; } $ g++ -fPIC -DPIC -shared -o liba2.a a2.cpp $ g++ -fPIC -DPIC -o a1 a1.cpp -L. -la2 Sometimes it aborts, sometimes it succeeds. I debugged through and in unwind-dw2-fde.c, the seen_objects element that represents liba2 contains FDE's for both liba2 and libstdc++.a. As a consequence of this, when liba2.a is located in memory at a higher address than libstdc++.a, then the seen_objects list is not sorted correctly and the function _Unwind_Find_FDE will never search liba2 for fde's. By disassembling liba2, I can see that it's local table does indeed import all the FDE's from libstdc++. Could this be an installation problem? Could this be a problem with collect2 picking up frames from imported libraries? Configured with: --disable-symvers --without-gnu-as --without-gnu-ld --enable- languages=c,c++ -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13391
next prev parent reply other threads:[~2004-03-03 1:11 UTC|newest] Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-12-12 19:13 [Bug target/13391] New: AIX: crash on throw/catch between shared objects greed at pobox dot com 2003-12-12 19:18 ` [Bug target/13391] " greed at pobox dot com 2003-12-12 19:19 ` greed at pobox dot com 2003-12-12 19:19 ` greed at pobox dot com 2003-12-12 19:20 ` greed at pobox dot com 2003-12-12 19:20 ` greed at pobox dot com 2003-12-12 19:20 ` greed at pobox dot com 2003-12-24 2:46 ` ddurham_gcc_bz at davyandbeth dot com 2003-12-26 3:20 ` dje at gcc dot gnu dot org 2003-12-29 16:24 ` ddurham_gcc_bz at davyandbeth dot com 2003-12-29 20:51 ` greed at pobox dot com 2004-01-18 17:58 ` dhazeghi at yahoo dot com 2004-01-19 4:32 ` dje at watson dot ibm dot com 2004-01-19 17:36 ` [Bug target/13391] AIX: collect2 emits bad code with duplicated symbols dhazeghi at yahoo dot com 2004-01-20 21:13 ` greed at pobox dot com 2004-03-03 1:11 ` ajd at gentrack dot com [this message] 2004-03-03 22:48 ` dje at watson dot ibm dot com 2004-03-04 0:00 ` ajd at gentrack dot com 2004-03-04 1:56 ` ajd at gentrack dot com 2004-03-04 2:40 ` greed at pobox dot com 2004-03-04 2:47 ` dje at watson dot ibm dot com 2004-03-04 3:01 ` greed at pobox dot com 2004-03-04 4:01 ` ajd at gentrack dot com 2004-03-04 4:06 ` dje at watson dot ibm dot com 2004-03-04 4:16 ` ajd at gentrack dot com 2004-03-04 5:35 ` dje at watson dot ibm dot com 2004-03-04 5:56 ` ajd at gentrack dot com 2004-03-04 6:11 ` dje at watson dot ibm dot com 2004-03-04 6:15 ` ajd at gentrack dot com 2004-03-04 15:34 ` dje at watson dot ibm dot com 2004-03-04 17:17 ` greed at pobox dot com 2004-03-04 17:24 ` dje at watson dot ibm dot com 2004-03-04 17:28 ` dje at watson dot ibm dot com 2004-03-04 17:36 ` greed at pobox dot com 2004-03-04 18:46 ` dje at watson dot ibm dot com 2004-03-04 21:02 ` ajd at gentrack dot com 2004-03-05 15:44 ` greed at pobox dot com 2004-03-05 18:55 ` greed at pobox dot com 2004-03-05 19:51 ` dje at watson dot ibm dot com 2004-03-05 21:08 ` greed at pobox dot com 2004-03-06 20:56 ` dje at gcc dot gnu dot org 2004-03-06 23:31 ` pinskia at gcc dot gnu dot org 2004-03-07 22:35 ` dje at gcc dot gnu dot org 2004-11-24 18:42 ` pinskia at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20040303011144.5329.qmail@sources.redhat.com \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).