-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
infinite stack recursion in upgradable_dependents #5431
Comments
I hacked in a print to get some clue about the formulae causing this loop: --- a/Library/Homebrew/cmd/upgrade.rb
+++ b/Library/Homebrew/cmd/upgrade.rb
@@ -186,12 +186,13 @@ module Homebrew
def upgradable_dependents(kegs, formulae)
formulae_to_upgrade = Set.new
formulae_pinned = Set.new
formulae.each do |formula|
descendants = Set.new
+ puts "considering formula: #{formula.full_name}"
dependents = kegs.select do |keg|
keg.runtime_dependencies the output is confusing because this is a recursion inside a loop, but it eventually did come to a consistent repeating pattern:
|
I think an interesting question is: how did
|
Sorry, given this affects just you we'll accept a pull request for a fix or would need to see this reproducible with no |
eh well it's just
|
I have the same issue with a simple I have the following installed:
I also have the |
As the docs note: that’s an unsupported configuration. |
I got the issue on another computer with the var unset, just when compiling from source. |
@Frizlab If someone can provide a simple reproduction without |
Additionally we need a fuller backtrace in a Gist, thanks. |
Will try and do that when/if I find the time.
|
brew
command and reproduced the problem with multiple formulae? If it's a problem with a single, official formula (not cask) please file this issue at Homebrew/homebrew-core: https://github.com/Homebrew/homebrew-core/issues/new/choose. If it's abrew cask
problem please file this issue at https://github.com/Homebrew/homebrew-cask/issues/new/choose. If it's a tap (e.g. Homebrew/homebrew-php) problem please file this issue at the tap.brew update
and can still reproduce the problem?brew doctor
, fixed all issues and can still reproduce the problem?brew config
andbrew doctor
and included their output with your issue?I only reproduced with libpng, but this seems to me like an issue with the core framework, or something that should be detected in the core framework.
What you were trying to do (and why)
upgrade libpng ... from source ... I know you guys seem to not like that anymore, but I started with gentoo about 15 years ago ...
What happened (include command output)
libpng upgrade worked, then homebrew hit an apparently infinite stack recursion while checking dependents
What you expected to happen
Maybe nothing after the successful install, I expect libpng-1.6.36 to be fully ABI compatible with libpng-1.6.35, or maybe homebrew automatically re-builds all the formula which depend on libpng:
interesting how
--include-optional
just avoids including transitive dependents in this caseStep-by-step reproduction instructions (by running
brew
commands)I did this a couple times to check it wasn't just a fluke. I still have libpng-1.6.35 installed, so first:
Then:
I was in the process of upgrading stuff:
The text was updated successfully, but these errors were encountered: