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

StackOverflowError in Test.detect_ambiguities(Base) after importing certain packages #36883

Closed
jishnub opened this issue Aug 2, 2020 · 3 comments
Labels
kind:bug Indicates an unexpected problem or unintended behavior

Comments

@jishnub
Copy link
Contributor

jishnub commented Aug 2, 2020

Based on this discourse discussion, it appears that certain packages result in a StackOverflowError while using Test.detect_ambiguities. An example of this is Hecke.jl

julia> using Hecke
[banner suppressed]

julia> Test.detect_ambiguities(Base)
ERROR: StackOverflowError:
Stacktrace:
 [1] _methods_by_ftype at ./reflection.jl:841 [inlined]
 [2] _methods_by_ftype(::Any, ::Int64, ::UInt64) at ./reflection.jl:838
 [3] isambiguous(::Method, ::Method; ambiguous_bottom::Bool) at ./reflection.jl:1301
 [4] detect_ambiguities(::Module; imported::Bool, recursive::Bool, ambiguous_bottom::Bool) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Test/src/Test.jl:1440
 [5] detect_ambiguities(::Module) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Test/src/Test.jl:1415
 [6] top-level scope at REPL[3]:1

This is using Hecke v0.8.4 on Julia v1.4.2, and the error persists on Julia v1.5.0-rc2:

julia> Test.detect_ambiguities(Base)
ERROR: StackOverflowError:
Stacktrace:
 [1] _methods_by_ftype at ./reflection.jl:858 [inlined]
 [2] _methods_by_ftype(::Any, ::Int64, ::UInt64) at ./reflection.jl:855
 [3] isambiguous(::Method, ::Method; ambiguous_bottom::Bool) at ./reflection.jl:1308
 [4] detect_ambiguities(::Module; imported::Bool, recursive::Bool, ambiguous_bottom::Bool) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Test/src/Test.jl:1446
 [5] detect_ambiguities(::Module) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Test/src/Test.jl:1421
 [6] top-level scope at REPL[4]:1
@thofma
Copy link
Contributor

thofma commented Aug 2, 2020

Crashes also with AbstractAlgebra for me, which is pure julia and quicker to install.

@KristofferC KristofferC added the kind:bug Indicates an unexpected problem or unintended behavior label Aug 3, 2020
@tkf
Copy link
Member

tkf commented Aug 4, 2020

ref #35909

@KristofferC
Copy link
Sponsor Member

Looks like a dup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

4 participants