Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8207918

Intermittent crash in java.util.zip.ZipFile$ZipFileInputStream.initDataOffset()

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 11
    • Fix Version/s: tbd
    • Component/s: core-libs
    • Labels:

      Description

      JDK crashed with following error:
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # SIGSEGV (0xb) at pc=0x0000000117548dff, pid=77853, tid=7427
      #
      # JRE version: Java(TM) SE Runtime Environment (11.0+19) (fastdebug build 11-ea+19)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 11-ea+19, mixed mode, tiered, compressed oops, g1 gc, bsd-amd64)
      # Problematic frame:
      # j java.util.zip.ZipFile$ZipFileInputStream.initDataOffset()J+27 java.base@11-ea
      #
      # No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
      #
      # If you would like to submit a bug report, please visit:
      # http://bugreport.java.com/bugreport/crash.jsp
      #

      --------------- S U M M A R Y ------------

      Command Line: -Djava.library.path=/scratch/mesos/jib-master/install/jdk/11/19/macosx-x64-debug.test/hotspot/jtreg/native --patch-module=java.base=/scratch/mesos/slaves/c4ee7e63-1ded-4e8c-9581-ce26f27e3af4-S23020/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/260199c3-109b-4d95-b7db-52d7f2526eb8/runs/d38af81b-26bc-4f09-a99b-072006b2b02c/testoutput/jtreg/JTwork/patches/java.base -Djava.security.policy=file:/scratch/mesos/slaves/c4ee7e63-1ded-4e8c-9581-ce26f27e3af4-S23020/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/260199c3-109b-4d95-b7db-52d7f2526eb8/runs/d38af81b-26bc-4f09-a99b-072006b2b02c/testoutput/jtreg/JTwork/jtreg.policy com.sun.javatest.regtest.agent.AgentServer -allowSetSecurityManager -port 52407

      Host: scaaa906.us.oracle.com, Macmini6,1 x86_64 2500 MHz, 4 cores, 16G, Darwin 17.5.0
      Time: Mon Jun 25 00:59:38 2018 GMT elapsed time: 1 seconds (0d 0h 0m 1s)

      --------------- T H R E A D ---------------

      Current thread (0x00007fb907007800): JavaThread "main" [_thread_in_Java, id=7427, stack(0x000000010cb1e000,0x000000010cc1e000)]

      Stack: [0x000000010cb1e000,0x000000010cc1e000], sp=0x000000010cc1ac60, free space=1011k
      Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
      j java.util.zip.ZipFile$ZipFileInputStream.initDataOffset()J+27 java.base@11-ea
      j java.util.zip.ZipFile$ZipFileInputStream.read([BII)I+16 java.base@11-ea
      j java.util.zip.ZipFile$ZipFileInflaterInputStream.fill()V+32 java.base@11-ea
      j java.util.zip.InflaterInputStream.read([BII)I+100 java.base@11-ea
      j jdk.internal.loader.Resource.getBytes()[B+115 java.base@11-ea
      j jdk.internal.loader.BuiltinClassLoader.defineClass(Ljava/lang/String;Ljdk/internal/loader/Resource;)Ljava/lang/Class;+84 java.base@11-ea
      j jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(Ljava/lang/String;)Ljava/lang/Class;+37 java.base@11-ea
      j jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(Ljava/lang/String;Z)Ljava/lang/Class;+111 java.base@11-ea
      j jdk.internal.loader.BuiltinClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class;+3 java.base@11-ea
      j jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class;+36 java.base@11-ea
      j java.lang.ClassLoader.loadClass(Ljava/lang/String;)Ljava/lang/Class;+3 java.base@11-ea
      v ~StubRoutines::call_stub
      V [libjvm.dylib+0x71363a] JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, Thread*)+0x478
      V [libjvm.dylib+0x71202f] JavaCalls::call_virtual(JavaValue*, Klass*, Symbol*, Symbol*, JavaCallArguments*, Thread*)+0x2a9
      V [libjvm.dylib+0x712257] JavaCalls::call_virtual(JavaValue*, Handle, Klass*, Symbol*, Symbol*, Handle, Thread*)+0xcb
      V [libjvm.dylib+0xd17ddd] SystemDictionary::load_instance_class(Symbol*, Handle, Thread*)+0x171
      V [libjvm.dylib+0xd169e8] SystemDictionary::resolve_instance_class_or_null(Symbol*, Handle, Handle, Thread*)+0x746
      V [libjvm.dylib+0xd15dd6] SystemDictionary::resolve_or_null(Symbol*, Handle, Handle, Thread*)+0x366
      V [libjvm.dylib+0xd1713e] SystemDictionary::resolve_super_or_fail(Symbol*, Symbol*, Handle, Handle, bool, Thread*)+0x36a
      V [libjvm.dylib+0x3e69e7] ClassFileParser::parse_interfaces(ClassFileStream const*, int, ConstantPool*, bool*, Thread*)+0x55d
      V [libjvm.dylib+0x3f4972] ClassFileParser::parse_stream(ClassFileStream const*, Thread*)+0xae2
      V [libjvm.dylib+0x3f3e63] ClassFileParser::ClassFileParser(ClassFileStream*, Symbol*, ClassLoaderData*, Handle, InstanceKlass const*, GrowableArray<Handle>*, ClassFileParser::Publicity, Thread*)+0x715
      V [libjvm.dylib+0x9a4d2c] KlassFactory::create_from_stream(ClassFileStream*, Symbol*, ClassLoaderData*, Handle, InstanceKlass const*, GrowableArray<Handle>*, Thread*)+0x560
      V [libjvm.dylib+0xd19426] SystemDictionary::resolve_from_stream(Symbol*, Handle, Handle, ClassFileStream*, Thread*)+0x136
      V [libjvm.dylib+0x828359] jvm_define_class_common(JNIEnv_*, char const*, _jobject*, signed char const*, int, _jobject*, char const*, Thread*)+0x49f
      V [libjvm.dylib+0x8285bc] JVM_DefineClassWithSource+0x1bf
      C [libjava.dylib+0x1be3] Java_java_lang_ClassLoader_defineClass1+0x11b
      j java.lang.ClassLoader.defineClass1(Ljava/lang/ClassLoader;Ljava/lang/String;[BIILjava/security/ProtectionDomain;Ljava/lang/String;)Ljava/lang/Class;+0 java.base@11-ea
      j java.lang.ClassLoader.defineClass(Ljava/lang/String;[BIILjava/security/ProtectionDomain;)Ljava/lang/Class;+27 java.base@11-ea
      j java.security.SecureClassLoader.defineClass(Ljava/lang/String;[BIILjava/security/CodeSource;)Ljava/lang/Class;+12 java.base@11-ea
      j jdk.internal.loader.BuiltinClassLoader.defineClass(Ljava/lang/String;Ljdk/internal/loader/Resource;)Ljava/lang/Class;+117 java.base@11-ea
      j jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(Ljava/lang/String;)Ljava/lang/Class;+37 java.base@11-ea
      j jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(Ljava/lang/String;Z)Ljava/lang/Class;+111 java.base@11-ea
      j jdk.internal.loader.BuiltinClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class;+3 java.base@11-ea
      j jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class;+36 java.base@11-ea
      j java.lang.ClassLoader.loadClass(Ljava/lang/String;)Ljava/lang/Class;+3 java.base@11-ea
      v ~StubRoutines::call_stub
      V [libjvm.dylib+0x71363a] JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, Thread*)+0x478
      V [libjvm.dylib+0x71202f] JavaCalls::call_virtual(JavaValue*, Klass*, Symbol*, Symbol*, JavaCallArguments*, Thread*)+0x2a9
      V [libjvm.dylib+0x712257] JavaCalls::call_virtual(JavaValue*, Handle, Klass*, Symbol*, Symbol*, Handle, Thread*)+0xcb
      V [libjvm.dylib+0xd17ddd] SystemDictionary::load_instance_class(Symbol*, Handle, Thread*)+0x171
      V [libjvm.dylib+0xd169e8] SystemDictionary::resolve_instance_class_or_null(Symbol*, Handle, Handle, Thread*)+0x746
      V [libjvm.dylib+0xd15dd6] SystemDictionary::resolve_or_null(Symbol*, Handle, Handle, Thread*)+0x366
      V [libjvm.dylib+0xd15a3d] SystemDictionary::resolve_or_fail(Symbol*, Handle, Handle, bool, Thread*)+0x1b
      V [libjvm.dylib+0x8270a1] find_class_from_class_loader(JNIEnv_*, Symbol*, unsigned char, Handle, Handle, unsigned char, Thread*)+0x34
      V [libjvm.dylib+0x826e93] JVM_FindClassFromCaller+0x53c
      C [libjava.dylib+0x199c] Java_java_lang_Class_forName0+0x12e
      j java.lang.Class.forName0(Ljava/lang/String;ZLjava/lang/ClassLoader;Ljava/lang/Class;)Ljava/lang/Class;+0 java.base@11-ea
      j java.lang.Class.forName(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;+43 java.base@11-ea
      j sun.launcher.LauncherHelper.loadMainClass(ILjava/lang/String;)Ljava/lang/Class;+93 java.base@11-ea
      j sun.launcher.LauncherHelper.checkAndLoadMain(ZILjava/lang/String;)Ljava/lang/Class;+42 java.base@11-ea
      v ~StubRoutines::call_stub
      V [libjvm.dylib+0x71363a] JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, Thread*)+0x478
      V [libjvm.dylib+0x7b0288] jni_invoke_static(JNIEnv_*, JavaValue*, _jobject*, JNICallType, _jmethodID*, JNI_ArgumentPusher*, Thread*)+0x186
      V [libjvm.dylib+0x7b13d5] jni_CallStaticObjectMethod+0x31e
      C [java+0x4a7e] JavaMain+0x659
      C [libsystem_pthread.dylib+0x3661] _pthread_body+0x154
      C [libsystem_pthread.dylib+0x350d] _pthread_body+0x0
      C [libsystem_pthread.dylib+0x2bf9] thread_start+0xd

        Attachments

          Activity

            People

            • Assignee:
              lancea Lance Andersen
              Reporter:
              lmesnik Leonid Mesnik
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: