GitXplorerGitXplorer
j

cause_crash_dump

public
1 stars
0 forks
0 issues

Commits

List of commits on branch main.
Unverified
627fd50b3ea80b399717c682363d38d78395ca7c

Add WSL-Clang-Debug and WSL-GCC-Debug build definitions for Visual Studio.

jjthelin committed 2 years ago
Verified
f791de08bf6fa3fc4d8a006cefe305f13d3bc875

cpack-build (#2)

jjthelin committed 3 years ago
Verified
c86b9db54b89d87c8110b69fe3ebf3d5e95c89d9

Merge pull request #1 from jthelin/github-action-cmake-build

jjthelin committed 3 years ago
Unverified
fa8042d4892a900364a860c2645d84eb05682889

Add GitHub Actions build script for cmake build / test.

jjthelin committed 3 years ago
Unverified
cc4e551630c3992f9adb35a6c6b4af9eaeb88f40

Only require minimal cmake version 3.13

jjthelin committed 3 years ago
Unverified
63986f1ccc492062f2d6f5f8ce08d89fac13a218

Initial code drop

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