This is the mail archive of the java-patches@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: SIGFPE -> ArithmeticException ?



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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]