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

Random segfaults on the MacOS CI #8175

Closed
thufschmitt opened this issue Apr 6, 2023 · 6 comments
Closed

Random segfaults on the MacOS CI #8175

thufschmitt opened this issue Apr 6, 2023 · 6 comments
Labels

Comments

@thufschmitt
Copy link
Member

Describe the bug

The MacOS CI randomly segfaults on nix flake check. Some other Nix-based CIs also seems to encounter that (https://github.com/tweag/nickel/actions/runs/4532944265/jobs/7985404911#step:5:24 for instance).

Steps To Reproduce

https://github.com/NixOS/nix/actions/runs/4616918102/jobs/8162538381

Additional context

Priorities

Add 👍 to issues you find important.

@thufschmitt thufschmitt added the bug label Apr 6, 2023
@thufschmitt
Copy link
Member Author

Next step is trying to get code dumps.
https://gist.github.com/kudaba/53f68340bd28cd1e8824ac1e6ba8cf88 and https://stackoverflow.com/questions/9412156/how-to-generate-core-dumps-in-mac-os-x seems to give the right way of getting and exporting them from GHA

@abathur
Copy link
Member

abathur commented Apr 7, 2023

Crash dumps are usually visible in console.app, though SO tells me they might also be in ~/Library/Logs/DiagnosticReports

@grahamc @cole-h has detsys seen this on the macs you run? Wondering since you might be able to search for and eject crash reports as part of your wipe process?

@thufschmitt
Copy link
Member Author

Crash dumps are usually visible in console.app, though SO tells me they might also be in ~/Library/Logs/DiagnosticReports

Oh, I didn't know about these Crash dumps. Looks like this would have been much more lightweight than a full core dump. Good to know for a next time.

At any rate, I eventually managed to get a core dump at https://github.com/tweag/nix/suites/12088097593/artifacts/636572529. I'll download it and see what I can make of it.

@thufschmitt
Copy link
Member Author

Unsurprisingly the stack trace mentions a mix of boehm and boost coroutines.
I had totally forgotten about that, but https://github.com/NixOS/nix/pull/7725/files never got backported (and got reverted on master). I wonder whether it could fix this issue

@thufschmitt
Copy link
Member Author

#7725 seems to fix it indeed (at least I couldn't reproduce it on tweag@15ce51f). I've just opened #8179 to add the non-tests part of #7725 back

@thufschmitt
Copy link
Member Author

Closing since 2.15 go relased, and hopefully fixes this.

Anyone, feel free to reopen if the problem arises again

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

No branches or pull requests

2 participants