NetBeans 7 crashes OpenJDK with SIGSEGV in glXChooseVisual when GLX not available on display

Bug #750994 reported by Craig Ringer
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
openjdk-6 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Launching NetBeans7 RC1 from http://netbeans.org/ fails with a SIGSEGV on a freshly installed Ubuntu 11.04 system with OpenJDK 1.6.0_22. The segfault is in libGL.so.1 at glXChooseVisual+0x106eb .

Running "glxinfo" reports:

Xlib: extension "GLX" missing on display ":0.0".
Error: couldn't find RGB GLX visual or fbconfig

... so I suspect the issue is that OpenJDK isn't coping cleanly when GLX isn't available.

It appears that the JDK has been restructured to try to merge the -headless and regular jdks, given that `dpkg -S /usr/lib/jvm/java-6-openjdk/bin/java' reports `openjdk-6-jre-headless'. Attempting to 'apt-get --purge remove openjdk-6-jre-headless' shows that openjdk-6-jre now depends on openjdk-6-jre-headless. This may be related to the problem.

#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0xb0d99e7b, pid=392, tid=3001133936
#
# JRE version: 6.0_22-b22
# Java VM: OpenJDK Client VM (20.0-b11 mixed mode, sharing linux-x86 )
# Derivative: IcedTea6 1.10.1pre
# Distribution: Ubuntu Natty (development branch), package 6b22-1.10.1~pre1-0ubuntu1
# Problematic frame:
# C [libGL.so.1+0x61e7b] glXChooseVisual+0x106eb
#
# An error report file with more information is saved as:
# /home/craig/hs_err_pid392.log
#
# If you would like to submit a bug report, please include
# instructions how to reproduce the bug and visit:
# https://bugs.launchpad.net/ubuntu/+source/openjdk-6/
#

Revision history for this message
Craig Ringer (ringerc) wrote :
Revision history for this message
Craig Ringer (ringerc) wrote :

Possibly related: https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/745271

Some more system details:

craig@wallace:~$ lsb_release -rd
Description: Ubuntu Natty (development branch)
Release: 11.04

xdpyinfo attached.

craig@wallace:~$ apt-cache policy openjdk-6-jdk
openjdk-6-jdk:
  Installed: 6b22-1.10.1~pre1-0ubuntu1
  Candidate: 6b22-1.10.1~pre1-0ubuntu1
  Version table:
 *** 6b22-1.10.1~pre1-0ubuntu1 0
        500 http://ftp.iinet.net.au/pub/ubuntu/ natty/main i386 Packages
        500 http://au.archive.ubuntu.com/ubuntu/ natty/main i386 Packages
        100 /var/lib/dpkg/status

Revision history for this message
Craig Ringer (ringerc) wrote :

When I switched to the `nouveau' display driver, thus enabling glx, NetBeans was able to launch successfully.

Given that NetBeans was failing during the 'enabling modules' stage, I'd say it was crashing when it tried to launch a module that used GL visualization features.

Looks like openjdk needs more tests run on displays lacking glx extensions.

Changed in openjdk-6 (Ubuntu):
status: New → Confirmed
Revision history for this message
Mikkel Kamstrup Erlandsen (kamstrup) wrote :

I get this as well. I can run netbeans OK when using my laptops built in intel card, but when switching to the (also built in!) nvidia card with the proprietary drivers I get the described crash consistently.

@Craig: are you using the proprietary nvidia drivers as well when you get the crash? In that case it can either be some ABI mismatch with nvidia's libGL.so or simply a bugin the nvidia drivers.

Revision history for this message
Mikkel Kamstrup Erlandsen (kamstrup) wrote :

If it matters I am using the nvidia-current drivers here version 280.13

Revision history for this message
Mikkel Kamstrup Erlandsen (kamstrup) wrote :

Looking at Craigs attached logs I can see that he is indeed running the proprietary nvidia drivers v 270.30. Marking as a dupe of 745271

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.