From nobody@FreeBSD.org  Thu Jul 31 08:19:46 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 06007106567F
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 31 Jul 2008 08:19:46 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id EEE778FC26
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 31 Jul 2008 08:19:45 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m6V8Jjtc093527
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 31 Jul 2008 08:19:45 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m6V8Jjrq093526;
	Thu, 31 Jul 2008 08:19:45 GMT
	(envelope-from nobody)
Message-Id: <200807310819.m6V8Jjrq093526@www.freebsd.org>
Date: Thu, 31 Jul 2008 08:19:45 GMT
From: Heiko Wundram <modelnine@modelnine.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: pthread_condattr_getpshared is broken
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         126128
>Category:       kern
>Synopsis:       [patch] pthread_condattr_getpshared is broken
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-threads
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 31 08:20:01 UTC 2008
>Closed-Date:    Tue Nov 11 02:15:56 UTC 2008
>Last-Modified:  Tue Nov 11 02:15:56 UTC 2008
>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:
Responsible-Changed-From-To: freebsd-bugs->freebsd-threads 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu Jul 31 14:37:08 UTC 2008 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=126128 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/126128: commit references a PR
Date: Fri,  1 Aug 2008 01:22:08 +0000 (UTC)

 davidxu     2008-08-01 01:21:49 UTC
 
   FreeBSD src repository
 
   Modified files:
     lib/libthr/thread    thr_condattr.c 
   Log:
   SVN rev 181099 on 2008-08-01 01:21:49Z by davidxu
   
   In function pthread_condattr_getpshared, store result correctly.
   
   PR:             kern/126128
   
   Revision  Changes    Path
   1.4       +1 -1      src/lib/libthr/thread/thr_condattr.c
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->closed 
State-Changed-By: davidxu 
State-Changed-When: Tue Nov 11 02:13:12 UTC 2008 
State-Changed-Why:  
Fixed. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=126128 
>Unformatted:
