WhatBrokeToday
GTA 6FAQ
Bun

Bun Custom Traceback Incorrect After Next Task Loop

minor

Is it fixed? Not yet.

Ongoing since Oct 28, 22:31 UTC. First reported Oct 28, 22:31 UTC.

What happened

Bun version 1.4.4+38afee6c8 exhibits a bug where custom tracebacks incorrectly point to the wrong function after a next task loop when rethrowing a saved error. Developers using setImmediate or asynchronous task loops may observe inaccurate stack traces.

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.

Timeline

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

    Bun's custom traceback is wrong by after next task loop

    Source

Evidence

1 report · 1 GitHubShow
  1. [1]
    GitHub First report
    Bun's custom traceback is wrong by after next task loop(opens GitHub issue in a new tab)

    What version of Bun is running? 1.4.4+38afee6c8 What platform is your computer? Darwin 27.0.0 arm64 arm What steps can reproduce the bug? test.js: var error; function rightfunction() { try { / should point to this line / throw new Error(); } catch (e) { console.error(e.stack); error = e; } } function wrongfunction() { / should not point here / throw error; } rightfunction(); setImmediate(wrongfunction); $ node test.js Error at rightfunction (/Users/dc047/Desktop/test/test.js:4:47) at…

    by dragoncoder047 0upvotes 2comments

FAQ

What happened in the Bun issue?

Bun version 1.4.4+38afee6c8 exhibits a bug where custom tracebacks incorrectly point to the wrong function after a next task loop when rethrowing a saved error. Developers using setImmediate or asynchronous task loops may observe inaccurate stack traces.

What is affected by the Bun issue?

Bun (versions: 1.4.4+38afee6c8).

When did the Bun issue start and end?

It started Oct 28, 22:31 UTC and is still ongoing (21 d 6 h 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 1 report from 1 independent source.