JVM crash in java.util.zip.ZipFile.getEntry

Solution Verified - Updated -

Issue

  • JVM crash in java.util.zip.ZipFile.getEntry with SIGBUS or SIGSEGV SEGV_MAPERR. For example, a fatal error log hs_err_pid<PID>.log shows:

    #
    # A fatal error has been detected by the Java Runtime Environment:
    #
    #  SIGBUS (0x7) at pc=0x00002aaaab034021, pid=6244, tid=1227151680
    #
    # JRE version: 6.0_17-b04
    # Java VM: Java HotSpot(TM) 64-Bit Server VM (14.3-b01 mixed mode linux-amd64 )
    # Problematic frame:
    # C  [libzip.so+0xb021]
    #
    
    ...(snip)...
    
    
    siginfo:si_signo=SIGBUS: si_errno=0, si_code=2 (BUS_ADRERR), si_addr=0x00002aab3a5d73bb
    
    ...(snip)...
    
    Stack: [0x000000004914d000,0x000000004924e000],  sp=0x0000000049249270,  free space=1008k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    C  [libzip.so+0xb021]
    
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    J  java.util.zip.ZipFile.getEntry(JLjava/lang/String;Z)J
    J  sun.misc.URLClassPath$JarLoader.getResource(Ljava/lang/String;Z)Lsun/misc/Resource;
    J  java.net.URLClassLoader$2.run()Ljava/lang/Object;
    v  ~StubRoutines::call_stub
    ...(snip)...
    
  • JBoss sometimes crashes, during hot deploy of a large application.

Environment

  • Java
    • OpenJDK Runtime Environment (8.0_121-b13) (build 1.8.0_121-b13)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.