[Bug ada/41912] FAIL: gnat.dg/null_pointer_deref1.adb execution test
ebotcazou at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Dec 4 09:52:00 GMT 2009
------- Comment #10 from ebotcazou at gcc dot gnu dot org 2009-12-04 09:52 -------
> The catch for the first null pointer exception in libjava.lang/Array_3
> is not caught but I don't know why.
Very likely because of the adjustment made in libjava/pa-signal.h:
#define MAKE_THROW_FRAME(_exception) \
do \
{ \
struct ucontext *uc = (struct ucontext *)arg; \
struct sigcontext *sc = &uc->uc_mcontext; \
(void)_dummy; \
(void)_info; \
/* Advance the program counter so that it is after the start \
of the instruction: the exception handler expects \
the PC to point to the instruction after a call. */ \
sc->sc_iaoq[0] = sc->sc_iaoq[1]; \
sc->sc_iaoq[1] += 4; \
} \
while (0)
That's not true if you set fs->signal_frame to 1 in the fallback routine.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41912
More information about the Gcc-bugs
mailing list