Bug 108758

Summary: uninitialized sigev_value in tst-timer.c
Product: [Retired] Red Hat Linux Reporter: John Reiser <jreiser>
Component: glibcAssignee: Jakub Jelinek <jakub>
Status: CLOSED UPSTREAM QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 9CC: fweimer
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-11-04 15:52:12 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:
Attachments:
Description Flags
patch for nptl/sysdeps/pthread/tst-timer.c none

Description John Reiser 2003-11-01 04:22:59 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1)
Gecko/20031027

Description of problem:
In nptl/sysdeps/pthread/tst-timer.c there is no value set for
sigev2.sigev_value, yet that member is used by
nptl/sysdeps/pthread/timer_routines.c line 353:
       timer->event.sigev_notify_function (timer->event.sigev_value);
when executing testcase rt/tst-timer .

Version-Release number of selected component (if applicable):
glibc-2.3.2-27.9.3.i686.rpm

How reproducible:
Always

Steps to Reproduce:
1. Run testcase build-i686-linuxnptl/rt/tst-timer .
2.
3.
    

Actual Results:  sigev2.sigev_value is used but was never initialized.

Expected Results:  All members are initialized before they are used.

Additional info:

The same problem occurs in linuxthreads/sysdeps/pthread/tst-timer.c

Comment 1 John Reiser 2003-11-01 04:25:10 UTC
Created attachment 95642 [details]
patch for nptl/sysdeps/pthread/tst-timer.c

Comment 2 Jakub Jelinek 2003-11-04 15:52:12 UTC
This is fixed in CVS.  Thanks.