Skip to content

Commit

Permalink
Ensure that CheriBSD testsuite runs drop to debugger on panic
Browse files Browse the repository at this point in the history
This is currently the default behaviour but it may change in the future.
Explicitly set the sysctl to ensure we get the expected output.
  • Loading branch information
arichardson committed Aug 4, 2023
1 parent 40cc410 commit fdc7645
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pycheribuild/boot_cheribsd/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -974,6 +974,8 @@ def _do_test_setup(qemu: QemuCheriBSDInstance, args: argparse.Namespace, test_ar
test_setup_function: "Optional[Callable[[CheriBSDInstance, argparse.Namespace], None]]" = None):
smb_dirs = qemu.smb_dirs
setup_tests_starttime = datetime.datetime.now()
# Print a backtrace and drop into the debugger on panic
qemu.run("sysctl debug.debugger_on_panic=1; sysctl debug.trace_on_panic=1")
# Enable userspace CHERI exception logging to aid debugging
qemu.run("sysctl machdep.log_user_cheri_exceptions=1 || sysctl machdep.log_cheri_exceptions=1")
if args.enable_coredumps:
Expand Down

0 comments on commit fdc7645

Please sign in to comment.