Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Bun 8 min read Deep dive mediumAdept

bun.report is Bun's new crash reporter

Bun v1.1.5 replaces unsymbolicated crash output with a compact ~150-byte bun.report URL that encodes platform, subcommand, commit SHA, a 64-bit feature-usage bitfield, crash type and message, and ASLR-adjusted stack addresses as base64 VLQs, with no personal information. Instead of shipping 9–250 MB of debug symbols or uploading core dumps, Bun computes module-relative addresses using platform APIs (GetModuleHandleExW, dl_iterate_phdr, dyld image slide). A server then fetches symbols by commit and symbolizes them with llvm-symbolizer before pre-filling a GitHub issue. Zig comptime reflection generates the packed feature bitfield automatically from a struct of counters.

Assumes: stack traces and debug symbolsASLRZig comptime basics

Related posts

  • Bun v1.1.16

    Bun mediumAdept

    Bun v1.1.16 fixes 41 bugs and adds lcov output for `bun test --coverage`, configurable in bunfig.toml. It also adds SSH-authenticated installs from private git repositories such as GitLab and Bitbucket, and a `--sourcemap=linked` option for `bun build`. Switching base64 decoding to simdutf makes `Buffer.from(string, "base64")` 6x–30x faster on large inputs. Other fixes cover N-API modules that reassign `module.exports`, `bun:sqlite` returning a wrong `changes` count from prepared statements, WebSocket error messages and crashes, and transpiler handling of non-ASCII and zero-width characters. Internally, Bun moved to Zig 0.13, which brings a WTF-16 path fix on Windows and a cross-platform `zig-check` build target.

  • Bun v1.1.7

    Bun mediumAdept

    Bun v1.1.7 fixes 28 bugs and adds glob patterns in package.json workspaces (via Bun.Glob), asymmetric matcher support in expect.extend's this.equals, and a working bunx --version. Several fixes come with root causes: a SIMD invalid memory access in Zig's std.mem.indexOfScalarPos crashing Windows startup, a misassumed 8-byte alignment of FILE_DIRECTORY_INFORMATION, threadlocal destructors running during std::quick_exit with live Workers, an uninitialized C++ integer corrupting stacktrace line numbers, and a memory leak from unread Bun.serve() request bodies since v1.0.30. Smaller changes include WebSocket close code 1015 on TLS failures, a ServerWebSocket shrink from 32 to 24 bytes, and adding clang-analyzer to CI.

  • Bun v1.2.1

    Bun mediumAdept

    Bun v1.2.1 fixes 32 bugs and adds S3 storage class support, X25519 key generation in crypto.generateKeyPair, Node's --zero-fill-buffers flag, indented inline snapshots in bun test, and a bunfig option to disable minification for HTML imports. The most technical change fixes GC memory accounting: WebKit reports a ref-counted string's cost as its byte length divided by its reference count, so Bun's Zig bindings, which briefly held an extra reference, under-reported string memory (a 64 KB file read reported as 32 KB). A new single-step createUTF8ForJS pattern avoids that extra reference. Other fixes cover fs.Stats and bigint fstat parity with Node, EINTR retries in fs reads and writes, a child_process spawn race, Worker reliability, and memory leaks in Bun.serve() and Bun.pathToFileURL caused by refcount mistakes.

  • Bun v0.6.14

    Bun mediumAdept

    Bun v0.6.14 expands Node.js `process` compatibility with `memoryUsage()`, `cpuUsage()`, signal and exit/beforeExit events, `process.kill`, uid/gid getters, and the deprecated `process.assert` and undocumented `reallyExit` used by some npm packages. It also fixes TypeScript decorators on anonymous default exports, `fetch()` with slashless URLs, class display in `console.log`, and two `Error.captureStackTrace` crashes. One crash came from uninitialized memory reaching the sourcemapper; the other came from GC allocations during fast-path array construction of `CallSite` objects. Smaller fixes cover `node:fs` `throwIfNoEntry`, non-deterministic symbol renaming in `bun build`, `randomUUID()` metadata bits, and several stream and crypto bugs.

  • Bun v1.3.10

    Bun mediumAdept

    Bun v1.3.10 replaces its npm-based REPL with a native Zig REPL that supports top-level await, imports, history and tab completion. It also adds full TC39 stage-3 standard decorators, self-contained HTML output via `--compile --target=browser`, native Windows ARM64, and a global `--retry` flag for `bun test`. Bundler changes include barrel-file import optimization (automatic for `sideEffects: false` packages) and leaner module wrappers that cut 11% of heap objects on a large React app. Runtime changes include mTLS keepalive pooling, a JavaScriptCore upgrade (168x faster deep rope slicing, a faster `endsWith`), and structuredClone fast paths up to 25x faster for dense primitive arrays.

The quest for software engineering knowledge.

Look:
Layout: