Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4381843
Votes 2
Synopsis Should use "signal-chaining" when replacing user signal handlers in JVM
Category hotspot:runtime_system
Reported Against 1.3 , 1.2.2 , merlin , 1.3.0_04
Release Fixed 1.4(merlin-beta2)
State 10-Fix Delivered, request for enhancement
Priority: 2-High
Related Bugs 4345157 , 4363638 , 4366535 , 4390200 , 4459016 , 4461787
Submit Date 23-OCT-2000
Description
See comments section.
Work Around
N/A
Evaluation
 xxxxx@xxxxx  2000-10-23: Sounds like a good idea.
How does it work for Windows? (similar sigaction-like interface?)>

 xxxxx@xxxxx  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.

 xxxxx@xxxxx  2001-06-12
Comments
  
  Include a link with my name & email   

Submitted On 31-JAN-2001
robn
I'd welcome the opportunity to give input on this
subject. Please see my defect 4366535 for an intro.

Regards
Rob

rob.nugent@cp.net


Submitted On 09-SEP-2002
paul338gs
Hello,
My name is Paul Yoo.
I experienced signal problem about SIGUSR2.
Does the VM use the SIGUSR2 signal?
I wanna know what kinds of some signal used by the VM?
Please let me know by gsyoo@samsung.com


Submitted On 04-OCT-2002
tvolle
Has anyone used libjsig.so on Solaris? It seems to be acting 
quite bizarre. when I call signal(SIGPIPE, some_handler), it 
returns 13, not the address of the previous handler. In fact, I 
always get the signal number returned.


Submitted On 13-MAY-2003
acfoster
Is there a list of signals that our code can intercept and 
handle? Is there an interface for signal handling?


Submitted On 13-MAY-2003
acfoster
Is there a list of signals that our code can intercept and 
handle? Is there an interface for signal handling?


Submitted On 19-DEC-2005
vishalbedre
rob.nugent@cp.net


Submitted On 23-OCT-2007
For Signal Handling on Solaris OS and Linux, see below page
http://java.sun.com/javase/6/webnotes/trouble/TSG-VM/html/gbzbl.html



PLEASE NOTE: JDK6 is formerly known as Project Mustang