GitXplorerGitXplorer
j

cause_crash_dump

public
1 stars
0 forks
0 issues

Commits

List of commits on branch main.
Verified
43d51f707141ac5136cddd2d71ab44a885f41d20

Initial commit

jjthelin committed 3 years ago

README

The README file for this repository.

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.

./build.sh

To Test

Run the test.sh script.

./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