Skip to content

Debugger Fuzzer - #1244

Open
UvuvDev wants to merge 2 commits into
devfrom
test_debugger_fuzzing
Open

UvuvDev wants to merge 2 commits into
devfrom
test_debugger_fuzzing

Conversation

@UvuvDev

@UvuvDev UvuvDev commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

The idea is that it queues a bunch of random operations and tries to break either the state of the debugger or cause crashes. It's not accuracy testing yet since I think that is out of scope for this PR. This can let us catch lots of bugs before users do and can also be extended surely to see where performance struggles the most.

@UvuvDev
UvuvDev force-pushed the test_debugger_fuzzing branch from 2798e4a to bfd7002 Compare November 22, 2026 02:17
Random sequences of session, breakpoint, thread, register, memory, setup and
fault operations drive every adapter the host can run, on up to three sessions
at once, and checks that hold for every adapter run after each operation. A
campaign runs the examples from a seed in worker processes, keeps going past
failures, crashes and hangs, and reports each distinct failure with the
shortest sequence that reproduces it. A test is skipped, with the reason, when
an adapter or a test program is not available on the host. The campaigns are
skipped unless pytest is given --fuzz, so a plain test run never starts them,
and the fuzzer's own unit tests need no adapter.
signal_target raises signals that its handlers count and exits 0 only if every
handler ran as often, and in the order, that the signals it raised require.
adapter_signal_fuzz_test.py adds breakpoints in those handlers to the fuzzer's
machine and fails if the program exits nonzero or a breakpoint stop happens
where nothing asked for one. A machine offers only the modes its adapter
supports, and the test is skipped, with the reason, where signal_target has
not been built.
@UvuvDev
UvuvDev force-pushed the test_debugger_fuzzing branch from bfd7002 to 2ab717e Compare November 23, 2026 17:15
@UvuvDev
UvuvDev requested a review from xusheng6 November 30, 2026 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant