segfault in libjvm with unknown cause

Bug #238066 reported by Michael Jumper
This bug report is a duplicate of:  Bug #174759: Eclipse crashes due to jvm crash. Edit Remove
4
Affects Status Importance Assigned to Milestone
openjdk-6 (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

While running a fairly Graphics2D-intensive visualization program of mine, it abruptly closed displaying the following:

#
# An unexpected error has been detected by Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f04fb22cfa0, pid=11397, tid=1108109648
#
# Java VM: OpenJDK 64-Bit Server VM (1.6.0-b09 mixed mode linux-amd64)
# Problematic frame:
# V [libjvm.so+0x20afa0]
#
# An error report file with more information is saved as:
# /home/zhz/viz/hs_err_pid11397.log
#
# If you would like to submit a bug report, please visit:
# https://bugs.launchpad.net/ubuntu/+source/openjdk-6/
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

Attached is the error report file mentioned.

Revision history for this message
Michael Jumper (zhangmaike) wrote :
Revision history for this message
diega (diega) wrote :

EXACTLY the same error, even with the libjvm.so+0x20afa0 using eclipse

Revision history for this message
MungoH (sf-coquio) wrote :

I get the same, and with the upcoming ganymede release

Revision history for this message
Tal Liron (emblem-parade) wrote :

Note that this affects Sun's JDK 6 as well as OpenJDK, and that it also affects the Sun's 32bit virtual machine (package: ia32-sun-java6-bin).

This seems like a very major bug to me -- Java seems essentially broken on Ubuntu AMD64.

Revision history for this message
Tal Liron (emblem-parade) wrote :

My current workaround is to use Sun's latest JDK 6 binary for Linux. It seems as if this bug was solved.

It's also pretty safe -- the archive opens in a single directory and does not install files anywhere else. So, when this bug eventually is fixed for Ubuntu, you can simply delete the directory.

Download from here:

http://download.java.net/jdk6/binaries/

Perhaps the solution is simply to update Ubuntu's repositories to the latest build of JDK 6.

Revision history for this message
Tal Liron (emblem-parade) wrote :

Wow, as soon as I posted my "workaround," it crashed.

Something is very wrong.

Revision history for this message
Tal Liron (emblem-parade) wrote :
Revision history for this message
Tal Liron (emblem-parade) wrote :

Further investigation reveals that this is a bug with the HotSpot virtual machine included in all versions of Java 6 from Sun and OpenJDK. It has to do with how HotSpot handles recompilation of mutable classes (basically, any class that has "volatile" fields).

This bug seems to have been fixed with the HotSpot included in the upcoming Java 7. As far as I can tell, there are no plans currently in fixing this bug for Java 6.

So, the workaround for now seems to be running Java 7:

http://download.java.net/jdk7/binaries/

Revision history for this message
yct (juraj-vitko) wrote :

A dirty but functional workaround seems to be to copy the 'libjvm.so' library from OpenJDK 7 to OpenJDK 6.

Revision history for this message
Matthias Klose (doko) wrote :

- please recheck with openjdk-6 6b11-2ubuntu2, as found in hardy-proposed

Changed in openjdk-6:
status: New → Incomplete
Revision history for this message
Tal Liron (emblem-parade) wrote :

The hardy-proposed package seems to have made the bug disappear for me, at least after a day of working with it. However, since it's not straightforward in my scenario to reproduce this bug, I would be careful about saying we're in the clear... I hope other people can report their experiences!

Thanks, Matthias.

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.