United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4381843 : Should use "signal-chaining" when replacing user signal handlers in JVM

Details
Type:
Enhancement
Submit Date:
2000-10-23
Status:
Closed
Updated Date:
2012-10-13
Project Name:
JDK
Resolved Date:
2001-06-05
Component:
hotspot
OS:
solaris_2.6,solaris_7,generic,solaris_1
Sub-Component:
runtime
CPU:
sparc,generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
1.2.2,1.3.0,1.3.0_04,1.4.0
Fixed Versions:
1.4.0 (beta2)

Related Reports
Duplicate:
Relates:
Relates:
Relates:
Relates:
Relates:

Sub Tasks

Description
See comments section.

                                    

Comments
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
merlin

FIXED IN:
merlin-beta2

INTEGRATED IN:
merlin-beta2


                                     
2004-06-14
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
                                     
2001-06-12



Hardware and Software, Engineered to Work Together