diff options
author | Matt Hunter <m@lfurio.us> | 2025-09-03 01:21:34 -0400 |
---|---|---|
committer | Matt Hunter <m@lfurio.us> | 2025-09-07 21:03:26 -0400 |
commit | 0096d1896083f0df73e086b1e086ec52f610b7bf (patch) | |
tree | 91cc89f685a6dedc7ef57e784ff1c3c80df24b03 /arch | |
parent | 95364d5a74eb9977b946b4a520eb2624f2c788ab (diff) | |
download | misplays-master.tar.gz misplays-master.zip |
Previously, there was a bug on PTRACE_EVENT_FORK in which the forked
child process inherits all installed breakpoints due to their interrupt
instructions being resident in memory at the time of the fork, but the
debugger initializes the new process model with an empty list of
breakpoints.
There are some differing opinions on what the correct behavior ought to
be here, but at a minimum these two realities must be brought into sync
to prevent data corruption or any process crash of the fork child.
For the time being, manually "uninstall" the residual breakpoint
interrupts from a newly forked child that we attach to, leaving it with
no breakpoints of any kind. Process model initialization in the
debugger is left as-is.
Signed-off-by: Matt Hunter <m@lfurio.us>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions