Getting SIGSEV with elastic apm (version 1.35.0)

Hi,
Getting SIGSEV when using elastic apm agent in spring web application. Application crashes after
23-24 hours of use with SIGSEV.
Without apm agent , application is working fine.

JDK - Corretto-17.0.6.10.1

PID error logs-

urrent thread (0x00007f136000ebb0):  GCTaskThread "GC Thread#1" [stack: 0x00007f1332cdd000,0x00007f1332ddd000] [id=6982]

Stack: [0x00007f1332cdd000,0x00007f1332ddd000],  sp=0x00007f1332ddba00,  free space=1018k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x7623c0]  G1ParScanThreadState::trim_queue_to_threshold(unsigned int)+0x1a0
V  [libjvm.so+0x77e181]  G1ScanHRForRegionClosure::scan_heap_roots(HeapRegion*)+0x911
V  [libjvm.so+0x778363]  G1RemSet::scan_heap_roots(G1ParScanThreadState*, unsigned int, G1GCPhaseTimes::GCParPhases, G1GCPhaseTimes::GCParPhases, bool)+0x1c3
V  [libjvm.so+0x715e6b]  G1EvacuateRegionsTask::scan_roots(G1ParScanThreadState*, unsigned int)+0x4b
V  [libjvm.so+0x7163f9]  G1EvacuateRegionsBaseTask::work(unsigned int)+0x89
V  [libjvm.so+0xfb9b9c]  GangWorker::loop()+0x5c
V  [libjvm.so+0xfb9bee]
V  [libjvm.so+0xf109d9]  Thread::call_run()+0x89
V  [libjvm.so+0xc460a1]  thread_native_entry(Thread*)+0xe1


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

Register to memory mapping:

RAX=0x00007f13dc08547c points into unknown readable memory: 00 00 00 00
RBX=0x0000000585913185 is pointing into object: java.util.concurrent.ConcurrentHashMap$Node
{0x0000000585913170} - klass: 'java/util/concurrent/ConcurrentHashMap$Node'
 - ---- fields (total size 4 words):
 - final 'hash' 'I' @12  2140888767 (7f9b5ebf)
 - final 'key' 'Ljava/lang/Object;' @16  "co.elastic.apm.exception"{0x000000056337a098} (ac66f413)
 - volatile 'val' 'Ljava/lang/Object;' @20
[error occurred during error reporting (printing register info), id 0xb, SIGSEGV (0xb) at pc=0x00007f13e31fa447]

Please try the latest Java agent, that Corretto bug was worked around in 1.36.0

1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.