Skip to content

Instantly share code, notes, and snippets.

@madebr
Last active April 28, 2017 13:07
Show Gist options
  • Save madebr/8013fe5d456192cb995bcd206558e38f to your computer and use it in GitHub Desktop.
Save madebr/8013fe5d456192cb995bcd206558e38f to your computer and use it in GitHub Desktop.
Boost Unit Test Framework Crash
#define BOOST_TEST_MODULE module
#include <boost/test/included/unit_test.hpp>
/*
* Compile with:
*
* g++ main.cpp -lboost_unit_test_framework -o crash
*
* Run with:
*
* ./crash
*
* Crash:
* $ ./crash
* Running 1 test case...
*
**** No errors detected
**** Error in `./crash': corrupted double-linked list: 0x0000000000bbfd70 ***
*======= Backtrace: =========
*...
*======= Memory map: ========
*...
*/
BOOST_AUTO_TEST_CASE(who) {
BOOST_TEST(true);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment