Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crash during test discord.js #10539

Open
jumoog opened this issue Apr 26, 2024 · 4 comments
Open

crash during test discord.js #10539

jumoog opened this issue Apr 26, 2024 · 4 comments
Labels
bug Something isn't working crash An issue that could cause a crash

Comments

@jumoog
Copy link
Contributor

jumoog commented Apr 26, 2024

How can we reproduce the crash?

run test file

Relevant log output

PS C:\Repos\DiscordBot> bun test
bun test v1.1.5 (b257a309)

permission.test.ts:
============================================================
Bun v1.1.5 (b257a309) Windows x64
Args: "C:\Users\user\.bun\bin\bun.exe", "test"
Features: Bun.stdin(2) dotenv fetch transpiler_cache(3) tsconfig(4) WebSocket
Builtins: "node:buffer" "node:events" "node:fs" "node:fs/promises" "node:http" "node:path" "node:string_decoder" "node:timers" "node:timers/promises" "node:url" "node:util" "node:util/types" "node:zlib" "node:worker_threads" "undici" "ws"
Elapsed: 864ms | User: 15ms | Sys: 0ms
RSS: 0.15GB | Peak: 0.15GB | Commit: 0.19GB | Faults: 37723

panic(main thread): Segmentation fault at address 0xFFFFFFFFFFFFFFFF
oh no: Bun has crashed. This indicates a bug in Bun, not your code.

Stack Trace (bun.report)

Bun v1.1.5 ([#10527](https://github.com/oven-sh/bun/pull/10527)) on windows x86_64 [TestCommand]

Segmentation fault at address 0xFFFFFFFFFFFFFFFF

- `us_socket_raw_write`
- `??`
- `??`
- `quote_cmd_arg`
- `fs__open`
- `??`
- [`thread_pool.zig:455`](https://github.com/oven-sh/bun/blob/b257a309772db2e9dfb745f97068aea6a32ca151/src/thread_pool.zig#L455): `notifySlow`
- [`options.zig:2071`](https://github.com/oven-sh/bun/blob/b257a309772db2e9dfb745f97068aea6a32ca151/src/options.zig#L2071): `toJS`
- [`streams.zig:4310`](https://github.com/oven-sh/bun/blob/b257a309772db2e9dfb745f97068aea6a32ca151/src/bun.js/webcore/streams.zig#L4310): `append`
- [`fmt.zig:1020`](https://github.com/oven-sh/bun/blob/b257a309772db2e9dfb745f97068aea6a32ca151/src/deps/zig/lib/std/fmt.zig#L1020): `formatBuf`

<!-- from bun.report: S-T5ZKYbA6ty_zWc06Qc -->
@jumoog jumoog added bug Something isn't working crash An issue that could cause a crash labels Apr 26, 2024
@jumoog
Copy link
Contributor Author

jumoog commented Apr 26, 2024

testing my bot using discord.js

@jumoog jumoog changed the title crash during test crash during test discord.js Apr 26, 2024
@Johannes7k75
Copy link

I have the same issue

  • windows: Windows x64
  • bun: v1.1.5

@LuticaCANARD
Copy link

LuticaCANARD commented Apr 26, 2024

I have the same issue

Bun v1.1.5 (b257a309) Windows x64
Args: "C:\Users\...\.bun\bin\bun.exe", "--hot", "index.ts"
Features: Bun.stdin(2) dotenv fetch(2) transpiler_cache(4) tsconfig(4) WebSocket 
Builtins: "bun:main" "node:buffer" "node:events" "node:fs" "node:fs/promises" "node:http" "node:os" "node:path" "node:string_decoder" "node:timers" "node:timers/promises" "node:url" "node:util" "node:util/types" "node:zlib" "node:worker_threads" "undici" "ws" 
Elapsed: 1198ms | User: 46ms | Sys: 31ms
RSS: 0.17GB | Peak: 0.17GB | Commit: 0.23GB | Faults: 42859

Bun v1.1.5 ([#10527](https://github.com/oven-sh/bun/pull/10527)) on windows x86_64 [AutoCommand]

Segmentation fault at address 0xFFFFFFFFFFFFFFFF

- `??`
- `??`
- `quote_cmd_arg`
- `fs__open`
- `??`
- [`javascript.zig:829`](https://github.com/oven-sh/bun/blob/b257a309772db2e9dfb745f97068aea6a32ca151/src/bun.js/javascript.zig#L829): `onUnhandledError`
- `JSC__JSValue__callCustomInspectFunction`
- [`shimmer.zig:186`](https://github.com/oven-sh/bun/blob/b257a309772db2e9dfb745f97068aea6a32ca151/src/bun.js/bindings/shimmer.zig#L186): `cppFn`
- [`resolve_path.zig:1635`](https://github.com/oven-sh/bun/blob/b257a309772db2e9dfb745f97068aea6a32ca151/src/resolver/resolve_path.zig#L1635): `normalizeStringWindowsT`
- [`cli.zig:1845`](https://github.com/oven-sh/bun/blob/b257a309772db2e9dfb745f97068aea6a32ca151/src/cli.zig#L1845): `start`

<!-- from bun.report: aT3Hnd29BTvNhSgOoRvM -->

@jumoog
Copy link
Contributor Author

jumoog commented Apr 28, 2024

still happens in v1.1.6

Bun v1.1.6 ([#10596](https://github.com/oven-sh/bun/pull/10596)) on windows x86_64 [TestCommand]

Segmentation fault at address 0xFFFFFFFFFFFFFFFF

- `??`
- `??`
- `quote_cmd_arg`
- `fs__open`
- `??`
- [`thread_pool.zig:455`](https://github.com/oven-sh/bun/blob/e58d67b46875280bc9002add4c3fae45472cb346/src/thread_pool.zig#L455): `notifySlow`
- [`options.zig:2071`](https://github.com/oven-sh/bun/blob/e58d67b46875280bc9002add4c3fae45472cb346/src/options.zig#L2071): `toJS`
- [`streams.zig:4310`](https://github.com/oven-sh/bun/blob/e58d67b46875280bc9002add4c3fae45472cb346/src/bun.js/webcore/streams.zig#L4310): `append`
- [`fmt.zig:1020`](https://github.com/oven-sh/bun/blob/e58d67b46875280bc9002add4c3fae45472cb346/src/deps/zig/lib/std/fmt.zig#L1020): `formatBuf`
- [`event_loop.zig:788`](https://github.com/oven-sh/bun/blob/e58d67b46875280bc9002add4c3fae45472cb346/src/bun.js/event_loop.zig#L788): `exit`

<!-- from bun.report: hBmg3qIvFXdffGkPduW8 -->

#10596

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working crash An issue that could cause a crash
Projects
None yet
Development

No branches or pull requests

3 participants