JDK-4381843 : Should use "signal-chaining" when replacing user signal handlers in JVM
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 1.2.2,1.3.0,1.3.0_04,1.4.0
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS:
    generic,solaris_1,solaris_2.6,solaris_7 generic,solaris_1,solaris_2.6,solaris_7
  • CPU: generic,sparc
  • Submitted: 2000-10-23
  • Updated: 2020-12-02
  • Resolved: 2001-06-05
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.
Other
1.4.0 beta2Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
See comments section.

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: merlin FIXED IN: merlin-beta2 INTEGRATED IN: merlin-beta2
14-06-2004

EVALUATION y.s.ramakrishna@eng 2000-10-23: Sounds like a good idea. How does it work for Windows? (similar sigaction-like interface?)> y.s.ramakrishna@eng 2001-01-29: Mingyao Yang has a prototype that addresses this issue. It's currently being reviewed for integration at a future date. Making Mingyao the RE, since he's doing all the work. Signal-chaining will do two things: (1) saves preinstalled user signal handlers when installing our own signal handlers for some signals used by the vm (mostly some synchronous signals). (2) disallows the installation of user signal handlers for vm-used signals, instead, saves those user signals handlers. This is done by linking a .so file with user's main program, or preloading the .so file with LD_PRELOAD. The .so file interposes those os calls that install signal handlers: for Solaris/Linux, sigaction, signal, sigset For both (1) and (2), during signal handling by the vm, if the signal is not for the vm to handle, the saved user signal handler will be invoked. mingyao.yang@Eng 2001-06-12
12-06-2001