oven-sh/bun · error · Error
Non-zero exit code in file
Error message
Non-zero exit code in file ${file}, runtime: ${runtime} What it means
Thrown by the benchmark runner after spawning a snippet file under a given runtime when the child process exits with a non-zero code. It means the benchmarked code itself crashed or failed under that runtime (or the runtime failed to start), not a harness error; the failing file and spawn command are printed to stderr before the throw.
Solutions
- Re-run the printed command manually to see the actual crash output
- Check whether the benchmark depends on features unavailable in that runtime
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at bench/snippets/runner-entrypoint.js:169 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of oven-sh/bun@8c5296ac45 (2026-08-16).
Data as JSON: /api/errors/c55127fcda7e47d2.
Report an issue: GitHub.
Appendix: source
Thrown at bench/snippets/runner-entrypoint.js:169
benchmarkID,
result: json,
runtime: runtime,
timestamp,
elapsed: spawnElapsed,
runtimeVersion: (runtime === "bun"
? `${Bun.version}-${Bun.revision}`
: String(json?.runtime).split(" ").at(1)
).replace(/^v/, ""),
};
} catch (e) {
console.error("Failing file", file);
console.error(JSON.stringify(cmds[runtime]));
console.error(stdout.toString());
throw e;
}
if (exitCode !== 0) {
throw new Error("Non-zero exit code in file " + JSON.stringify(file) + ", runtime: " + JSON.stringify(runtime));
}
}
}
const db = Database.open(process.RUNNER_DB_PATH ?? `runs-${process.platform}-${process.arch}.db`);
db.run(`CREATE TABLE IF NOT EXISTS benchmarkResults (
id INTEGER PRIMARY KEY AUTOINCREMENT,
results TEXT NOT NULL
);`);
db.run(`
CREATE TABLE IF NOT EXISTS runs (
id INTEGER PRIMARY KEY AUTOINCREMENT,
runtime TEXT NOT NULL,
runtimeVersion TEXT NOT NULL,
benchmarkID TEXT NOT NULL,
timestamp INTEGER NOT NULL,
elapsed REAL NOT NULL,
benchmarkResultID INTEGER NOT NULLView on GitHub (pinned to 8c5296ac45)