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   
Fixed In Version: 2.3.2-79 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-09-08 04:10:49 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description John Reiser 2003-08-28 14:53:09 EDT
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):

How reproducible:

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

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 13:22:23 EDT
Fix committed to CVS.
Comment 2 Jakub Jelinek 2003-09-08 04:10:49 EDT
And should be in glibc-2.3.2-79 and later as well.