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
`nix-build' freezes system on High Sierra with multi-user install #1583
Comments
|
I'm experiencing similar issues when starting a nix-shell that triggers several downloads via default.nix. After some time the system freezes as you described (sometimes only the mouse keeps responsible a little bit longer, but no clicking is possible). |
|
@m-idler Are you also using APFS? |
|
@edolstra yes, it was converted automatically within the upgrade |
|
@m-idler What hardware are you using? I'm running into this on the MacBook (Early 2016). |
|
I just experienced a similar issue on a Mac mini (Mid 2011) with a fusion drive formatted with hfs. I had installed nix 1.11.15 and was running the nix-darwin bootstrap when it failed. Similar to the first report, the last file listed was not present upon reboot thought the previous ones seem to be. I had to force the machine off with the power button. The following messages were the last in To be clear, this was in High Sierra but since the machine doesn't have an SSD it was not converted to APFS. |
|
@matthewbauer Do you know if the xnu source for high sierra is out yet? That was definitely correct for older versions of the kernel but I wouldn't at all be surprised if it's just changed behavior now. cc @copumpkin |
|
Anyway I'll dig into this this weekend |
|
Can I get |
|
|
@matthewbauer thanks! Do you by chance have access to a machine with |
|
@matthewbauer my device is a MacBook Pro, Early 2015 with SSD, APFS with encryption enabled. I got the same OS Version/uname output @matthewbauer posted |
|
I've had the exact same issue for a while now. I also pulled several logs, some of which seem to include errors about running out of memory but that may be a red herring. Some system info (10.13 GM Seed 17A362a on late 2016 MacBook Pro with APFS + FileVault):
|
|
@shlevy Not sure if you saw yet but the new xnu source code for the same version listed in the comments here was released yesterday https://opensource.apple.com/source/xnu/xnu-4570.1.46/ |
|
@bjtitus Ah, didn't realize it was just released yesterday! Thanks. |
I tried this program on 10.12.6 for 30 times. It blanks the screen, but the system does not freeze. |
|
Macbook Pro Early 2011, I'm having the same issue here after upgrading to High Sierra (wanted to upgrade to Sierra but they removed the downloads for that...). |
|
As a workaround for the time being, single user nix mode should work. |
|
If anyone has NOT updated to High Sierra, they should try building Nix before updating at this commit: to see if it fixes this issue on updating to High Sierra (if you are already on High Sierra most likely you can't even build Nix without getting the hanging issue). Sadly, I can't test it right now, so not sure if it actually avoids the issue. |
|
@matthewbauer See my comment. |
|
@shlevy Can you point to instructions on how to install single user on mac? The installer seems to force me in multiuser by default. |
|
So I managed to build and install (and hopefully switch to) nix 1.11.15 + @matthewbauer patch (3cc1b57). However my mac still freezes. To update I did: $ sudo su - # root builds in non-multiuser mode, apparently
$ git clone https://github.com/NixOS/nix
$ cd nix
$ git fetch https://github.com/matthewbauer
$ git reset --hard 1.11.15
$ git cherry-pick 3cc1b57
$ nix-build release.nix -A build.x86_64-darwinwhich resulted in and checked it actually picked it up: I then opened a new user shell and changed it to use the new nix as well: Finally I started building my top-level package once again: but this still fails when doing "patching interpreter path" of some vim plugin. Am I doing anything wrong? |
|
@ktf try running Nix-daemon on its own with |
|
I built |
|
However, it still freezes if I exit a build early with Ctl-C |
|
i dont have any issues since switching (did you updated to latest high
sierra?)
…On Sat, Oct 21, 2017 at 12:06 PM, Matthew Justin Bauer < ***@***.***> wrote:
For the people who switched to single-user mode, have there been any weird
issues? This could be unrelated but I've also gotten builds that seem to be
stuck but not really doing anything. Other weirdness afterwards like
Activity Monitor not working:
[image: screen shot 2017-10-20 at 11 02 26 pm]
<https://user-images.githubusercontent.com/19036/31847902-d51a4a8c-b5ea-11e7-9e7e-58c94162ffcf.png>
It's certainly better than the kernel panic thing... Anyway if anyone has
had similar issues please give feedback! (I'm still not 100% this is caused
by Nix but can't think of anything else I've been doing.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1583 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AFQpu9Zbus4sNYdL_Bu9eDUDgp2lRTqjks5suW2ugaJpZM4Pm4FU>
.
|
|
So the new issue I'm getting (in single-user mode) looks like it's the same as hishamhm/htop#682. It only happens after intensive CPU usage in Nix... Probably not related to Nix (more High Sierra bugs). |
|
I am very interested in what details of the crash overlap between this bug, and the |
|
Running the script @matthewbauer posted no longer causes a kernel panic on my machine after applying the just released 10.13.1 update. |
|
@matthewbauer that's unfortunate. I've run the script a few times without a panic. I'll modify it to run longer and try that to see if it changes. I've run a few builds (multi-user) as well without the immediate panic. As a reminder, I'm not using APFS though it would be very odd if we were talking about two different bugs here. EDIT EDIT2 |
|
Just a note, I was having this issue, I have since updated to OSX 10.13.2 Beta (17C60c) and nix-1.11.15 and no longer have the freezing system issue. |
|
Awesome! |
|
I've started a build of several hundred drvs on 10.13.2 beta. About 30min in and no freezes. Could this be it? :) |
|
great news. |
|
Awesome! 10.13.2 works for me so far. I can close this issue as soon as it is released! |
|
@grahamc How did those builds go? |
|
Thus for I’ve had no freezes. I did have the system crash due to an apfs
but though. The system immediately rebooted and ran the crash reporter.
Graham
…On Wed 15. Nov 2017 at 10:36, Ryan Trinkle ***@***.***> wrote:
@grahamc <https://github.com/grahamc> How did those builds go?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1583 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAErrA6TI6z4dphct6Lkb_evcAJjpB9Sks5s2wUFgaJpZM4Pm4FU>
.
|
|
FWIW I consider this a success. Nix isn't causing horrific crashes anymore. |
|
Awesome! Sounds like, once the 10.13.2 drops, we're in the clear :) |
|
@grahamc Of course, by any reasonable definition it was never Nix causing the crashes |
|
A |
|
|
|
Looks like 10.13.2 is released! So far so good. |
|
@shlevy It is actually very easy to install in single user mode since the code is still in the install script. Just comment the if statement which calls the multiuser setup for Darwin and run the script. I wonder can't we have the single user setup back as an option? In enterprise environments users normally don't have administrator's rights to their laptops. One top level directory (/nix) could be ok but extensive system changes (additional local users, services) are usually out of question. |
I'm suspecting this has more to do with the new file system than Nix. But this has only happened while Nix is running, so I'm going to report it here.
Basically, running a fairly download intensive Nix build freezes the entire High Sierra OS, causing the mouse and keyboard to not work. The only way to fix once this happens is to force reboot the system.
I'm getting very little information on why this is happening but I've only had it happen when nix-build was running the terminal. The tail of that output (before freezing) is:
This could just be from just too many writes to the disk at one time. That last file,
/nix/store/dm7vy3dgsn9sp7nc8yqd7akjg4c64az8-tasty-quickcheck-0.8.4-docdoes not exist on my system after recovery so I wonder if it is an I/O issue there. I'm going to run a disk diagnostic to see if something is wrong with the hardware, but I've never had the issue before the switch APFS. Any way, I want to see if others have a similar experience on High Sierra.The text was updated successfully, but these errors were encountered: