signal hander patch

Andrew Haley aph@cambridge.redhat.com
Tue Mar 26 05:31:00 GMT 2002


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.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /