Bug 162722 - static mutex initializers are not correct
static mutex initializers are not correct
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: glibc (Show other bugs)
4
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Brian Brock
:
Depends On:
Blocks: 164814
  Show dependency treegraph
 
Reported: 2005-07-07 20:51 EDT by Kelly Long
Modified: 2007-11-30 17:11 EST (History)
2 users (show)

See Also:
Fixed In Version: 2.3.90-3
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-07-22 08:42:55 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)
code and error related to fedora core 4 glibc static initalization of mutexes (790 bytes, text/plain)
2005-07-07 20:51 EDT, Kelly Long
no flags Details

  None (edit)
Comment 1 Kelly Long 2005-07-07 20:51:25 EDT
Created attachment 116498 [details]
code and error related to fedora core 4 glibc static initalization of mutexes
Comment 2 Jakub Jelinek 2005-07-11 13:02:56 EDT
They are correct, some extra warnings just warn even about correct code.
Anyway, http://sources.redhat.com/ml/libc-hacker/2005-07/msg00006.html
should shut these warnings up.
Comment 5 Jakub Jelinek 2005-07-22 08:42:55 EDT
Should be fixed in glibc-2.3.90-3.
Comment 7 Nigel Horne 2005-08-24 06:29:06 EDT
When will glibc-2.3.90-3 come out?

The latest, 2.3.5-10.3 as of 24/8/05, exhibits the same problem.
Comment 8 Jakub Jelinek 2005-08-24 09:35:07 EDT
glibc-2.3.90-3 came out more than a month ago, but glibc-2.3.90-* is a rawhide
version (i.e. FC5 development ATM; that's why it has been closed with RAWHIDE).
But glibc-2.3.5-10.3 also includes that fix and certainly doesn't exhibit
the problem for me.
When I fix the testcase a little (s/fprint(/fprintf (stderr, /, plus add return
0; at the end of main), I get:
rpm -qf /usr/include/pthread.h; gcc -W -Wall -O2 fc4-gcc4-mutex.c
x86_64/glibc-headers-2.3.5-10.3.x86_64.rpm
fc4-gcc4-mutex.c: In function 'main':
fc4-gcc4-mutex.c:8: warning: unused parameter 'argc'
fc4-gcc4-mutex.c:8: warning: unused parameter 'argv'
fc4-gcc4-mutex.c: At top level:
fc4-gcc4-mutex.c:4: warning: 'some_static_mutex' defined but not used
fc4-gcc4-mutex.c:6: warning: 'some_static_condition' defined but not used

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