
memory leak in bun version 1.3.9 to 1.3.12 in some virtual environments
I've been trying to run a project of mine for quite a while in my server, but it failed to run bun every time, and when looking on google for any answers, I found github issues with no human answers (all tests been done by AI).
turns out, when going back to older versions:
on version 1.3.8, running bun -e "console.log('hello')" returns hello after 0.032s
on versions 1.3.9-1.3.12, running bun -e "console.log('hello')" hangs. checking htop shows that bun is filling up the memory until it runs out of memory, where the kernel kills bun, returning killed.
although on versions 1.3.9-1.3.12, bun install and bun repl work with no issues.
also, a note about AI in this case:
when asking different AIs about this (Gemma 4 31B, Nemotron 3 Super and GLM 5.1), they seem to suggest you to increase swap and RAM, increase the swappiness of the kernel and removing different memory guardrails of the kernel to stop OOM from happening, while the problem is clearly a memory leak in the code that can't be fixed by even disabling OOM killer entirely.
this have also been the case with "robobun", the automated issue checking bot that tries to reproduce the issue and respond to the user with a solution before the team responds. this bot can't seem to reproduce this issue on it's end, so it blames the linux configuration of the user to be the problem. (this bot runs on claude code apparently)
if you're hitting this problem and don't know what to do, try version 1.3.8 until the issue is resolved.