Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Jul 2008 08:19:45 GMT
From:      Heiko Wundram <modelnine@modelnine.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/126128: pthread_condattr_getpshared is broken
Message-ID:  <200807310819.m6V8Jjrq093526@www.freebsd.org>
Resent-Message-ID: <200807310820.m6V8K1V6007728@freefall.freebsd.org>

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

>Number:         126128
>Category:       misc
>Synopsis:       pthread_condattr_getpshared is broken
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 31 08:20:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Heiko Wundram
>Release:        7-STABLE
>Organization:
>Environment:
FreeBSD phoenix.modelnine.org 7.0-STABLE FreeBSD 7.0-STABLE #0: Mon Jul 21 16:49:57 CEST 2008     root@phoenix.modelnine.org:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
lib/libthr/thread/thr_condattr.c contains invalid code to assign the current process-shared state in a condition attribute set to the int* that's used to return the value.

The respective line contains

pshared = PTHREAD_PROCESS_PRIVATE;

but sould contain

*pshared = PTHREAD_PROCESS_PRIVATE;

to return the value to the caller appropriately.
>How-To-Repeat:

>Fix:
See above.

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



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