-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Bun v1.0.15 crashes building a small AWS CDK stack #7459
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
Comments
Seeing similar behavior with cdk8s. |
note: to get more useful information of a core dump, download |
wait this reads like the prettier crash fixed by increasing the stack size #7476. can you try the latest canary build? |
@dylan-conway Stack overflow in a different function. Not a recursion bug but because the file given is literally 70kb and the recursion (probably comma operators) is that deep.
![]() This file cant even be formatted by prettier because it ALSO stack overflows. I wonder if we can get away with just increasing the stack size, just to solve this regression. But we really need to solve this issue for real. Related bundler test which is currently disabled "NestedLabelsBundle" That fixture is as follows: ![]() lol |
Tested with 1.17.0, segfault happens while parsing smaller repro:
|
Duplicate of #5398 |
This is a JavaScript transpiler stack overflow. We will fix it, but to reduce the number of duplicated issues please follow along in #5398 |
What version of Bun is running?
1.0.15+b3bdf22eb (was also able to repro with a 16 canary)
What platform is your computer?
Linux 6.2.0-37-generic x86_64 x86_64
What steps can reproduce the bug?
What is the expected behavior?
Builds, no crash. Worked fine in v1.0.14 and earlier.
What do you see instead?
I've tried gdb and valgrind as well to try and get more details, but didn't notice anything useful.
And using the core dump
gdb
doesn't show anything useful:and last few lines:
Additional information
I've tried numerous workarounds to try and narrow it further, but no luck. Simply extending CDK
Stack
class is all it takes. I've tried older CDK versions, resetting tsconfig.json, reinstalling packages (via bun and npm).The text was updated successfully, but these errors were encountered: