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

Bun cannot start without /proc #1360

Closed
Marc-Pierre-Barbier opened this issue Oct 20, 2022 · 3 comments
Closed

Bun cannot start without /proc #1360

Marc-Pierre-Barbier opened this issue Oct 20, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@Marc-Pierre-Barbier
Copy link

What version of Bun is running?

0.2.1

What platform is your computer?

x64

What steps can reproduce the bug?

unmount /proc and then run bun

How often does it reproduce? Is there a required condition?

every time /proc is not present

What is the expected behavior?

to start like nodejs

What do you see instead?

Crash at 0x8A00000000000000

----- bun meta -----
Bun v0.2.1 (1835e4b) Linux x64 #5 SMP PREEMPT_DYNAMIC Wed Oct 19 22:01:04 CEST 2022
RunCommand:
Elapsed: 13ms | User: 0ms | Sys: 11ms
RSS: 67.11MB | Peak: 28.36MB | Commit: 67.11MB | Faults: 158
----- bun meta -----

Ask for #help in https://bun.sh/discord or go to https://bun.sh/issues

Additional information

I wanted to put bun in an embedded Linux install in which /proc wasn't mounted.

this isn't really an important bug but it would be nice to have a clear error at least.

@Marc-Pierre-Barbier Marc-Pierre-Barbier added bug Something isn't working needs repro Needs an example to reproduce labels Oct 20, 2022
@Electroid Electroid added segfault and removed needs repro Needs an example to reproduce labels Oct 20, 2022
@Jarred-Sumner
Copy link
Collaborator

Bun needs /proc to efficiently get the file path for open file descriptors.

What’s the rationale against mounting /proc?

@Marc-Pierre-Barbier
Copy link
Author

There is no real reason against mounting /proc it just wasn't done on my system initially.

As I have written in additional information, it's not really important, but it would be cool to have an error message instead of a simple crash.

@Electroid
Copy link
Contributor

In Bun v0.5.0, we implemented a workaround for when /proc is not mounted. a345efd

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

No branches or pull requests

3 participants