From owner-freebsd-bugs@FreeBSD.ORG Thu Jul 31 08:20:02 2008 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2610E1065685 for ; Thu, 31 Jul 2008 08:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 08F2A8FC29 for ; Thu, 31 Jul 2008 08:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m6V8K190007729 for ; Thu, 31 Jul 2008 08:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m6V8K1V6007728; Thu, 31 Jul 2008 08:20:01 GMT (envelope-from gnats) Resent-Date: Thu, 31 Jul 2008 08:20:01 GMT Resent-Message-Id: <200807310820.m6V8K1V6007728@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Heiko Wundram Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 06007106567F for ; 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 ; 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 ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/126128: pthread_condattr_getpshared is broken X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jul 2008 08:20:02 -0000 >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: