Bun

Bun issue (Dec 4): Bun Windows Exit Code Reporting Bug for Values Above 255

minor

Is it fixed? Not yet.

Ongoing since Dec 4, 15:30 UTC. First reported Dec 4, 15:30 UTC.

What happened

On Windows, Bun incorrectly reports child process exit codes and process.exitCode values above 255 (such as 256, 257, 3010, and 0xFFFD0000) as truncated or incorrect values instead of their actual code. The issue affects developers running child processes, compiled executables, or tests on Windows platforms.

What caused it?

Under active investigation. No report has identified a root cause yet.

No verified workaround yet

None of the linked reports describe a mitigation. This page updates when one appears.

Outage timeline

  1. Investigating(current)
  2. Workaround available(upcoming)
  3. Resolved(upcoming)
  1. First report on GitHub issue

    Windows: a child's exit code above 255 is not reported whole (exit 256, 257 and 0xFFFD0000 read as 1)

    Source

Reports of this outage

2 reports · 2 GitHubShow
  1. [1]
    GitHub First report
    Windows: a child's exit code above 255 is not reported whole (exit 256, 257 and 0xFFFD0000 read as 1)(opens GitHub issue in a new tab)

    What version of Bun is running? 1.4.6-canary.1+97931a5cd What platform is your computer? Microsoft Windows NT 10.0.26300.0 x64 What steps can reproduce the bug? I found this when a test of mine expected a powershell.exe -File run whose script path did not exist to fail: Windows PowerShell exited -196608 (0xFFFD0000), and Bun 1.4.5 reported the exit as 0. Reproducer: https://gist.github.com/YevheniiKotyrlo/b80a8a05b4d4d6647fb9f2ad7349bad2 Clone the gist and run bun repro.mjs on Windows. It runs…

    by YevheniiKotyrlo 0upvotes 0comments

  2. [2]
    GitHub
    process.exitCode above 255 is truncated to its low byte: on Windows a process ends with 194 instead of 3010(opens GitHub issue in a new tab)

    What version of Bun is running? 1.4.5 What platform is your computer? Windows 11 and Windows Server 2025 (GitHub Actions windows-latest), x64. Linux x64 for the getter part. What steps can reproduce the bug? exit.js: process.exitCode = 3010; // ERROR_SUCCESS_REBOOT_REQUIRED, as msiexec and other Windows installers exit In PowerShell on Windows: bun build --compile exit.js --outfile exit.exe .\exit.exe; $LASTEXITCODE On any platform: bun -e 'process.exitCode = 3010;…

    by lavaman131 0upvotes 1comments94% match

Bun issue FAQ

What happened in the Bun issue, and why?

Ongoing since Dec 4, 15:30 UTC. No cause has been published yet; this page adds it once the vendor or a report explains it.

What is affected by the Bun issue?

Bun (versions: 1.4.5, 1.4.6-canary.1+97931a5cd).

When did the Bun issue start and end?

It started Dec 4, 15:30 UTC and is still ongoing (5 h 20 min so far). This page updates as it develops.

How do I get alerts for Bun?

Subscribe to the Bun RSS feed for every new Bun incident, or connect an AI assistant to WhatBrokeToday over MCP and ask whether Bun is down. Bun feed

Where does this information come from?

WhatBrokeToday collects public status pages, developer community reports and security advisories, groups the ones about the same problem, and links every report under Evidence on this page. This one has 2 reports from 1 independent source.