I have a basic service deployed as a Docker container on the DigitalOcean App Platform using oven/bun. The service acts as a proxy for incoming requests, modifying headers and verifying requests as needed. It relies on the built-in serve function, along with http-status-codes and jsonwebtoken as dependencies. The service is configured to run with BUN_CONFIG_MAX_HTTP_REQUESTS=1024.
The service occasionally encounters segmentation faults, an example of which is provided.
How can we reproduce the crash?
I have a basic service deployed as a Docker container on the DigitalOcean App Platform using
oven/bun
. The service acts as a proxy for incoming requests, modifying headers and verifying requests as needed. It relies on the built-in serve function, along withhttp-status-codes
andjsonwebtoken
as dependencies. The service is configured to run withBUN_CONFIG_MAX_HTTP_REQUESTS=1024
.The service occasionally encounters segmentation faults, an example of which is provided.
Relevant log output
Stack Trace (bun.report)
Bun v1.1.25 (
fe62a61
) on linux x86_64_baseline [RunCommand]Segmentation fault at address 0x2AD498016D40
http.zig:0
:src.http.HTTPThread.processEvents
http.zig:862
:Thread.PosixThreadImpl.spawn__anon_142319.Instance.entryFn