How to debug java EXCEPTION_ACCESS_VIOLATION error

914 Views Asked by At

I have java test file, which keeps failing randomly in the jenkins CI TEST stage with the below error:

22:22:54  # A fatal error has been detected by the Java Runtime Environment:
22:22:54  #
22:22:54  #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000001be683cf4bd, pid=428, tid=13744
22:22:54  #
22:22:54  # JRE version: Java(TM) SE Runtime Environment (11.0.5+10) (build 11.0.5+10-LTS)
22:22:54  # Java VM: Java HotSpot(TM) 64-Bit Server VM (11.0.5+10-LTS, mixed mode, tiered, compressed oops, g1 gc, windows-amd64)
22:22:54  # Problematic frame:
22:22:54  # J 21693 c2 org.springframework.boot.context.properties.source.ConfigurationPropertyName.defaultElementEquals(Lorg/springframework/boot/context/properties/source/ConfigurationPropertyName$Elements;Lorg/springframework/boot/context/properties/source/ConfigurationPropertyName$Elements;I)Z (436 bytes) @ 0x000001be683cf4bd [0x000001be683cf460+0x000000000000005d]

Few notes:

  1. It happens only on jenkins agents, and not on my personal VDI, so it might be related to something with the code and resource allocation...
  2. Java version is the same on my VDI and jenkins agent
  3. As I said, it does passes once per 5 runs, but it makes life and delivery really tuff...
  4. It happens every time on the same component tests, so clearly something is wrong there...

I want to start debug the issue by adding more debug info to the file, so maybe I'll get more information from the jenkins, but I don't know where to start.

The file has 434 lines of code, but I don't have a clue on which line I should start to add more info. unfortunately, I can't share it due to security issue, but I was wonder if you can give me tips on how to start or where/what to search

0

There are 0 best solutions below