Date: Sat, 17 Jan 2009 23:07:29 -0800 (PST) From: Nate Eldredge <neldredge@math.ucsd.edu> To: xorquewasp@googlemail.com Cc: freebsd-hackers@freebsd.org Subject: Re: gcc 4.3.2 libgcc_s.so exception handling broken? Message-ID: <Pine.GSO.4.64.0901172248030.18030@zeno.ucsd.edu> In-Reply-To: <20090117231404.GB77134@logik.internal.network> References: <20090117231404.GB77134@logik.internal.network>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 17 Jan 2009, xorquewasp@googlemail.com wrote: > Hello. > > I have some C code that's compiled with -fexceptions using > the lang/gnat-gcc43 port. I'm on 6.4-RELEASE-p2. > > A function c_function in the C code takes a callback as an argument. > > I'm passing this function the address of a function ext_function defined > in another language (Ada, to be precise, but it seems to happen > with C++ too). The main body of my program is written in this language > so C is effectively the "foreign" code (whatever). > > If ext_function raises an exception, the exception is NOT propagated > through the C code, the process simply exits. I tried a simple example of this in C++ and it works as expected. (I am on 7.0-RELEASE/amd64.) So it isn't completely busted, at least. Can you post an example that exhibits the problem? Ideally, something complete that can be compiled and is as simple as possible. If you can do it with C++ rather than Ada it might be easier, so people don't have to install the Ada compiler. Also please mention the commands you use to compile, and what they output when you compile using -v, and what architecture you are on. -- Nate Eldredge neldredge@math.ucsd.edu
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.64.0901172248030.18030>