You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue occured on v1.0.3 and v1.06 and further testing was done on 1.0.6-debug+a87aa2fafe05c358455173ea65877be5eefcbd63
What platform is your computer?
Linux 6.1.0-9-amd64 x86_64 unknown
What steps can reproduce the bug?
I am not entirely sure what exactly is causing the Issue. As per request from @Jarred-Sumner on Disccord I am filing this issue with the appropriate code. For context: I am writing a discord bot and I have all my commands, events etc split up into different files. After moving to bun I wanted to build the project, and as this didn't work with the dynamic imports I had previously I wrote a Build plugin to set the code that resolves when importing a folder with e.g. ?handle-commands to an array of the default exports of the files in said folder. When running this build script, during the linking of the last file (which is also the entry point) I get the following:
uh-oh: integer overflow
bun will crash now 😭😭😭
----- bun meta -----
Bun v1.0.6_debug (a87aa2fa) Linux x64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.27-1 (2023-05-08)
AutoCommand:
Elapsed: 446ms | User: 3204ms | Sys: 270ms
RSS: 0.43GB | Peak: 0.42GB | Commit: 0.43GB | Faults: 0
----- bun meta -----
0 0x55c029ff0b6b
1 ???
2 ???
3 ???
4 ???
5 ???
6 ???
7 ???
8 ???
9 ???
10 ???
11 ???
12 ???
13 ???
14 ???
Crash report saved to:
~/.bun/.bun-crash/v1.0.6_debug-1697368748265.crash
Search GitHub issues https://bun.sh/issues or ask for #help in https://bun.sh/discord
thread 156457 panic: integer overflow
Unwind error at address `:0x55c02bfcb10f` (error.InvalidDebugInfo), trace may be incomplete
Jarred suggested running it with lldb which results in the following stacktrace:
Disabling sourcemap generation has no effect, bun still crashes, but with an error message: "missing Asset file". I will share the other stacktrace and error in a bit.
I just started evaluating Bun on my Windows machine, just started to get this error out of the blue this morning, and deleting my existing package-lock.json resolved it.
the initial crash related to source maps was fixed a while ago in #11344 (bun upgrade). i think the missing asset file crash is fixed too but i'm not certain. if it is not, please open a new issue for that.
What version of Bun is running?
Issue occured on v1.0.3 and v1.06 and further testing was done on 1.0.6-debug+a87aa2fafe05c358455173ea65877be5eefcbd63
What platform is your computer?
Linux 6.1.0-9-amd64 x86_64 unknown
What steps can reproduce the bug?
I am not entirely sure what exactly is causing the Issue. As per request from @Jarred-Sumner on Disccord I am filing this issue with the appropriate code. For context: I am writing a discord bot and I have all my commands, events etc split up into different files. After moving to bun I wanted to build the project, and as this didn't work with the dynamic imports I had previously I wrote a Build plugin to set the code that resolves when importing a folder with e.g. ?handle-commands to an array of the default exports of the files in said folder. When running this build script, during the linking of the last file (which is also the entry point) I get the following:
Jarred suggested running it with lldb which results in the following stacktrace:
suggests that it crashes shortly before the end of the index.ts file:
And finally the build plugin and script:
What is the expected behavior?
No crash!
What do you see instead?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: