Re: [SLUG] Java and Fedora Core 8

2007-12-04 Thread David P
This problem also shipped with openSUSE 10.3; however it is easily
fixed by doing a YaST Online Update (the patch to xorg-x11-libxcb
causes a warning to be displayed instead of terminating).

However, some applications still produce other errors related to xcb,
which the xorg-x11-libxcb update (and those fedora packages AFAIK) do
not resolve, such as:

xcb_lock.c:77: _XGetXCBBuffer: Assertion `((int) ((xcb_req) -
(dpy-request)) = 0)' failed.

These kinds of errors can be fixed by compiling a libX11 without xcb
entirely, and getting the desired app to use that particular libX11.so
by setting LD_PRELOAD appropriately. This forum thread has
instructions:

http://www.suseforums.net/index.php?showtopic=40371pid=208206mode=threadedshow=st=;

Hope this helps,
David



On Dec 3, 2007 9:05 PM, Jan Newmarch [EMAIL PROTECTED] wrote:
 Hi

 After lurking on this list for many years, it's time I contributed.

 Sun's Java under FC 8 is broken, and no Java apps that use X11 will run.
 Error is
 xcb_xlib.c:50: xcb_xlib_unlock: Assertion 'c-xlib.lock' failed
 Other distros may have the same problem.

 Sun claim it is a bug with XCB. XCB claim it is a long-standing bug with
 Java. Fedora won't include a workaround that just warns about broken locks
 instead of stopping. The problem seems to be Java making Xlib calls in a
 sequence not allowed under the Xlib replacement XCB.

 The only workaround that actually seems to work for me so far has been to
 download and install the rpms
 libxcb-1.0-3.i_acknowledge_that_my_jdk_is_broken.fc9.i386.rpm and
 ibxcb-devel-1.0-3.i_acknowledge_that_my_jdk_is_broken.fc9.i386.rpm from
 http://ajax.fedorapeople.org/libxcb/. Then run Java with export
 LIBXCB_ALLOW_SLOPPY_LOCK=1. This replaces libxcb.1.0.3 with a version that
 only complains instead of barfing.

 See http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6532373,
 https://bugs.freedesktop.org/show_bug.cgi?id=11390,
 https://bugs.launchpad.net/sun-java/+bug/86103,
 http://www.fedoraforum.org/forum/showthread.php?t=171763page=1, etc.

 Cheers

 Jan
 --
Dr Jan Newmarch
IT Degree Course Leader
Box Hill Institute
Email: [EMAIL PROTECTED]
WWW: http://jan.newmarch.name
Tel: +61 4 0117 0509

 Do what you think is interesting, do something that
 you think is fun and worthwhile, because otherwise
 you won't do it well anyway. -- Brian Kernighan

 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Java and Fedora Core 8

2007-12-04 Thread Matthew Hannigan

Here's redhat's bugzilla ref https://bugzilla.redhat.com/show_bug.cgi?id=301691

For what it's worth, Sun HAVE ack'd it as a java bug and
have a fix in an upcoming release.

Matt
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] Java and Fedora Core 8

2007-12-03 Thread Jan Newmarch

Hi

After lurking on this list for many years, it's time I contributed.

Sun's Java under FC 8 is broken, and no Java apps that use X11 will run. 
Error is

xcb_xlib.c:50: xcb_xlib_unlock: Assertion 'c-xlib.lock' failed
Other distros may have the same problem.

Sun claim it is a bug with XCB. XCB claim it is a long-standing bug with 
Java. Fedora won't include a workaround that just warns about broken locks 
instead of stopping. The problem seems to be Java making Xlib calls in a 
sequence not allowed under the Xlib replacement XCB.


The only workaround that actually seems to work for me so far has been to 
download and install the rpms 
libxcb-1.0-3.i_acknowledge_that_my_jdk_is_broken.fc9.i386.rpm and 
ibxcb-devel-1.0-3.i_acknowledge_that_my_jdk_is_broken.fc9.i386.rpm from 
http://ajax.fedorapeople.org/libxcb/. Then run Java with export 
LIBXCB_ALLOW_SLOPPY_LOCK=1. This replaces libxcb.1.0.3 with a version that 
only complains instead of barfing.


See http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6532373, 
https://bugs.freedesktop.org/show_bug.cgi?id=11390, 
https://bugs.launchpad.net/sun-java/+bug/86103, 
http://www.fedoraforum.org/forum/showthread.php?t=171763page=1, etc.


Cheers

Jan
--
  Dr Jan Newmarch
  IT Degree Course Leader
  Box Hill Institute
  Email: [EMAIL PROTECTED]
  WWW: http://jan.newmarch.name
  Tel: +61 4 0117 0509

Do what you think is interesting, do something that
you think is fun and worthwhile, because otherwise
you won't do it well anyway. -- Brian Kernighan

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html