The following program will fail import javax.swing.JFrame; public class Test { public static void main(String[] args) { JFrame frame = new JFrame(); frame.pack(); frame.setVisible(true); } } It will fail with any of the following vm's*) Sun 32bit JRE 1.5.0.11 [emul-linux-x86-java-1.5] 2) Sun 32bit JRE 1.6.0.01 [emul-linux-x86-java-1.6] 3) IBM JDK 1.5.0.5 [ibm-jdk-bin-1.5] 4) Sun JDK 1.5.0.11 [sun-jdk-1.5] 5) Sun JDK 1.6.0.01 [sun-jdk-1.6] 6) Sun JRE 1.6.0.01 [sun-jre-bin-1.6] I am using nvidia drivers. Program will execute if I use gcj to generate executable. I have no problem with ubuntu (Amd64) (It does use 32 bit mode, which fail for me in gentoo.) Just for fun I tried AWT_TOOLKIT=XToolkit LD_PRELOAD=/usr/lib32/openmotif-2.2/libXm.so java Test in the 32 bit mode to eliminate some probles showing up in previous bugzillas Reproducible: Always Steps to Reproduce: 1.javac Test.java 2.java Test 3. Actual Results: X server crashes Output: X connection to :0.0 host broken (explicit kill or server shutdown)
Please attach output of emerge -v --info and X server crash log (probably will be in /var/log/Xorg.0.log.old after you restart crashed X). > Output: X connection to :0.0 host broken (explicit kill or server shutdown) How can you read this when whole X crashes? :)
Created attachment 123388 [details] Xorg.0.log.old Obtained after the X crash, but no crash detected in it.
Created attachment 123390 [details] Output of emerge -v --info X connection to :0.0 host broken (explicit kill or server shutdown) was obtained looking at error.txt generated by java Test > error.txt 2>&1
The Test.java program cab be reduced to import javax.swing.JFrame; public class Test { public static void main(String[] args) { JFrame frame = new JFrame(); } } and it will fail with JFrame frame = new JFrame();
What's the output of `emerge -vp libX11`?
(In reply to comment #5) > What's the output of `emerge -vp libX11`? > [ebuild R ] x11-libs/libX11-1.1.2-r1 USE="ipv6 -debug -xcb" 0 kB Total: 1 package (1 reinstall), Size of downloads: 0 kB
Bug could be closed. I got it working. It seems with the nvidia driver xserver crashed with xorg-server-1.2.0-r3. When I emerged xorg-server-1.3.0.0, it did no crash anymore but reported an xcb error in Xlib. emerging libX11 without the xcb user flag made java work.
FIXED would mean the devs fixed something. X: want to do anything about restricting deps somewhere? Looks like mixing unstable libX11 with stable xorg-server to me... Or it's just INVALID or anything?
(In reply to comment #8) > FIXED would mean the devs fixed something. > > X: want to do anything about restricting deps somewhere? Looks like mixing > unstable libX11 with stable xorg-server to me... > > Or it's just INVALID or anything? looks invalid to me because previous comment already said it was -xcb, which apparently wasn't the case.
And closing as such.