Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 183620 - x11-base/xorg-server-1.2.0-r3 and libX11-1.1.2-r1 crashes when program containing awt components executed by java
Summary: x11-base/xorg-server-1.2.0-r3 and libX11-1.1.2-r1 crashes when program contai...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-29 08:19 UTC by Sándor Lengyel
Modified: 2007-07-19 15:11 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Xorg.0.log.old (Xorg.0.log.old,22.57 KB, text/plain)
2007-06-29 13:36 UTC, Sándor Lengyel
Details
Output of emerge -v --info (emergevinfo,11.32 KB, text/plain)
2007-06-29 13:43 UTC, Sándor Lengyel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sándor Lengyel 2007-06-29 08:19:42 UTC
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)
Comment 1 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2007-06-29 09:17:21 UTC
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? :)
Comment 2 Sándor Lengyel 2007-06-29 13:36:18 UTC
Created attachment 123388 [details]
Xorg.0.log.old

Obtained after the X crash, but no crash detected in it.
Comment 3 Sándor Lengyel 2007-06-29 13:43:48 UTC
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
Comment 4 Sándor Lengyel 2007-07-03 07:26:59 UTC
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();
Comment 5 Donnie Berkholz (RETIRED) gentoo-dev 2007-07-03 20:52:32 UTC
What's the output of `emerge -vp libX11`?
Comment 6 Sándor Lengyel 2007-07-04 03:26:02 UTC
(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
Comment 7 Sándor Lengyel 2007-07-19 14:03:59 UTC
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.
Comment 8 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2007-07-19 14:18:18 UTC
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?
Comment 9 Donnie Berkholz (RETIRED) gentoo-dev 2007-07-19 15:10:35 UTC
(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.
Comment 10 Donnie Berkholz (RETIRED) gentoo-dev 2007-07-19 15:11:39 UTC
And closing as such.