Rank, 14 days: 10 on the Bun sheet
2 people reported

All time, since Oct 23.

Globals retained after addon load

“Memory grows linearly with the number of files until the worker runs out of RAM.”

Is this your bug? What gets counted gets fixed. Pile on.

Paste this into your agent. It files your report, with your error and version.

I hit this bug: rapsheet.dev/sheets/bun/issues/25087/file
Follow it to file my report. Show me the text before you send.

No install. No account. Public and anonymous. The link asks your agent for one report, nothing else. What it sends

Test file globals stay alive under --isolate when native addons load. Each file that loads a native addon keeps its retired global object, and everything reachable from it, alive; memory grows with file count.

Is this your bug?

File my report
Where
bun test --isolate
Versions
1.4.4. Still reported on the newest version, 1.4.4.
Platforms
Linux
How bad
Breaks a normal workflow.

Not quite your bug?

  1. Test memory grows per file3 people
  2. Directory fds leak during test runs2 people

Original reports2, newest first

  1. bun test --isolate: loading a napi-rs N-API addon keeps each file's retired global (and its memory) alive#47914
  2. bun test --isolate keeps every test file's global alive once the file loads a native addon with process.dlopen#46561

Do you work on Bun?

Claim its RAP Sheet to see what your users report and answer them in one place.