FS#10162 - jre broken
Attached to Project:
Arch Linux
Opened by marco (domanov) - Saturday, 12 April 2008, 02:59 GMT
Last edited by Eduardo Romero (kensai) - Wednesday, 09 July 2008, 22:24 GMT
Opened by marco (domanov) - Saturday, 12 April 2008, 02:59 GMT
Last edited by Eduardo Romero (kensai) - Wednesday, 09 July 2008, 22:24 GMT
|
Details
Description:
The Java Runtime Enviroment needs an obscure though crucial fix in order to run jar apps (I only tested with jabref and a couple of other custom applications). As described in http://bbs.archlinux.org/viewtopic.php?pid=354430 , the automagical hack needed is: sed -i 's/XINERAMA/FAKEEXTN/g' /opt/java/jre/lib/i386/xawt/libmawt.so I didn't check other architecture than i686. The same bug (with same fix) appeared also at least in jre 6u3-2. Additional info: * package version(s) jre 6u3-2 and jre 6u5-1 * config and/or log files etc. Steps to reproduce: pacman -Sy jre and then launch a jar app (I only tested with jabref) $ /opt/java/jre/bin/java -jar PATH/TO/JabRef-2.3.1.jar $ Locking assertion failure. Backtrace: #0 /usr/lib/libxcb-xlib.so.0 [0xb7d3e767] #1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x31) [0xb7d3e8b1] #2 /usr/lib/libX11.so.6(_XReply+0xfd) [0xb533ca8d] #3 /opt/java/jre/lib/i386/xawt/libmawt.so [0xb544e8ce] #4 /opt/java/jre/lib/i386/xawt/libmawt.so [0xb542b067] #5 /opt/java/jre/lib/i386/xawt/libmawt.so [0xb542b318] #6 /opt/java/jre/lib/i386/xawt/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x2f) [0xb542b61f] #7 [0xb5d05bfd] #8 [0xb5cfee6d] #9 [0xb5cfee6d] #10 [0xb5cfc22c] #11 /opt/java/jre/lib/i386/client/libjvm.so [0x621c40d] #12 /opt/java/jre/lib/i386/client/libjvm.so [0x6310378] #13 /opt/java/jre/lib/i386/client/libjvm.so [0x621c2a0] #14 /opt/java/jre/lib/i386/client/libjvm.so(JVM_DoPrivileged+0x363) [0x6272153] #15 /opt/java/jre/lib/i386/libjava.so(Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2+0x3d) [0xb7d1796d] #16 [0xb5d05bfd] #17 [0xb5cfed23] #18 [0xb5cfc22c] #19 /opt/java/jre/lib/i386/client/libjvm.so [0x621c40d] java: xcb_xlib.c:82: xcb_xlib_unlock: Assertion `c->xlib.lock' failed. |
This task depends upon
Closed by Eduardo Romero (kensai)
Wednesday, 09 July 2008, 22:24 GMT
Reason for closing: Fixed
Additional comments about closing: This time is truly fixed, don't you dare reopne this again. :-D
Wednesday, 09 July 2008, 22:24 GMT
Reason for closing: Fixed
Additional comments about closing: This time is truly fixed, don't you dare reopne this again. :-D
# temporarily loosen restrictions in libxcb to get java
# application involving X to work.
export LIBXCB_ALLOW_SLOPPY_LOCK=true
This should fix your java and any application that is broken. We won't fix this in java, as your hack is obviously not a clean hack (patching a binary never is a clean hack), this should be fixed upstream at sun.
In effect exporting this environment variable had an effect, in the sense that jabref started, but it was not usable: windows parts were missing, popups had no text, and still some traceback in standard error. After the "sed" fix -which is not mine, of course-, everything run smoothly even with no exported 'LIBXCB_ALLOW_SLOPPY_LOCK=true'.