Closed scabug closed 13 years ago
Imported From: https://issues.scala-lang.org/browse/SI-4449?orig=1 Reporter: Sandro Grii (sandrogrzicic)
@cunei said: I will have to close this ticket as "invalid". The Java 7 Early Access code is not production quality, and these problems may very well be transient. In order to check the situation, I installed a fresh copy same version of Java 7 on a 64-bit Windows 7, and the first run of "scalac" quite simply caused an internal failure in the JVM (see below). We cannot even start any debugging under these circumstances: the Java 7 code is just not stable enough at this time.
C:\Users\cunei>scalac
"java" -Xmx256M -Xms32M -Dscala.home="C:\PROGRA~1\scala\bin\.." -Denv.emacs="" -cp "C:\PROGRA~1\scala\bin\..\lib\jline.jar;C:\PROGRA~1\scala\bin\..\lib\scala-compiler.jar;C:\PROGRA~1\scala\bin\..\lib\scala-dbc.jar;C:\PROGRA~1\scala\bin\..\lib\scala-library.jar;C:\PROGRA~1\scala\bin\..\lib\scala-swing.jar;C:\PROGRA~1\scala\bin\..\lib\scalap.jar" scala.tools.nsc.Main
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000000262c450, pid=2836, tid=1444
#
# JRE version: 7.0-b136
# Java VM: Java HotSpot(TM) 64-Bit Server VM (21.0-b06 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# j scala.collection.immutable.HashSet$$HashTrieSet.updated0(Ljava/lang/Object;II)Lscala/collection/immutable/HashSet;+84
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# C:\Users\cunei\hs_err_pid2836.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
Sandro Grii (sandrogrzicic) said: Replying to [comment:1 cunei]:
Ok, agreed. I just thought it might be in some remote way related to Scala. By the way, your error is exactly the same as mine, but the output format is somehow different (note the line after "Problematic frame:").
Thanks. I hope the next build (or one of the next builds) of the 64bit Java 7 JRE fixes this (obviously Java) bug. :)
Hello.
Running scalac on my 64bit Java 7 install throws a NPE:
My PATH variables are set to use the 64bit JRE as the default. If I explicitly run scalac under the 32bit JRE, with this line:
.. everything works fine.
The problem first occured in Scala 2.8.1, then I updated to 2.9-RC1 and the issue is identical.
Now, I'm not sure if it's maybe a JRE 7 bug, but seeing only Scala sources in the NPE stacktrace, I wanted to report it here, just in case.
Scala itself seems to run fine under 64bit Java 7. However, when I type "import scala.collection.immutable.HashSet" on the REPL, I get this:
(it crashes before giving me a chance to type y/n)
Scala: 2.9.0.RC1 Java: Java 1.7.0-ea-b136 (64 and 32bit) OS: Windows 7 Professional x64
Thanks and I apologize in advance if this is a known issue (I searched trac and found nothing relevant).