Bug 175088 - Signal handler restoration broken by signal()
Signal handler restoration broken by signal()
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: gamin (Show other bugs)
4.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Alexander Larsson
:
Depends On:
Blocks: 181409
  Show dependency treegraph
 
Reported: 2005-12-06 10:31 EST by Bastien Nocera
Modified: 2007-11-30 17:07 EST (History)
1 user (show)

See Also:
Fixed In Version: RHBA-2006-0450
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-08-10 17:27:18 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
gamin-dont-break-original-sighandler-rhel4.patch (999 bytes, patch)
2005-12-06 10:31 EST, Bastien Nocera
no flags Details | Diff
test case (500 bytes, text/plain)
2006-06-01 05:55 EDT, Alexander Larsson
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
GNOME Desktop 321601 None None None Never

  None (edit)
Description Bastien Nocera 2005-12-06 10:31:28 EST
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 10:31:30 EST
Created attachment 121912 [details]
gamin-dont-break-original-sighandler-rhel4.patch
Comment 2 Bastien Nocera 2005-12-15 07:44:44 EST
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 03:49:04 EDT
The patch looks ok to me.
Comment 11 Alexander Larsson 2006-06-01 05:55:10 EDT
Created attachment 130328 [details]
test case

Test case that demonstrates the problem.
Comment 14 Red Hat Bugzilla 2006-08-10 17:27:27 EDT
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

Note You need to log in before you can comment on or make changes to this bug.