JDK-6354553 : Print / warn about SA_SIGINFO in fatal error handler
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 6
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2005-11-23
  • Updated: 2012-10-13
  • Resolved: 2006-02-15
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6 b72Fixed
Related Reports
Relates :  
Description
6345154 illustrated a problem where a user's library (actually, NVidia's Cg library) was using signal handlers internally but apparently attempting to be clever and resetting the signal handler state so it appeared from the JVM's crash logs that only HotSpot's internal signal handlers were set up. However, it appears that the Cg library may have cleared the SA_SIGINFO flag on one or more of the signal actions before passing along the signal to HotSpot's internal signal handlers, so that no ucontext was available (which was the root cause of the failures in 6345154). When dumping the hs_err log file, it may be worth testing to see whether the sa_flags are equal to the value set by HotSpot (in particular, the presence of the SA_SIGINFO flag) and printing a warning if any do not match.

Comments
EVALUATION Added storage for our signal flags and use these stored flags for diagnostic in print_signal_handler() on Linux and Solaris platforms. Advice user to use `libjsig' when flags were changed. Added support for signals, reset by VMError. VMError knows about signals it resets and provide this information to error reporters, so all knowledge about 'special' signals are grouped in one (OS-dependent, of course) place.
02-02-2006