-
Notifications
You must be signed in to change notification settings - Fork 8
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
pipelines frequently encounter unexpected SIGSTP on macOS #151
Comments
That's a good find, thanks for reporting it. Sounds like some kind of race condition given that it's not consistent. I wonder if it's fundamentally related to #58. The fact that you reproduced it with no asynchronous commands or piped commands is quite helpful to know. |
My quick attempts to reproduce the errors in the above screenshots weren't successful. @39555 -- just to confirm, which OS are you running on? (Is it Linux?) |
I've tested on macOS M2 arm64, NixOS wsl x86_64 and Windows x86_64. And that problem seems to exist only on Mac |
@39555 -- thanks for the confirmation. That explains why I haven't seen it, as I do most of my testing on Linux (and infrequently on Windows). I've put some effort in the last few days to start running our existing test suites on macOS arm64 as part of GitHub PR checks. It will take some time to get them stable, I expect, but I'm anticipating that they will help catch basic issues like the one you've reported. I'm also interested to know if the changes in #166 get us closer to resolving this issue. (I won't be surprised if they don't, but any fixes for this should be layered on those.) |
This ended up being a macOS-specific issue, and I believe fixed by #172. The signal-handling code had been hard-coding integer signal values rather than using appropriate, portable constants that are correctly defined for each supported platform. Fixing that improved the code and appears to have resolved the issue. Thanks to the merged PR linked above, we now also run all tests on macOS as part of PR checks; that should help us keep a functional baseline for x86_64/Linux and arm64/macOS for now. Thanks again for reporting this, it's been good learning along the way. |
While using Brush I experience random 148 SIGSTP signals from child commands.
brush --noprofile --norc
The text was updated successfully, but these errors were encountered: