-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(SwingSet): improve slogging during replay
* during transcript replay, record (simulated) syscalls and delivery results in the slog * previously we only recorded deliveries * this captures GC syscalls, to investigate divergence bugs * it also records metering results for the delivery, for the same reason * during normal delivery, record syscall data even if the syscall fails * vat-fatal syscall errors, like dropping an object that was already retired, now capture the vat's attempted syscall, even if the translation into kernelspace failed, or the kernelSyscallHandler invocation failed * previously we lost all record of these syscall attempts, making it hard to debug the reason for vat termination * slog entries for replayed deliveries/syscalls look just like the normal ones, but now have a `replay` boolean to distinguish the two * replayed deliveries do not have a `crankNum`, since we deliberately do not record that in the transcript, so we don't know the value during replay * we compute a `deliveryNum` for each replayed message from the transcript position offset, which ought to match the original. This might need some refactoring to make fewer (or more) assumptions about the shape of a StreamPosition. refs #3428 (not as a fix, but as a critical debugging tool)
- Loading branch information
Showing
3 changed files
with
58 additions
and
32 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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