-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
bun run build
hangs while running in a gVisor sandbox
#16063
Comments
Do you know what
Maybe another one needs to be added to that list? bun/src/bun.js/api/bun/process.zig Lines 1148 to 1172 in babd8b6
|
Could it be a missing errno in Lines 3141 to 3153 in babd8b6
Would you be able to paste the output of |
I've uploaded a sample logfile here: https://modal-public-assets.s3.us-east-1.amazonaws.com/vendor/bun-debug-logs.zip There's a single instance of
|
I think the 2,795,330 calls to sched_yield looks suspicious. Sounds like some threads are never going to sleep. Is SIGUSR1 being sent anywhere from the parent process? JavaScriptCore uses that to force the thread to enter stop-the-world GC |
This sounds relevant to me too. The buggy behavior (i.e., the observed hanging) sometimes doesn't show up—across multiple buggy and non-buggy logfiles, I notice a pattern of groups of 15 When hanging is not observed, there are two groups of 15 Example of non-buggy logfile: https://modal-public-assets.s3.us-east-1.amazonaws.com/vendor/bun-good-logs.zip
I don't see this in the logs anywhere? |
gVisor dev here, I used the Dockerfile, without the pidfd_open patch, I can complete the build. the details can be found at google/gvisor#11331 (comment) And i don't think pidfd_open is needed at least for the |
What version of Bun is running?
1.1.42+50eec0025
What platform is your computer?
gVisor sandbox
What steps can reproduce the bug?
Dockerfile:
Follow the instructions to install
runsc
here, and set it up with docker here.Then build and run the container with
--runtime=runsc
.What is the expected behavior?
bun run build
finishes relatively quickly.What do you see instead?
bun run build
hangs at the stepGenerating static pages (21/21)
.Additional information
This behavior does not show up in normal
runc
.runsc
does not supportpidfd_open
, but a workaround was implemented in bun (see here).The text was updated successfully, but these errors were encountered: