Tomcat APR connector crashing in Http2UpgradeHandler.sendStreamReset()

Solution In Progress - Updated -

Issue

  • Tomcat crashing with the following in the fatal error log:
Current thread (0x00007f61315b3000):  JavaThread "https-openssl-apr-12345-exec-6" daemon [_thread_in_native, id=20445, stack(0x00007f60692d4000,0x00007f60693d5000)]
...
Stack: [0x00007f60692d4000,0x00007f60693d5000],  sp=0x00007f60693d2fe0,  free space=1019k
Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [libssl.so.1.1+0x2507b]  ssl3_write_bytes+0x62b

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
J 10985  org.apache.tomcat.jni.Socket.sendb(JLjava/nio/ByteBuffer;II)I (0 bytes) @ 0x00007f6120b911ab [0x00007f6120b91140+0x000000000000006b]
J 11245 c1 org.apache.tomcat.util.net.AprEndpoint$AprSocketWrapper.doWriteInternal(Ljava/nio/ByteBuffer;)V (301 bytes) @ 0x00007f611a933804 [0x00007f611a933100+0x0000000000000704]
J 11480 c1 org.apache.tomcat.util.net.AprEndpoint$AprSocketWrapper.doWrite(ZLjava/nio/ByteBuffer;)V (216 bytes) @ 0x00007f611a9dc3c4 [0x00007f611a9dad80+0x0000000000001644]
J 11224 c1 org.apache.tomcat.util.net.SocketWrapperBase.flushBlocking()V (41 bytes) @ 0x00007f611a92296c [0x00007f611a9225c0+0x00000000000003ac]
J 11223 c1 org.apache.tomcat.util.net.SocketWrapperBase.flush(Z)Z (20 bytes) @ 0x00007f611a9220b4 [0x00007f611a921f60+0x0000000000000154]
j  org.apache.coyote.http2.Http2UpgradeHandler.sendStreamReset(Lorg/apache/coyote/http2/StreamException;)V+128
j  org.apache.coyote.http2.Stream.close(Lorg/apache/coyote/http2/Http2Exception;)V+76
j  org.apache.coyote.http2.StreamProcessor.process(Lorg/apache/tomcat/util/net/SocketEvent;)V+296
j  org.apache.coyote.http2.StreamRunnable.run()V+8
j  java.util.concurrent.ThreadPoolExecutor.runWorker(Ljava/util/concurrent/ThreadPoolExecutor$Worker;)V+92 java.base@11.0.17
j  java.util.concurrent.ThreadPoolExecutor$Worker.run()V+5 java.base@11.0.17

siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr: 0x00000000000000dc

Environment

  • Red Hat JBoss Web Server 5
    • Tomcat
  • OpenJDK 11

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content