Open cholasimmons opened 2 weeks ago
Hello @cholasimmons. Please provide a minimal reproduction using a GitHub repository, Replit, or CodeSandbox. Issues marked with needs repro
will be closed if they have no activity within 3 days.
Added a sample repo for an ElysiaJS auth project, and a way to reproduce the docker error @Jarred-Sumner .
Note, this process used to work a couple of Bun's ago, maybe 1.1.8
api-1 | Bun v1.1.15 (b23ba1fe) Linux x64 (baseline) api-1 | Args: "bun" "run" "--watch" "src/index.ts" api-1 | Features: jsc Bun.stdin(2) tsconfig_paths tsconfig(3) api-1 | Builtins: "bun:main" "node:async_hooks" "node:buffer" "node:child_process" "node:crypto" "node:events" "node:fs" "node:fs/promises" "node:os" "node:path" "node:process" "node:string_decoder" "node:tty" "node:util" "node:util/types" api-1 | Elapsed: 593ms | User: 30311ms | Sys: 5472ms api-1 | RSS: 0.88GB | Peak: 0.21GB | Commit: 0.88GB | Faults: 0 api-1 | api-1 | panic(main thread): Segmentation fault at address 0x1A api-1 | oh no: Bun has crashed. This indicates a bug in Bun, not your code. api-1 | api-1 | To send a redacted crash report to Bun's team, api-1 | please file a GitHub issue using the link below: api-1 | api-1 | https://bun.report/1.1.15/Br1b23ba1fAqggggG24o6kE+1mO_4r5+6Dyr7/3Eyj++gF4g7ilF4izsgE__A2A0B api-1 | api-1 | --- Bun is auto-restarting due to crash [time: 1718876961921] ---
💔
@paperdave could i be doing something wrong?
api-1 | Bun v1.1.16 (bf7b327f) Linux x64 (baseline)
api-1 | Args: "bun" "run" "--watch" "src/index.ts"
api-1 | Features: jsc Bun.stdin(2) tsconfig_paths tsconfig(3)
api-1 | Builtins: "bun:main" "detect-libc" "node:async_hooks" "node:buffer" "node:child_process" "node:crypto" "node:events" "node:fs" "node:fs/promises" "node:os" "node:path" "node:process" "node:stream" "node:string_decoder" "node:tty" "node:util" "node:util/types"
api-1 | Elapsed: 1311ms | User: 11392ms | Sys: 2543ms
api-1 | RSS: 0.67GB | Peak: 0.16GB | Commit: 0.67GB | Faults: 480
api-1 |
api-1 | panic(main thread): Segmentation fault at address 0x1A
api-1 | oh no: Bun has crashed. This indicates a bug in Bun, not your code.
api-1 |
api-1 | To send a redacted crash report to Bun's team,
api-1 | please file a GitHub issue using the link below:
api-1 |
api-1 | https://bun.report/1.1.16/Br1bf7b327AqggggG216ymE+1mO_4rz28Dypt45Eyhw3iF4+s7mF4wxkiE__A2A0B
api-1 |
api-1 | --- Bun is auto-restarting due to crash [time: 1719147692789] ---
api-1 | ============================================================
A clean installation of Elysia (using Bun) works fine in docker compose. but that's with no PrismaORM, No Lucia Auth, no MinIO Storage. Could the issue be emanating from there @paperdave ?
Bun v1.1.16 ([`bf7b327`](<https://github.com/oven-sh/bun/tree/bf7b327f68568104a5e40c1944b7b255b02f0745>)) on linux x86_64_baseline [RunCommand]
Segmentation fault at address 0x0000001A
- [`ld-temp.o:0`](<https://github.com/oven-sh/bun/blob/bf7b327f68568104a5e40c1944b7b255b02f0745/ld-temp.o#L0>): `WTF::jscSignalHandler`
- `??`
- *1 unknown/js code*
- [`ld-temp.o:0`](<https://github.com/oven-sh/bun/blob/bf7b327f68568104a5e40c1944b7b255b02f0745/ld-temp.o#L0>): `llint_call_javascript`
- [`ld-temp.o:0`](<https://github.com/oven-sh/bun/blob/bf7b327f68568104a5e40c1944b7b255b02f0745/ld-temp.o#L0>): `JSC::Interpreter::executeCall`
- [`ld-temp.o:0`](<https://github.com/oven-sh/bun/blob/bf7b327f68568104a5e40c1944b7b255b02f0745/ld-temp.o#L0>): `JSC::runJSMicrotask`
- [`ld-temp.o:0`](<https://github.com/oven-sh/bun/blob/bf7b327f68568104a5e40c1944b7b255b02f0745/ld-temp.o#L0>): `JSC::VM::drainMicrotasks`
- [`BunProcess.cpp:2559`](<https://github.com/oven-sh/bun/blob/bf7b327f68568104a5e40c1944b7b255b02f0745/src/bun.js/bindings/BunProcess.cpp#L2559>): `Bun::jsFunctionDrainMicrotaskQueue`
- *2 unknown/js code*
<!-- from bun.report: 2n9ei43BJ3HkWzRp3nGQ -->
Bun v1.1.17 ([`bb66bba`](<https://github.com/oven-sh/bun/tree/bb66bba1bf6d57983e7efef7ab706bce12137028>)) on linux x86_64_baseline [RunCommand]
Segmentation fault at address 0x0000001A
- [`ld-temp.o:0`](<https://github.com/oven-sh/bun/blob/bb66bba1bf6d57983e7efef7ab706bce12137028/ld-temp.o#L0>): `WTF::jscSignalHandler`
- `??`
- *1 unknown/js code*
- [`ld-temp.o:0`](<https://github.com/oven-sh/bun/blob/bb66bba1bf6d57983e7efef7ab706bce12137028/ld-temp.o#L0>): `llint_call_javascript`
- [`ld-temp.o:0`](<https://github.com/oven-sh/bun/blob/bb66bba1bf6d57983e7efef7ab706bce12137028/ld-temp.o#L0>): `JSC::Interpreter::executeCall`
- [`ld-temp.o:0`](<https://github.com/oven-sh/bun/blob/bb66bba1bf6d57983e7efef7ab706bce12137028/ld-temp.o#L0>): `JSC::runJSMicrotask`
- [`ld-temp.o:0`](<https://github.com/oven-sh/bun/blob/bb66bba1bf6d57983e7efef7ab706bce12137028/ld-temp.o#L0>): `JSC::VM::drainMicrotasks`
- [`BunProcess.cpp:2558`](<https://github.com/oven-sh/bun/blob/bb66bba1bf6d57983e7efef7ab706bce12137028/src/bun.js/bindings/BunProcess.cpp#L2558>): `Bun::jsFunctionDrainMicrotaskQueue`
- *2 unknown/js code*
Features: jsc, Bun.stdin, dotenv, tsconfig\_paths, tsconfig
<!-- from bun.report: 2n9ei43BJ3HkWzRp3nGQ -->
I noticed Prisma has now introduced a multi-schema feature, my experience with Prisma + Bun makes me believe they don't play well with compatibility. Could this be where the issue lies @paperdave ?
What version of Bun is running?
1.1.13 / 1.1.14 / 1.1.15
What platform is your computer?
Microsoft Windows 11 Pro x64 (Build 10.0.22621)
How can we reproduce the crash?
Building a docker image using bun, and running the container. My project consists of Postgres, Prisma and Lucia Auth 3, and crashes the same way on my ARM64 VPS cloud server as on my local docker installation.
Sample Repo
a sample repo to use would be cholasimmons/bun-elysia-modular_auth
Reproduction
docker compose up
from the repo's root directoryRelevant log output
No response
Stack Trace (bun.report)
Bun v1.1.13 (
bd6a605
) on linux x86_64_baseline [RunCommand]Segmentation fault at address 0x0000001A
ld-temp.o:0
:WTF::jscSignalHandler
??
ld-temp.o:0
:llint_call_javascript
ld-temp.o:0
:JSC::Interpreter::executeCall
ld-temp.o:0
:JSC::runJSMicrotask
ld-temp.o:0
:JSC::VM::drainMicrotasks
BunProcess.cpp:2538
:Bun::jsFunctionDrainMicrotaskQueue
Features: jsc, Bun.stdin, tsconfig_paths, tsconfig