From: Marc Glisse <marc.glisse@inria.fr>
To: vijay nag <vijunag@gmail.com>
Cc: "gcc-help@gcc.gnu.org" <gcc-help@gcc.gnu.org>
Subject: RE: C++ exceptions
Date: Wed, 20 Nov 2013 14:53:00 -0000 [thread overview]
Message-ID: <alpine.DEB.2.10.1311201345000.4576@stedding.saclay.inria.fr> (raw)
In-Reply-To: <CAKhyrx9c8MaE1UdYnAtAfYR5OeuYOxd_VJ4QNUqyZK3cdW9cwg@mail.gmail.com>
On Wed, 20 Nov 2013, vijay nag wrote:
> Hello gcc,
>
> I'm working on a big project consisting of both C && C++ libraries.
> The shared binary created out of these two libraries seems to be
> having trouble with the exceptions. Exception handler i.e catch() is
> not being dispatched by libstdc++ for some reason and the program is
> terminating with SIGABRT as a result of it. Static binary seems to be
> catching exceptions without any issues.
> Some amount of googling on this topic suggested me to use
> "-fexceptions" compiler switch but it didn't have any affect. Since
> static binary works even without "-fexceptions" I think the issue has
> nothing to do with "-fexceptions" compiler switch. Just before
> sigabrt I see these lines being printed by libstdc++. How do I debug
> this issue ?
>
> "terminate called after throwing an instance of 'ORBEM_AS_NotFound'
Are you running on Solaris (or maybe a BSD)? Does LD_PRELOAD=libgcc_s.so.1
(or maybe LD_PRELOAD=/path/to/libgcc_s.so.1) help?
--
Marc Glisse
next prev parent reply other threads:[~2013-11-20 12:49 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-20 12:49 vijay nag
2013-11-20 14:53 ` Marc Glisse [this message]
2013-11-20 17:58 ` vijay nag
2013-11-20 17:59 ` Marc Glisse
2013-11-20 18:14 ` Jonathan Wakely
2013-11-21 10:23 ` vijay nag
2013-11-22 19:47 ` Ian Lance Taylor
2013-11-23 16:40 ` vijay nag
2013-11-23 16:42 ` Jonathan Wakely
2013-11-23 16:54 ` Jonathan Wakely
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=alpine.DEB.2.10.1311201345000.4576@stedding.saclay.inria.fr \
--to=marc.glisse@inria.fr \
--cc=gcc-help@gcc.gnu.org \
--cc=vijunag@gmail.com \
/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: link
Be 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).