crashchild

command
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Command crashchild is the test child process for the crash-proof integration test. It runs a 50-iteration loop with a SQLite store and a slow fake tool. Parent process SIGKILLs it mid-run; this binary is relaunched with -resume <loopID> to test the crash-resume path.

SP5 extension: -supervisor mode starts a parent loop that spawns 2 children, each counting to 10. Used by the crash-resume integration test with children.

Usage:

crashchild -db /path/to/db.sqlite [-resume <loopID>] [-journal /path/to/journal]
crashchild -db /path/to/db.sqlite -supervisor [-resume <loopID>]

On successful completion, prints: "COMPLETED loopID=<id> final=<n>" The journal file records each tool call (one entry per call), used to verify idempotent tools don't execute twice on resume.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL