oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
73.07k stars 2.67k forks source link

Using Worker API and setInterval #12061

Closed shivamklr closed 1 month ago

shivamklr commented 2 months ago

How can we reproduce the crash?

I am using setInterval and Worker API. The main files runs every minute. Depending upon some conditions, the worker API is called. After worker is done, worker is terminated manually.

Relevant log output

....
(console logs....)
....
Bun v1.1.15 (b23ba1fe) Windows x64
Args: "C:\Users\admin\scoop\apps\bun\current\bun.exe" ".\src\index.ts"
Features: jsc dotenv(53) fetch(136) transpiler_cache(102) tsconfig_paths(2) tsconfig(4) 
Builtins: "bun:main" "node:assert" "node:buffer" "node:crypto" "node:dns" "node:events" "node:fs" "node:fs/promises" "node:http" "node:https" "node:net" "node:os" "node:path" "node:stream" "node:string_decoder" "node:timers" "node:timers/promises" "node:tls" "node:url" "node:util" "node:util/types" "node:zlib" 
Elapsed: 6902769ms | User: 7921ms | Sys: 2406ms
RSS: 0.33GB | Peak: 0.44GB | Commit: 0.81GB | Faults: 2723786

Stack Trace (bun.report)

Bun v1.1.15 (b23ba1f) on windows x86_64 [AutoCommand]

Segmentation fault at address 0x41342AF0418

github-actions[bot] commented 2 months ago

Hello @shivamklr. 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.

Jarred-Sumner commented 1 month ago

This was likely fixed, but it's hard to say without a reproduction

If you leave a comment with a reproduction we would be happy to re-open it