Run test cases via gdb to catch stack trace.