From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17014 invoked by alias); 12 Sep 2011 21:19:05 -0000 Received: (qmail 17004 invoked by uid 22791); 12 Sep 2011 21:19:03 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_RW X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 12 Sep 2011 21:18:48 +0000 From: "redhat at pureftpd dot org" To: glibc-bugs@sources.redhat.com Subject: [Bug nptl/13184] New: rwlocks can go into dead lock Date: Mon, 12 Sep 2011 21:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: nptl X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: redhat at pureftpd dot org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: drepper.fsp at gmail dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2011-09/txt/msg00066.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=13184 Bug #: 13184 Summary: rwlocks can go into dead lock Product: glibc Version: 2.14 Status: NEW Severity: critical Priority: P2 Component: nptl AssignedTo: drepper.fsp@gmail.com ReportedBy: redhat@pureftpd.org Classification: Unclassified This issue can be reliably reproduced on glibc 2.7, glibc 2.11, glibc 1.14 and glibc-current (stock, without any vendor patches). A race condition can cause a pthreads rwlock to get a negative number of __nr_readers, thus leading to a dead lock. This issue seems to be hardware dependent. I haven't been able to reproduce it on single-core Opterons nor Intel hardware. But it happens in minutes on different boxes, all powered by dual-core Opteron 270. A test program triggering this issue can be found at: http://download.pureftpd.org/misc/nptl-bugs/crazylock.c -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.