Files
reverse-engineering-anything/src/jeb
morluto 55c7eaa063 fix(providers): settle debugger and engine close races (#14783)
* fix(providers): settle debugger and engine close races

- Re-admit a JEB connection after disposal so a close or cancellation that
  arrived meanwhile cannot resurrect a transport.
- Mark a GDB session as closing before every debugger stop, so an incomplete
  stop is retried as cleanup, and admit one close past a full command queue.
- Fail a Rizin detach that would wait behind an active command, as GDB does,
  instead of timing out and running an orphaned detach later.
- Run a forced Ghidra stop requested during a graceful close, and check reply
  size against the largest in-flight request ceiling.
- Evict a failed or cancelled IDA configuration read from its scope cache.
- Serialize Cutter commands per session so an unknown completion gates the
  next command, and stop the Cutter bridge closing a descriptor its stream
  already owns.

* fix(providers): keep the Cutter gate and interrupt a stalled Ghidra close

- Keep a session's Cutter turn until the chain of a waiter cancelled before
  its turn settles, so a later command still queues behind the running one.
- Fail the bridge requests a graceful Ghidra close is waiting on when a
  forced stop is requested, so a stalled checkpoint cannot block the stop.

* test(ghidra): cover a forced stop interrupting a stalled graceful close

Add a fake bridge mode that holds the final close checkpoint while a tool
never answers. A caller cancelling that tool during the held close must
still stop the process; without the escalation the close never settles.
2026-11-26 12:37:13 -05:00
..