Repository navigation
Debugger Fuzzer - #1244
Open
UvuvDev wants to merge 2 commits into
Open
Debugger Fuzzer#1244UvuvDev wants to merge 2 commits into
UvuvDev wants to merge 2 commits into
Conversation
UvuvDev
force-pushed
the
test_debugger_fuzzing
branch
from
November 22, 2026 02:17
2798e4a to
bfd7002
Compare
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
force-pushed
the
test_debugger_fuzzing
branch
from
November 23, 2026 17:15
bfd7002 to
2ab717e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.