This is the mail archive of the
java-patches@sourceware.cygnus.com
mailing list for the Java project.
Re: SIGFPE -> ArithmeticException ?
- To: bryce@albatross.co.nz
- Subject: Re: SIGFPE -> ArithmeticException ?
- From: Anthony Green <green@cygnus.com>
- Date: Thu, 1 Jul 1999 10:43:31 -0700 (PDT)
- CC: aph@pasanda.cygnus.co.uk, java-patches@sourceware.cygnus.com
Bryce wrote:
> OK, so using the "new" signal interface, gregs comes out as a null
> pointer. Under the old interface, the register values come out
> looking fine (at least to my untrained eye), but we still get
> _Jv_Throw() aborting. Any idea why the old interface isn't working
> then? (using either the original code and using a casted "static
> void my_handler (int sig, struct sigcontext_struct ctx);" signal
> handler, as suggested by Anthony, gives the same results)
Is the abort deep inside GCC's exception handling machinery? Try this
(assuming your program is a.out):
gcc -shared -o libeh.so -lgcc
LD_PRELOAD=./libeh.so a.out
AG
--
Anthony Green Cygnus Solutions
Sunnyvale, California