-
Notifications
You must be signed in to change notification settings - Fork 8
Debugging Tests
Florian Rüchel edited this page Apr 2, 2015
·
1 revision
When running tests and one segfaults, we want to find out why. This is a small How-To.
Let's say our tests fail, specifically tests/test_message
fails. At least one test reports segfaults. Here's how to run that test to debug it:
CK_FORK=no gdb tests/test_message
run
bt
The last two lines are in GDB and should run the program until a segfault happens, then we can view the backtrace to see which line failed.