From owner-freebsd-java Wed Jan 23 18:30:49 2002 Delivered-To: freebsd-java@freebsd.org Received: from palle.girgensohn.se (c213-89-136-218.cm-upc.chello.se [213.89.136.218]) by hub.freebsd.org (Postfix) with ESMTP id AC3FD37B402 for ; Wed, 23 Jan 2002 18:30:38 -0800 (PST) Received: from palle.girgensohn.se (localhost [127.0.0.1]) by palle.girgensohn.se (8.11.6/8.11.6) with ESMTP id g0O2UTc30994; Thu, 24 Jan 2002 03:30:31 +0100 (CET) (envelope-from girgen@partitur.se) Date: Thu, 24 Jan 2002 03:30:29 +0100 From: Palle Girgensohn To: freebsd-java@freebsd.org Cc: shudo@computer.com Subject: JVM w/ shujit fails to connect to X, java dies sig 6 or spins away w/ 99% CPU Message-ID: <56040000.1011839429@palle.girgensohn.se> X-Mailer: Mulberry/2.1.2 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi! We've had problems to and fro lately regarding the jdk-1.2.2 not being able to connect to the Xserver, in this case Xvfb. The JVM will either die signal 6 or spin away forever in a loop taking up all CPU cycles it can get its hands on. We run the jdk with shujit, and with the latest shujit-0.7.10, I can easily reproduce killing the jvm with simple call: Toolkit.getDefaultToolkit(); without shujit, it works ok (though I *have* seen problems at some time even without shujit, but I cannot reproduce them anymore, so maybe take that with a grain of salt...? ) I have tried a lot of things, and it seems I managed to get shujit 0.7.5 working with Xvfb at one time by rebuilding the jdk with shared linking to open-motif instead of the static linking that is created by the java/jdk12 port by default. Sounds odd, though? It seems that, at least in our setup, getting the JVM to connect to X is more or less a black art. Anyone else seen this? The system is FreeBSD 4.4-release, jdk1.2.2b10, shujit 0.7.10, tomcat and Xvfb from XFree86-4.1.0. Xvfb is run with these lines: su -m nobody -c \ "/usr/X11R6/bin/Xvfb -fbdir /var/tmp -nolisten tcp -screen 0 320x200x24" & \ sleep 2; su -m nobody -c 'DISPLAY=:0.0 xhost +' the JVM is run as same user nobody, and in its environment is DISPLAY=:0.0. Any ideas? If you need more input, just mail me and I'll be happy to give all the info you need. Thanks for your time! Palle To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message