NetBSD Problem Report #48407

From www@NetBSD.org  Tue Nov 26 11:15:58 2013
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 3DB31A619F
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 26 Nov 2013 11:15:58 +0000 (UTC)
Message-Id: <20131126111556.B7AAEA61F6@mollari.NetBSD.org>
Date: Tue, 26 Nov 2013 11:15:56 +0000 (UTC)
From: degroote@netbsd.org
Reply-To: degroote@netbsd.org
To: gnats-bugs@NetBSD.org
Subject: NetBSD miss pthread_mutex_timedlock
X-Send-Pr-Version: www-1.0

>Number:         48407
>Category:       lib
>Synopsis:       NetBSD miss pthread_mutex_timedlock
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 26 11:20:00 +0000 2013
>Originator:     Arnaud Degroote
>Release:        current
>Organization:
>Environment:
NetBSD xena 6.99.27 NetBSD 6.99.27 (GENERIC) #0: Sat Nov 16 11:01:15 UTC 2013  zul@xena:/home/zul/netbsd-dev/build_temp/amd64/objdir/sys/arch/amd64/compile/GENERIC amd64

>Description:
Code / man inspection :)
>How-To-Repeat:

>Fix:
Try to fix the problem myself, but my pthread internal understanding is not good enough.

First try is on 

http://homepages.laas.fr/adegroot/0001-Add-support-for-pthread_mutex_timedlock.patch

but christos tells me it is incorrect (if I understand properly, one can only remove a waiter only if it is in the head of the ptm_waiters, please correct me if wrong).

Additional patches (man pages update + tests update)
http://homepages.laas.fr/adegroot/0002-Add-man-page-for-pthread_mutex_timedlock.patch
http://homepages.laas.fr/adegroot/0003-Add-some-tests-for-pthread_mutex_timedlock.patch

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.