misc/126128: pthread_condattr_getpshared is broken
Heiko Wundram
modelnine at modelnine.org
Thu Jul 31 08:20:02 UTC 2008
>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 at 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:
More information about the freebsd-bugs
mailing list