Bug 103308 - uninitialized sigset_t used in tst-cancel4.c
Summary: uninitialized sigset_t used in tst-cancel4.c
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: glibc
Version: 3.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-08-28 18:53 UTC by John Reiser
Modified: 2007-11-30 22:06 UTC (History)
0 users

Fixed In Version: 2.3.2-79
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2003-09-08 08:10:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description John Reiser 2003-08-28 18:53:09 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020529

Description of problem:
nptl/tst-cancel4.c forgot "sigemptyset(&mask);" after declaration and before
calling sigaddset(&mask, SIGUSR1);  Because of this, the value after sigaddset()
is undefined, which makes the test results invalid.


Version-Release number of selected component (if applicable):
glibc-2.3.2-70

How reproducible:
Always

Steps to Reproduce:
1.Inspect nptl/tst-cancel4.c for calls to sigaddset immediately after
declaration of the sigset_t.
2.
3.
    

Actual Results:  Lines 779, 822, 866 contain calls to sigaddset immediately
after declaration, without any call to sigemptyset.

Expected Results:  No such calls.

Additional info:

Comment 1 Jakub Jelinek 2003-08-29 17:22:23 UTC
Fix committed to CVS.

Comment 2 Jakub Jelinek 2003-09-08 08:10:49 UTC
And should be in glibc-2.3.2-79 and later as well.


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