Hacker News new | ask | show | jobs
by postalrat 1128 days ago
I deployed a small non critical service with bun. So far constant (but slow) memory leaks and an 80% chance of segfault when starting up. Will try a few more versions of bun then move it to node for a while until bun matures a bit.
1 comments

wow thats rough

i'm sorry

can you file an issue with some code that reproduces it? will take a look

It's all easily reproducible. I'll double check my code but its not too complex.

The service subscribes to redis messages, accepts websocket connections, authenticates the connections, then broadcasts messages through the websockets. Maybe around 1200 or so websocket connections per server.

I did upgrade to bun 0.6.1. Haven't seen the segvault on startup yet but still seeing the memory leak. Maybe even slightly faster than before. Will check my code to see if it could be causing the issue.
Can you point us to the code so we can figure out where the memory leak originates from?