-
-
Notifications
You must be signed in to change notification settings - Fork 11.4k
brew doctor not terminating #17426
Comments
I decided to terminate 'brew doctor' after waiting several hours for it to terminate. Here is the output: ^C/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/set.rb:432: Interrupt |
To follow up: I rebooted my mac and tried 'brew doctor' again. This time it terminated successfully. |
This is a 👻 in the machine. It is funny because I had this very issue myself just recently after I noticed that when the problem occurred, my the Heisen - 🪲 @ping mxcl However, I just suggest that superenv should hard code xcrun and change |
I've seen this before too. I think it's something Spotlight related. |
Hardcoding /usr/bin/xcrun should avoid this (hopefully). |
@samueljohn Happy to do that. Does that still exist with Xcode-only? |
Yes, I have |
Actually, looking at the files, we can't/shouldn't do this because that defaulst the point of the xcrun wrapper. Perhaps we could make the xcrun call /usr/bin/xcrun if superenv isn't in the path or something. |
Doesn't seem to fix it. If you run As this is shelling out rather than calling Ruby code it's tricky to find this infinite loop. Trying some more to work this out. |
It seems the problem is the new |
Good call, now that you point it out I remember Max saying something about how xcrun can end up caching the superenv bin. |
Good work, Mike! |
Don't believe it. Pressing
Now the strange thing is, I have two separated homebrew installs and I was in the one with Continue to debug (because if I reboot, this will be gone) |
If I change path = `/usr/bin/xcrun -find #{tool} 2>/dev/null`.chomp to path = `/usr/bin/xcrun -n -find #{tool} 2>/dev/null`.chomp This error is gone as |
Here is the test:
The latter is the thing we want, because All the necessary tools are found with the
This is an excellent opportunity to test and fix this ... |
brew --config takes one second longer. But compared to infinity this is pretty short. |
Causes an infinite loop when trying to find e.g. missing gcc. Closes Homebrew#17426 References Homebrew#17455
The commit of e26b70b from @MikeMcQuaid kind of fixed the loop by explicitly rejecting tools that are located in any After some further testing, I am convinced that
|
Hello ! I reopen this issue cause i have the same problem with my homebrew install. I run under Mac Osx 10.9.8. And since some weeks i have the same trouble. When i launch brew doctor or brew update it's seem to be stuck in an infinite loop. Someone have an idea please ? |
@tomapp Do you have Spotlight disabled? |
No it wasn't but, finally i just remove totally Homebrew and reinstall it and now it works. Thank you! |
'brew doctor' on my mac osx 10.8.2 appears unable to terminate, perhaps caught in infinite loop. It has been running for several hours now with 'xcrun' and 'ruby', the only obvious clues to what is going on, flashing up on the shell window title bar. The last time I ran 'brew doctor', maybe a couple of weeks ago, it successfully terminated after a few seconds.
The only recent changes I've made were to issue: 'brew tap homebrew/dupes' and 'brew install gcc'. I then deleted the sym link to llvm-gcc-4.2 in /usr/bin before deciding it was a bad idea and changing it back to llvm-gcc-4.2.
Any ideas as to what is going on and what I should do?
The text was updated successfully, but these errors were encountered: