Bug 103308

Summary: uninitialized sigset_t used in tst-cancel4.c
Product: Red Hat Enterprise Linux 3 Reporter: John Reiser <jreiser>
Component: glibcAssignee: Jakub Jelinek <jakub>
Status: CLOSED RAWHIDE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: 2.3.2-79 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-09-08 08:10:49 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:

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.