adoptium / adoptium-support

For end-user problems reported with our binary distributions
Apache License 2.0
43 stars 15 forks source link

EXCEPTION_ACCESS_VIOLATION (0xc0000005) - After updating to Adoptium Java 21 in Apache Tomcat 9.x version, server is getting force shutdown with fatal error #1117

Open ebadugu opened 1 week ago

ebadugu commented 1 week ago

Question

A fatal error has been detected by the Java Runtime Environment - While performing or running web application what could be the potential issue?

A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffbc54e00cd, pid=33596, tid=21584
#
# JRE version: OpenJDK Runtime Environment Temurin-21.0.3+9 (21.0.3+9) (build 21.0.3+9-LTS)
# Java VM: OpenJDK 64-Bit Server VM Temurin-21.0.3+9 (21.0.3+9-LTS, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64)
# Problematic frame:
# V  [jvm.dll+0x5d00cd]

A fatal error has been detected by the Java Runtime Environment:

#

EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00000261f3b1a8cf, pid=27908, tid=29584

#

JRE version: OpenJDK Runtime Environment Temurin-21.0.3+9 (21.0.3+9) (build 21.0.3+9-LTS)

Java VM: OpenJDK 64-Bit Server VM Temurin-21.0.3+9 (21.0.3+9-LTS, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64)

Problematic frame:

j javax.servlet.http.HttpServletResponseWrapper.addIntHeader(Ljava/lang/String;I)V+1

#

No core dump will be written. Minidumps are not enabled by default on client versions of Windows

Context

Java version:

Your operating system and platform: Windows 10

karianna commented 1 week ago

@ebadugu can you post the full hserr crash log?

ebadugu commented 1 week ago

@karianna - Thanks for your response. PFA last 3 occurrences of hs_err_crash log files.

hs_err_pid18748.log

hs_err_pid30136.log

hs_err_pid13184.log

ebadugu commented 6 days ago

@karianna - Any pointers captured from the attached crash logs? Please let me know.

karianna commented 2 days ago

@ebadugu I took a look at all three logs and they're all crashing in the HttpServlet space as such (albeit on different methods each time). Often that means you've got some sort of byte code weaving agent (or similar) that might be interfering. Can -agentpath:C:\Program Files\SentinelOne\Sentinel Agent 23.4.4.223\SentinelJava64.dll=extendedCapabilities be disabled and then see if the crashes stop?

Also, what exact version of Tomcat are you using?

ebadugu commented 2 days ago

@karianna Thanks for your pointers, I will verify the issue by disabling the agent you suggested. We are currently using the Apache Tomcat 9.0.89 version.