You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Mark Hindess (JIRA)" <ji...@apache.org> on 2009/05/18 14:31:45 UTC

[jira] Updated: (HARMONY-6123) [classlib][awt] locking assertion failure in X11 library

     [ 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.