Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 58108 invoked from network); 18 May 2009 12:32:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 May 2009 12:32:10 -0000 Received: (qmail 17805 invoked by uid 500); 18 May 2009 12:32:10 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 17770 invoked by uid 500); 18 May 2009 12:32:10 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 17761 invoked by uid 99); 18 May 2009 12:32:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 May 2009 12:32:10 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 May 2009 12:32:07 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id EE254234C004 for ; Mon, 18 May 2009 05:31:45 -0700 (PDT) Message-ID: <1514935633.1242649905861.JavaMail.jira@brutus> Date: Mon, 18 May 2009 05:31:45 -0700 (PDT) From: "Mark Hindess (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-6123) [classlib][awt] locking assertion failure in X11 library In-Reply-To: <556907850.1237606970564.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-6123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mark Hindess updated HARMONY-6123: ---------------------------------- Attachment: xnextevent.locking.diff This patch adds calls to XLockDisplay/XUnlockDisplay around a single call (XNextEvent) that appeared in the backtrace for this bug. Sadly it deadlocks if attempted with one thread waiting with the (new) lock in XNextEvent and another presumably trying to obtain a lock in XSendEvent. Will discuss this further on the dev@ list. > [classlib][awt] locking assertion failure in X11 library > -------------------------------------------------------- > > Key: HARMONY-6123 > URL: https://issues.apache.org/jira/browse/HARMONY-6123 > Project: Harmony > Issue Type: Bug > Components: Classlib > Affects Versions: 5.0M8 > Environment: Ubuntu 8.10, x86_64 > Reporter: Nathan Beyer > Priority: Critical > Attachments: xnextevent.locking.diff > > > The following is an example of some of the errors that show up while running the AWT module's tests. > > [junit] Running java.awt.BorderLayoutTest > [junit] Locking assertion failure. Backtrace: > [junit] #0 /usr/lib/libxcb-xlib.so.0 [0x7fe0f66079fc] > [junit] #1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x24) [0x7fe0f6607ab4] > [junit] #2 /usr/lib/libX11.so.6 [0x7fe0f6e7f7e0] > [junit] #3 /usr/lib/libX11.so.6(XGetWindowProperty+0x175) [0x7fe0f6e5d4b5] > [junit] #4 /usr/lib/libX11.so.6(XGetWMHints+0x5d) [0x7fe0f6e5c52d] > [junit] #5 /home/nathan/harmony/working_classlib/deploy/jdk/jre/bin//libX11Wrapper.so(Java_org_apache_harmony_awt_nativebridge_linux_X11_XGetWMHints+0x5b) [0x7fe0f52e5def] > [junit] #6 [0x7fe0f49605a1] > [junit] Locking assertion failure. Backtrace: > [junit] #0 /usr/lib/libxcb-xlib.so.0 [0x7fe0f66079fc] > [junit] #1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_lock+0x17) [0x7fe0f6607b77] > [junit] #2 /usr/lib/libX11.so.6 [0x7fe0f6e7f8c0] > [junit] #3 /usr/lib/libX11.so.6 [0x7fe0f6e8001b] > [junit] #4 /usr/lib/libX11.so.6 [0x7fe0f6e80375] > [junit] #5 /usr/lib/libX11.so.6(XNextEvent+0x68) [0x7fe0f6e66b38] > [junit] #6 /home/nathan/harmony/working_classlib/deploy/jdk/jre/bin//libX11Wrapper.so(Java_org_apache_harmony_awt_nativebridge_linux_X11_XNextEvent+0x5b) [0x7fe0f52e68e1] > [junit] #7 [0x7fe0f7679d81] > [junit] Tests run: 16, Failures: 0, Errors: 0, Time elapsed: 1.144 sec > [junit] Running java.awt.BufferCapabilitiesTest > [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.009 sec > [junit] Running java.awt.ButtonTest > [junit] Tests run: 8, Failures: 0, Errors: 0, Time elapsed: 0.014 sec > [junit] Running java.awt.CanvasRTest > [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.14 sec > [junit] Running java.awt.CardLayoutRTest > [junit] Tests run: 14, Failures: 0, Errors: 0, Time elapsed: 0.02 sec > [junit] Running java.awt.CardLayoutTest > [junit] Locking assertion failure. Backtrace: > [junit] #0 /usr/lib/libxcb-xlib.so.0 [0x7fe0f66079fc] > [junit] #1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x24) [0x7fe0f6607ab4] > [junit] #2 /usr/lib/libX11.so.6 [0x7fe0f6e7f7e0] > [junit] #3 /usr/lib/libX11.so.6(XGetWindowProperty+0x175) [0x7fe0f6e5d4b5] > [junit] #4 /usr/lib/libX11.so.6(XGetWMHints+0x5d) [0x7fe0f6e5c52d] > [junit] #5 /home/nathan/harmony/working_classlib/deploy/jdk/jre/bin//libX11Wrapper.so(Java_org_apache_harmony_awt_nativebridge_linux_X11_XGetWMHints+0x5b) [0x7fe0f52e5def] > [junit] #6 [0x7fe0f49605a1] > [junit] Locking assertion failure. Backtrace: > [junit] #0 /usr/lib/libxcb-xlib.so.0 [0x7fe0f66079fc] > [junit] #1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_lock+0x17) [0x7fe0f6607b77] > [junit] #2 /usr/lib/libX11.so.6 [0x7fe0f6e7f8c0] > [junit] #3 /usr/lib/libX11.so.6 [0x7fe0f6e8001b] > [junit] #4 /usr/lib/libX11.so.6 [0x7fe0f6e80375] > [junit] #5 /usr/lib/libX11.so.6(XNextEvent+0x68) [0x7fe0f6e66b38] > [junit] #6 /home/nathan/harmony/working_classlib/deploy/jdk/jre/bin//libX11Wrapper.so(Java_org_apache_harmony_awt_nativebridge_linux_X11_XNextEvent+0x5b) [0x7fe0f52e68e1] > [junit] #7 [0x7fe0f7679d81] -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.