Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Dec 2009 20:34:41 GMT
From:      Jeremy Huddleston <jeremyhu@apple.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   threads/141198: src/lib/libc/stdio does not properly initialize mutexes
Message-ID:  <200912052034.nB5KYfaY000395@www.freebsd.org>
Resent-Message-ID: <200912052040.nB5Ke127097257@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         141198
>Category:       threads
>Synopsis:       src/lib/libc/stdio does not properly initialize mutexes
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-threads
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec 05 20:40:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Jeremy Huddleston
>Release:        8.0
>Organization:
Apple
>Environment:
NA
>Description:
libc/stdio assumes PTHREAD_MUTEX_INITIALIZER is NULL (which it is in FreeBSD), but this makes the code not as portable.

Earlier versions of stdio did properly initialize the lock to PTHREAD_MUTEX_INITIALIZER in INITEXTRA() when it was part of the _extra extension substructure.


>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912052034.nB5KYfaY000395>