From owner-freebsd-threads@FreeBSD.ORG Sun Jul 5 15:10:37 2009 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7A492106566C; Sun, 5 Jul 2009 15:10:37 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from mail-fx0-f218.google.com (mail-fx0-f218.google.com [209.85.220.218]) by mx1.freebsd.org (Postfix) with ESMTP id AB7648FC14; Sun, 5 Jul 2009 15:10:36 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: by fxm18 with SMTP id 18so2837092fxm.43 for ; Sun, 05 Jul 2009 08:10:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=GDu59B43IZMSW/+LJOBfn41hyFMJIV2vbKMM12X9Sos=; b=q0zjNh9d7Ov4i08qZgAsetmov7nOAfw6cToBWxSuAMOdddxmohG/rGiLAtVMVwJFtg 19yGUDd034M86hDsv2/+fELfShOY13+adKCco3FIha5vX5YrAHkeNzxJNz1xBnLaq07l E5bFh6GjgWSj44rf5BXxL4b0vyhvLvUQ0NJD0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=PxxyIrt9phGLFMiKW5vDXsjEYy85hDNCqWKfMADcE0Be+pA9wtmfVcqW3UPkwGdnkD 9PptndxaJCoeOtAQz/IPVqFFcBpjVIYL8aUNKGmkj4nXdECZ27B7i8TApoknMGaKOFGP TWNATuzYzMGvvQV3/Oe73iAb6Z6i7ft5MhfcY= MIME-Version: 1.0 Sender: asmrookie@gmail.com Received: by 10.223.105.75 with SMTP id s11mr1610417fao.4.1246805307840; Sun, 05 Jul 2009 07:48:27 -0700 (PDT) In-Reply-To: <20090705140332.GA8739@rink.nu> References: <20090705134016.CB1286D41E@mx1.rink.nu> <200907051400.n65E0AWQ074917@freefall.freebsd.org> <20090705140332.GA8739@rink.nu> Date: Sun, 5 Jul 2009 16:48:27 +0200 X-Google-Sender-Auth: 54654600fb58c777 Message-ID: <3bbf2fe10907050748x64bb2c7dmc0787fe6bda5d701@mail.gmail.com> From: Attilio Rao To: Rink Springer Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: FreeBSD-gnats-submit@freebsd.org, freebsd-threads@freebsd.org Subject: Re: threads/136345: Recursive read rwlocks in thread A cause deadlock with write lock in thread B X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Jul 2009 15:10:37 -0000 2009/7/5 Rink Springer : > Did some more testing; it works fine on Solaris 9 and 10. Also, the > deadlock doesn't appear on FreeBSD 6.1-STABLE (Sep 2006). Perhaps this > is a libthr issue? I think that rdlock_count in libthr is not updated properly. Can you test the following patch: http://www.freebsd.org/~attilio/libthr.diff Thanks, Attilio -- Peace can only be achieved by understanding - A. Einstein