eclipse-iceoryx / eclipse-iceoryx/iceoryx

Using kill causes the program to crash

Open
#2,402 5 comments 0 reactions 0 assignees View on GitHub
needs info
Dominant language
C++
Stars
2.2k
Forks
492
Avg merge
18h 57m
Merged PRs (30d)
1

Description

## Required information

**Operating system:**
E.g. Ubuntu 18.04 LTS

**Compiler version:**
E.g. GCC 7.4.0

**Eclipse iceoryx version:**
v2.0.3

**Observed result or behaviour:**
I use the script to kill my process for stress test
```
for i in {0..10000}
do
pid=$(printf "%d" $(ps | grep test-demo | cut -c 1-6))
for j in {0..5}
do
kill -15 $pid
done
sleep 10
done
```

my process will get the error and crash
```
_ZSt9terminatev(/lib/libstdc++.so 0x14186000)
_ZN3iox12ErrorHandler17reactOnErrorLevelENS_10ErrorLevelEPKc(/usr/lib/libiceoryx_hoofs.so 0x140a0000)
_ZN3iox12ErrorHandler14defaultHandlerENS_5ErrorERKNSt3__18functionIFvvEEENS_10ErrorLevelE(/usr/lib/libiceoryx_hoofs.so 0x140a0000)
_ZN3iox12errorHandlerENS_5ErrorERKNSt3__18functionIFvvEEENS_10ErrorLevelE(/usr/lib/libiceoryx_hoofs.so 0x140a0000)
_ZN3iox3cxx8internal7RequireEbPKciS3_S3_(/usr/lib/libiceoryx_hoofs.so 0x140a0000)
_ZN3iox10concurrent12PeriodicTaskINS_3cxx14MethodCallbackIvJEEEE3runEv(/usr/lib/libiceoryx_posh.so 0x13fb1000)
```

**Expected result or behaviour:**
no crash

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.