Crashlib provides linkable functions for crashing programs written in C or C++, possibly taking the operating system down with them.
It serves no known purpose. To our knowledge it is not useful in any way.
Four functions are provided:
-
Divide by zero:
crash_divbyzero() -
Segmentation fault:
crash_segfault() -
Infinite loop:
crash_loop() -
Fork-bomb:
crash_forkbomb().
The libtool binary must be installed. On a Debian-based system, that would entail running the following command:
sudo apt-get -y install libtool-bin
-
Build the shared library.
make -
Install the shared library.
make install -
(Optional) Build the test application. Step 2 must have succeeded for this to work.
make testapp -
(Optional) Run the test application, which will produce a segmentation fault. Should be harmless.
./testapp
make uninstall
-
2002-10-31. Version 1.0: Original version.
-
xxxx-xx-xx. Version 1.0.1: Can't remember. Probably nothing of any importance.
-
2019-01-05. Version 1.0.2: License changed from GPL to MIT. Testapp created. PREFIX-support in Makefile. README updated.
-
2020-02-18: Version 1.0.3: Typo and formatting error in README fixed.
- Helgi Hrafn Gunnarsson [email protected]