← Back to team overview

openjdk team mailing list archive

[Bug 519514] Re: javac crash executing java.lang.String.hashCode()

 

Perhaps I have the same problem, "java.lang.String.hashCode()I (60
bytes)", both in java and javac, perhaps dup of "[Bug 570110] [NEW]
ShouldNotCall() gets called and VM aborts"?

find . -name '*.log' -exec grep -Hn -B1 'java.lang.String.hashCode()' {} \;
./hs_err_pid3970.log-38-Current CompileTask:
./hs_err_pid3970.log:39:C2:  1      java.lang.String.hashCode()I (60 bytes)
./JavaSoundDemo/src/hs_err_pid4641.log-70-Current CompileTask:
./JavaSoundDemo/src/hs_err_pid4641.log:71:C2:  1      java.lang.String.hashCode()I (60 bytes)
./JavaSoundDemo/src/hs_err_pid4630.log-70-Current CompileTask:
./JavaSoundDemo/src/hs_err_pid4630.log:71:C2:  1      java.lang.String.hashCode()I (60 bytes)
./JavaSoundDemo/src/hs_err_pid4620.log-70-Current CompileTask:
./JavaSoundDemo/src/hs_err_pid4620.log:71:C2:  1      java.lang.String.hashCode()I (60 bytes)
./hs_err_pid4139.log-70-Current CompileTask:
./hs_err_pid4139.log:71:C2:  1      java.lang.String.hashCode()I (60 bytes)
./hs_err_pid4230.log-70-Current CompileTask:
./hs_err_pid4230.log:71:C2:  1      java.lang.String.hashCode()I (60 bytes)

cat Main.java 
//Main.java

public class Main {
public static void main(String args[]) {
System.io.println("hello");
}
}

javac Main.java 
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x0000000000000000, pid=4873, tid=139948998256912
#
# JRE version: 6.0-b16
# Java VM: OpenJDK 64-Bit Server VM (14.0-b16 mixed mode linux-amd64 )
# Distribution: Ubuntu 9.10, package 6b16-1.6.1-3ubuntu3
# Problematic frame:
# C  0x0000000000000000
#
[thread 139948999309584 also had an error]
# An error report file with more information is saved as:
# [thread 139948999309584 also had an error]
#
# 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/
#
Aborted

Note that it doesnt mention "hs_err_pid4873.log" , I'll attach it, hope
it helps.

Smallest program to cause bug:

cat Main.java
public class Main {};

javac Main.java 
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x0000000000000000, pid=5076, tid=140019912534288
#
# JRE version: 6.0-b16
# Java VM: OpenJDK 64-Bit Server VM (14.0-b16 mixed mode linux-amd64 )
# Distribution: Ubuntu 9.10, package 6b16-1.6.1-3ubuntu3
# Problematic frame:
# C  0x0000000000000000
#
# An error report file with more information is saved as:
# /home/frans/tmp/linux-sound/hs_err_pid5076.log
[thread 140019913586960 also had an error]
#
# 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/
#
Aborted


** Attachment added: "hs_err_pid4873.log"
   http://launchpadlibrarian.net/45505934/hs_err_pid4873.log

-- 
javac crash executing java.lang.String.hashCode()
https://bugs.launchpad.net/bugs/519514
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-6 in ubuntu.

Status in “openjdk-6” package in Ubuntu: Incomplete

Bug description:
I experienced a crash of javac yesterday compiling a normal .java source file. I had a look at the hs_err file (see attachment below) that the JVM produced but I could not make much of it and google doesn't say something interesting about it either, so I decided to post it here, maybe some of you folks can figure out what went wrong.

Apparently it crashed while executing java.lang.String.hashCode() (again, see below for details).

Compiling the same source file did not crash the jvm again (which would be rather unlikely anyway i guess, just mentioning it for completeness) and I had no other crashes while compiling things since then.





References