This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
signal hander patch
- From: Andrew Haley <aph at cambridge dot redhat dot com>
- To: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- Cc: java at gcc dot gnu dot org, Hans Boehm <Hans_Boehm at hp dot com>
- Date: Tue, 26 Mar 2002 13:31:22 +0000 (GMT)
- Subject: signal hander patch
- References: <3CA0607D.8010202@waitaki.otago.ac.nz>
Bryce McKinlay writes:
> This patch broke NullPointerExceptions on PowerPC:
Sorry, I didn't check that patch enough. The __libc_sigaction should
ONLY be used on IA-64. I'm going to fix that immediately.
> +// FIXME: We shouldn't be using libc_sigaction here, since it should
> +// be glibc private. But using syscall here would mean translating to
> +// the kernel's struct sigaction and argument sequence, which we
> +// shouldn't either. The right solution is to call sigaction and to
> +// make sure that we can unwind correctly through the pthread signal
> +// wrapper.
>
> Surely, private glibc details are FAR more likely to be a moving target
> than the kernel sigaction syscall stuff. The kernel cannot change this
> interface without breaking glibc, so it is never going to change without
> a very good reason. On the other hand glibc could change their internal
Yes, that's right.
> Further more, is my guess correct that MD_FALLBACK_FRAME_STATE_FOR on
> PowerPC is designed to *only* recognise the kernel signal handling frame
> and thus is not capable of unwinding an extra glibc frame which was not
> compiled with EH info attached?
Yes.
Andrew.