# Getting SIGSEV with elastic apm (version 1.35.0)

**URL:** <https://discuss.elastic.co/t/getting-sigsev-with-elastic-apm-version-1-35-0/330922>\
**Category:** APM\
**Tags:** java\
**Created:** [April 27, 2023, 8:39am UTC](https://discuss.elastic.co/t/getting-sigsev-with-elastic-apm-version-1-35-0/330922 "2023-04-27T08:39:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rkg1201](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rkg1201/32/120316_2.png) [@rkg1201](https://discuss.elastic.co/u/rkg1201)\
**Post date:** [April 27, 2023, 8:39am UTC](https://discuss.elastic.co/t/getting-sigsev-with-elastic-apm-version-1-35-0/330922/1 "2023-04-27T08:39:20Z")

</div>

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-

```auto
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]

```

---

<div class="post-metadata">

**Author:** ![Jack\_Shirazi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jack_shirazi/32/91641_2.png) [@Jack\_Shirazi](https://discuss.elastic.co/u/Jack_Shirazi)\
**Post date:** [May 2, 2023, 8:00am UTC](https://discuss.elastic.co/t/getting-sigsev-with-elastic-apm-version-1-35-0/330922/2 "2023-05-02T08:00:57Z")

</div>

Please try the latest Java agent, that Corretto bug was [worked around](https://github.com/elastic/apm-agent-java/blob/729372b03a6a9f8fb780a8e30d4c4ba659a55e7c/CHANGELOG.asciidoc?plain=1#LL102C1-L102C1) in 1.36.0

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 23, 2023, 4:01am UTC](https://discuss.elastic.co/t/getting-sigsev-with-elastic-apm-version-1-35-0/330922/3 "2023-05-23T04:01:32Z")

</div>

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