oven-sh/bun · error · Error
cores are being piped not saved
Error message
cores are being piped not saved
What it means
coredump-upload path: kernel.core_pattern starts with '|', so cores are piped to a userspace handler instead of being written to disk — the runner has no core files to upload and refuses rather than silently skipping.
Solutions
- Configure core_pattern to a file path (e.g. /var/bun-cores/...%e-%p.core) in bootstrap.sh
- Disable coredump-upload if piping is intentional
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at scripts/runner.node.mjs:285 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/4ff7e5531b753c16.
Report an issue: GitHub.
Appendix: source
Thrown at scripts/runner.node.mjs:285
}
if (doc.length < per_page) break;
}
console.log(`- PR ${BUILDKITE_PULL_REQUEST}, ${prFileCount} files, ${newFiles.length} new files`);
} catch (e) {
console.error(e);
}
}
}
let coresDir;
if (options["coredump-upload"]) {
// this sysctl is set in bootstrap.sh to /var/bun-cores-$distro-$release-$arch
const sysctl = await spawnSafe({ command: "sysctl", args: ["-n", "kernel.core_pattern"] });
coresDir = sysctl.stdout;
if (sysctl.ok) {
if (coresDir.startsWith("|")) {
throw new Error("cores are being piped not saved");
}
// change /foo/bar/%e-%p.core to /foo/bar
coresDir = dirname(sysctl.stdout);
} else {
throw new Error(`Failed to check core_pattern: ${sysctl.error}`);
}
}
let remapPort = undefined;
/**
* @typedef {Object} TestExpectation
* @property {string} filename
* @property {string[]} expectations
* @property {string[] | undefined} bugs
* @property {string[] | undefined} modifiers
* @property {string | undefined} comment
*/View on GitHub (pinned to 8c5296ac45)