https://github.com/jthelin/cause_crash_dump
A small utility program that will run and then crash. Primarily for use with testing any crash dump collection utilities and scripts.
https://github.com/jthelin/cause_crash_dump
cpp crash-dump linux
Last synced: about 2 months ago
JSON representation
A small utility program that will run and then crash. Primarily for use with testing any crash dump collection utilities and scripts.
- Host: GitHub
- URL: https://github.com/jthelin/cause_crash_dump
- Owner: jthelin
- License: mit
- Created: 2021-12-23T02:45:03.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-06-16T19:07:33.000Z (about 3 years ago)
- Last Synced: 2025-07-12T02:55:56.765Z (12 months ago)
- Topics: cpp, crash-dump, linux
- Language: Shell
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cause_crash_dump
A small utility program that will run and then crash. Primarily for use with testing any crash dump collection utilities and scripts.
## To Build
Run the `build.sh` script.
```shell
./build.sh
```
## To Test
Run the `test.sh` script.
```shell
./test.sh
```
and you should be some console output similar to this:
```
$ ./test.sh
-- Increase soft-limit for core dump file size
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 2560
pipe size (512 bytes, -p) 1
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 1392
virtual memory (kbytes, -v) unlimited
-- Run application
This program will core dump in ....
... 3 ... 2 ... 1 ... Boom!
./test.sh: line 25: 95810 Floating point exception: 8 ./src/cause_crash_dump
-- Application failed as expected
```