Bun

Bun issue (Nov 26): Bun macOS arm64 Worker Termination Leaks kqueue FD and Memory

medium

Is it fixed? Not yet.

Ongoing since Nov 26, 04:23 UTC. First reported Nov 26, 04:23 UTC.

What happened

Terminating or closing a Web Worker on macOS arm64 in Bun leaks 1 kqueue file descriptor and 528 KiB of memory per worker. This affects developers running Bun 1.3.14+0d9b296af on macOS Apple Silicon.

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

    macOS arm64: terminating or closing a Worker leaks 1 kqueue fd and 540,672 bytes (528 KiB) per Worker

    Source

Reports of this outage

1 report · 1 GitHubShow
  1. [1]
    GitHub First report
    macOS arm64: terminating or closing a Worker leaks 1 kqueue fd and 540,672 bytes (528 KiB) per Worker(opens GitHub issue in a new tab)

    What version of Bun is running? 1.3.14+0d9b296af What platform is your computer? Darwin 25.5.0 arm64 arm (macOS Apple Silicon) What steps can reproduce the bug? Create a minimal file-backed worker worker.js: self.onmessage = () => postMessage(1); Spawn and terminate (or self-close) N Workers sequentially in a single Bun process, then inspect the live process with lsof -p <pid> | grep KQUEUE and heap -s <pid>: // repro.js const workerUrl = new URL("./worker.js", import.meta.url).href; for (let…

    by simuleite 0upvotes 0comments

Bun issue FAQ

What happened in the Bun issue, and why?

Ongoing since Nov 26, 04:23 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.3.14+0d9b296af).

When did the Bun issue start and end?

It started Nov 26, 04:23 UTC and is still ongoing (1 d 12 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.