-
-
Notifications
You must be signed in to change notification settings - Fork 462
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
darwin-rebuild segfault #467
Comments
I've run into segfaults unexpectedly before, though I haven't seen that particular error. A couple things I would try: Try setting
You've indicated that you've run this command before, but I would try simplifying it a little to see if you can rule out any issues with the command itself. The error message alludes to a nix command. As long as your hostname matches one of the outputs in Does the following work: darwin-rebuild switch --flake ~/.config/nixpkgs If not, what happens if you replace the |
Thanks for the suggestions. I rebooted, set
The number after the line number (is that a PID, maybe?) is the only thing that has changed. I didn't realize that darwin-rebuild was a bash script. Looking at that, line 159 is the end of an if block that looks familiar:
So I'm guessing this is a nix problem and not a darwin-rebuild problem, maybe?
I'll see if I can figure out the parameters going to Nix to reproduce it more directly. Open to other ideas, too. |
I attempted to rollback (that worked fine, but upgrading from there still gave me a segfault), to reboot, and I tried directly calling nix in various ways to try to get more info. Eventually I started for nix troubleshooting commands and options and I found this:
I ran that, also updated my flake.lock again with |
Oh, thought this was the same issue as the git problem #693 |
I just did a
nix flake update
and adarwin-rebuild switch --flake ~/.config/nixpkgs/.#$(hostname -s) --show-trace
today -- something I generally do at least once a week, but I'm getting an error:I have tracing on, but I don't get any other details on what the error is. Is this a known problem? Any suggestions on how I should troubleshoot? Is it even a
darwin-rebuild
issue? This is on an M1, but again, things have been working fine for months and nothing has changed since my last successful update except the flake.lock file.I can experiment with rolling that back and with rebooting, but hoping someone has better suggestions.
The text was updated successfully, but these errors were encountered: