This is the mail archive of the java@gcc.gnu.org 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]
Other format: [Raw text]

signal hander patch


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.


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