-
Bug
-
Resolution: Duplicate
-
P2
-
None
-
8
-
x86
-
os_x
FULL PRODUCT VERSION :
A DESCRIPTION OF THE PROBLEM :
VM crash when running the Scala REPL
THE PROBLEM WAS REPRODUCIBLE WITH -Xint FLAG: Did not try
THE PROBLEM WAS REPRODUCIBLE WITH -server FLAG: Did not try
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
See https://gist.github.com/lrytz/b5b611d28094a4efcafe
REPRODUCIBILITY :
This bug can be reproduced always.
stack :
Stack: [0x000070000011a000,0x000070000061a000], sp=0x0000700000613a30, free space=5094k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [libsystem_platform.dylib+0x4f49] _platform_memmove$VARIANT$Haswell+0x29
C [libzip.dylib+0x302d] newEntry+0x2c8
C [libzip.dylib+0x3554] ZIP_GetEntry2+0xd4
C [libzip.dylib+0x234f] Java_java_util_zip_ZipFile_getEntry+0xcf
J 3526 java.util.zip.ZipFile.getEntry(J[BZ)J (0 bytes) @ 0x000000011050640e [0x0000000110506340+0xce]
J 3691 C1 java.util.zip.ZipFile.getInputStream(Ljava/util/zip/ZipEntry;)Ljava/io/InputStream; (304 bytes) @ 0x00000001102e75cc [0x00000001102e7240+0x38c]
j scala.reflect.io.FileZipArchive$FileEntry$1.input()Ljava/io/InputStream;+8
j scala.reflect.io.AbstractFile.toByteArray()[B+1
j scala.tools.nsc.symtab.classfile.AbstractFileReader.<init>(Lscala/reflect/io/AbstractFile;)V+11
j scala.tools.nsc.symtab.classfile.ClassfileParser.parse(Lscala/reflect/io/AbstractFile;Lscala/reflect/internal/Symbols$Symbol;)V+191
j scala.tools.nsc.symtab.SymbolLoaders$ClassfileLoader$$anonfun$doComplete$2.apply$mcV$sp()V+18
j scala.tools.nsc.symtab.SymbolLoaders$ClassfileLoader$$anonfun$doComplete$2.apply()V+1
j scala.tools.nsc.symtab.SymbolLoaders$ClassfileLoader$$anonfun$doComplete$2.apply()Ljava/lang/Object;+1
A DESCRIPTION OF THE PROBLEM :
VM crash when running the Scala REPL
THE PROBLEM WAS REPRODUCIBLE WITH -Xint FLAG: Did not try
THE PROBLEM WAS REPRODUCIBLE WITH -server FLAG: Did not try
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
See https://gist.github.com/lrytz/b5b611d28094a4efcafe
REPRODUCIBILITY :
This bug can be reproduced always.
stack :
Stack: [0x000070000011a000,0x000070000061a000], sp=0x0000700000613a30, free space=5094k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [libsystem_platform.dylib+0x4f49] _platform_memmove$VARIANT$Haswell+0x29
C [libzip.dylib+0x302d] newEntry+0x2c8
C [libzip.dylib+0x3554] ZIP_GetEntry2+0xd4
C [libzip.dylib+0x234f] Java_java_util_zip_ZipFile_getEntry+0xcf
J 3526 java.util.zip.ZipFile.getEntry(J[BZ)J (0 bytes) @ 0x000000011050640e [0x0000000110506340+0xce]
J 3691 C1 java.util.zip.ZipFile.getInputStream(Ljava/util/zip/ZipEntry;)Ljava/io/InputStream; (304 bytes) @ 0x00000001102e75cc [0x00000001102e7240+0x38c]
j scala.reflect.io.FileZipArchive$FileEntry$1.input()Ljava/io/InputStream;+8
j scala.reflect.io.AbstractFile.toByteArray()[B+1
j scala.tools.nsc.symtab.classfile.AbstractFileReader.<init>(Lscala/reflect/io/AbstractFile;)V+11
j scala.tools.nsc.symtab.classfile.ClassfileParser.parse(Lscala/reflect/io/AbstractFile;Lscala/reflect/internal/Symbols$Symbol;)V+191
j scala.tools.nsc.symtab.SymbolLoaders$ClassfileLoader$$anonfun$doComplete$2.apply$mcV$sp()V+18
j scala.tools.nsc.symtab.SymbolLoaders$ClassfileLoader$$anonfun$doComplete$2.apply()V+1
j scala.tools.nsc.symtab.SymbolLoaders$ClassfileLoader$$anonfun$doComplete$2.apply()Ljava/lang/Object;+1
- duplicates
-
JDK-8145260 To bring j.u.z.ZipFile's native implementation to Java to remove the expensive jni cost and mmap crash risk [2]
- Resolved