New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NullPointerException in Scala 2.8 and 2.9RC1 with 64bit Java 1.7.0-ea-b136 (Windows 7 x64) #4449
Comments
Imported From: https://issues.scala-lang.org/browse/SI-4449?orig=1 |
@cunei said: 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: 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).
The text was updated successfully, but these errors were encountered: