On 5/16/07, Dan Nicholson <[EMAIL PROTECTED]> wrote:
> On 5/16/07, Dan Nicholson <[EMAIL PROTECTED]> wrote:
> > >
> > > They are known to break (crash) Java at runtime. Please check this (maybe
> > > with binary Java) before actually committing the update.
> >
> > I recall that one of the xcb maintainers said this was still a problem
> > on the Xorg list recently. Here's the thread:
> >
> > http://lists.freedesktop.org/archives/xorg/2007-February/021870.html
> >
> > And here's a patch to turn off the asserting in xcb which is obviously
> > not ideal.
> >
> > http://cvs.pld-linux.org/cgi-bin/cvsweb/SOURCES/libxcb-no-assert-on-lock.patch?rev=1.1
>
> Interesting. Here's a bug against java and the Xorg bug. The both have
> a really simple test case.
>
> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6532373
> https://bugs.freedesktop.org/show_bug.cgi?id=9336
>
> I don't see any resolution yet.
I can't reproduce the bug here. I have libxcb-1.0, libX11-1.1.1 and
the binary jdk-1.5.0.11. The java library that will pull in xcb is
libmawt.so.
$ ldd /opt/jdk/jre/lib/i386/xawt/libmawt.so
linux-gate.so.1 => (0xb7f1b000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb7ebd000)
libm.so.6 => /lib/libm.so.6 (0xb7e97000)
libmlib_image.so => not found
libawt.so => not found
libXext.so.6 => /usr/lib/libXext.so.6 (0xb7e88000)
libX11.so.6 => /usr/lib/libX11.so.6 (0xb7da1000)
libdl.so.2 => /lib/libdl.so.2 (0xb7d9d000)
libjava.so => not found
libjvm.so => not found
libc.so.6 => /lib/libc.so.6 (0xb7c5c000)
/lib/ld-linux.so.2 (0x80000000)
libXau.so.6 => /usr/lib/libXau.so.6 (0xb7c59000)
libxcb-xlib.so.0 => /usr/lib/libxcb-xlib.so.0 (0xb7c57000)
libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb7c40000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb7c3b000)
Here's the test case posted in one of the bugs.
$ cat > Hello.java << EOF
import java.awt.*;
public class Hello extends Frame {
public static void main(String argv[])
{
new Hello();
}
Hello() {
Label hello = new Label("Hello World");
//add(hello, "Center");
//setSize(200, 200);
//setVisible(true);
}
}
EOF
$ javac Hello.java
$ java Hello
java: xcb_xlib.c:52: xcb_xlib_unlock: Assertion `c->xlib.lock' failed.
Aborted
That returns successfully for me. I didn't do anything special to
remove the assert()'s in xcb. The other test case mentioned was trying
jconsole, which comes with java. Works for me, though.
Has anyone here actually seen this issue? Can anyone reproduce this?
--
Dan
--
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page