JVM crash in libapr when shutting down JBoss

Solution Verified - Updated -

Issue

  • JBoss server is crashing with an "EXCEPTION_ACCESS_VIOLATION" once shutdown has started.
  • Setting a breakpoint in AccessLogValve.invoke() then doing shutdown, then releasing the break point crashes the JVM.
  • The fatal error log shows the following:
    #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0d74c90e, pid=3204, tid=5944
    #
    # JRE version: 6.0_20-b02
    # Java VM: Java HotSpot(TM) Server VM (16.3-b01 mixed mode windows-x86 )
    # Problematic frame:
    # C  [libapr-1.dll+0xc90e]
    #
    ...
    
    Current thread (0x05973400):  JavaThread "http-127.0.0.1-8080-2" daemon [_thread_in_native, id=5944, stack(0x0efe0000,0x0f030000)]
    ...
    
    Stack: [0x0efe0000,0x0f030000],  sp=0x0f02f628,  free space=13d0f02f15ck
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    C  [libapr-1.dll+0xc90e]
    C  [libtcnative-1.dll+0x1150]
    j  org.apache.tomcat.jni.Address.get(IJ)J+0
    j  org.apache.coyote.http11.Http11AprProcessor.action(Lorg/apache/coyote/ActionCode;Ljava/lang/Object;)V+196
    j  org.apache.coyote.Request.action(Lorg/apache/coyote/ActionCode;Ljava/lang/Object;)V+56
    j  org.apache.catalina.connector.Request.getRemoteAddr()Ljava/lang/String;+18
    j  org.apache.catalina.connector.Request.getRemoteHost()Ljava/lang/String;+19
    j  org.apache.catalina.valves.AccessLogValve$HostElement.addElement(Ljava/lang/StringBuffer;Ljava/util/Date;Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;J)V+2
    j  org.apache.catalina.valves.AccessLogValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+115
    ...
    

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 5.x

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.