Bug 175088

Summary: Signal handler restoration broken by signal()
Product: Red Hat Enterprise Linux 4 Reporter: Bastien Nocera <bnocera>
Component: gaminAssignee: Alexander Larsson <alexl>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0CC: tao
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2006-0450 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-08-10 21:27:18 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 181409    
Attachments:
Description Flags
gamin-dont-break-original-sighandler-rhel4.patch
none
test case none

Description Bastien Nocera 2005-12-06 15:31:28 UTC
gamin-0.1.1-3.EL4

Upstream bugzilla is:
http://bugzilla.gnome.org/show_bug.cgi?id=321601

RHEL4 version of the patch attached.

For the record:
"
When an application sets up its signal using sigaction, and with the SA_SIGINFO
flag, the signal handler has 3 arguments, instead of just one.

If one uses signal(2) to check the existence of a signal handler for that
signal, restoring that handler with signal will mean that only 1 argument will
be passed, thus breaking the application.
"

Comment 1 Bastien Nocera 2005-12-06 15:31:30 UTC
Created attachment 121912 [details]
gamin-dont-break-original-sighandler-rhel4.patch

Comment 2 Bastien Nocera 2005-12-15 12:44:44 UTC
Without this, JRockit hangs when launching Eclipse (which will use gamin). gamin
will override JRockit's signal handler, and not restore it properly.

Comment 5 Alexander Larsson 2006-04-13 07:49:04 UTC
The patch looks ok to me.

Comment 11 Alexander Larsson 2006-06-01 09:55:10 UTC
Created attachment 130328 [details]
test case

Test case that demonstrates the problem.

Comment 14 Red Hat Bugzilla 2006-08-10 21:27:27 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2006-0450.html