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

Crash when running in alpine podman container #141

Open
salatfreak opened this issue Apr 30, 2023 · 0 comments
Open

Crash when running in alpine podman container #141

salatfreak opened this issue Apr 30, 2023 · 0 comments

Comments

@salatfreak
Copy link

Running the parcel development server in an alpine podman container crashes because of an error being thrown in @parcel/watcher. The error is caused by a signal interrupting the poll system call in the linux inotify backend, that is sent by the __membarrier function in the musl libc implementation to synchronize threads when it fails to make a MEMBARRIER_CMD_PRIVATE_EXPEDITED membarrier syscall.

I have published a minimal reproduction of this kind of error with some further description of the problem in this repository.

The problem could be fixed by either masking signal 34 while polling or by recovering from EINTR errors instead of crashing. Masking the signal could be accomplished by replacing poll with ppoll and using the sigmask argument.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant