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

Assertion failure when precompiling Images #29594

Closed
staticfloat opened this issue Oct 11, 2018 · 4 comments · Fixed by #32776
Closed

Assertion failure when precompiling Images #29594

staticfloat opened this issue Oct 11, 2018 · 4 comments · Fixed by #32776
Assignees
Labels
bug Indicates an unexpected problem or unintended behavior types and dispatch Types, subtyping and method dispatch

Comments

@staticfloat
Copy link
Member

While trying to track down a memory leak in Metalhead, I discovered the following assertion failure:

julia> using Images
[ Info: Precompiling Images [916415d5-f1e6-5110-898d-aaa5f9f070e0]
Assertion failed: (!jl_subtype((jl_value_t*)sig, (jl_value_t*)type)), function check_ambiguous_visitor, file /Users/sabae/src/julia/src/gf.c, line 1189.

signal (6): Abort trap: 6
in expression starting at /Users/sabae/.julia/packages/Images/3bPWU/src/Images.jl:46
__pthread_kill at /usr/lib/system/libsystem_kernel.dylib (unknown line)
Allocations: 3702182 (Pool: 3701803; Big: 379); GC: 5
ERROR: Failed to precompile Images [916415d5-f1e6-5110-898d-aaa5f9f070e0] to /Users/sabae/.julia/compiled/v1.1/Images/H8Vxc.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] macro expansion at ./logging.jl:313 [inlined]
 [3] compilecache(::Base.PkgId, ::String) at ./loading.jl:1190
 [4] macro expansion at ./logging.jl:311 [inlined]
 [5] _require(::Base.PkgId) at ./loading.jl:947
 [6] require(::Base.PkgId) at ./loading.jl:858
 [7] macro expansion at ./logging.jl:311 [inlined]
 [8] require(::Module, ::Symbol) at ./loading.jl:840
julia> versioninfo()
Julia Version 1.1.0-DEV.376
Commit 23bf90292e (2018-10-04 16:18 UTC)
DEBUG build
Platform Info:
  OS: macOS (x86_64-apple-darwin17.7.0)
  CPU: Intel(R) Core(TM) i7-8559U CPU @ 2.70GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, skylake)
@JeffBezanson
Copy link
Member

Should check whether #29539 fixes it.

@staticfloat
Copy link
Member Author

Nope, it doesn't. Just checked on e13b2852e2 and the same thing happened.

@JeffBezanson
Copy link
Member

If you need to debug stuff in the meantime, you should just comment out the assertion. This tends to mean that two methods have very similar signatures (and are possibly even ambiguous), such that we might call the wrong one but it doesn't matter much in practice.

@JeffBezanson JeffBezanson added the types and dispatch Types, subtyping and method dispatch label Oct 15, 2018
@JeffBezanson JeffBezanson self-assigned this Oct 15, 2018
@JeffBezanson JeffBezanson added the bug Indicates an unexpected problem or unintended behavior label Nov 27, 2018
JeffBezanson added a commit that referenced this issue Nov 27, 2018
JeffBezanson added a commit that referenced this issue Nov 27, 2018
Fixes a major source of transitivity failures in specificity.
At the moment, adds lots of ambiguities.

[ci skip]
JeffBezanson added a commit that referenced this issue Nov 27, 2018
Fixes basically all transitivity failures in specificity.
At the moment, adds lots of ambiguities.

[ci skip]
JeffBezanson added a commit that referenced this issue Nov 27, 2018
Fixes basically all transitivity failures in specificity.
At the moment, adds lots of ambiguities.

[ci skip]
@mbauman
Copy link
Member

mbauman commented Jun 4, 2019

I'm hitting this with 1.2-rc1 and JuliaDB (well, StructArrays):

julia> using JuliaDB
[ Info: Precompiling JuliaDB [a93385a2-3734-596a-9a66-3cfbb77141e6]
Assertion failed: (!jl_subtype((jl_value_t*)sig, (jl_value_t*)type)), function check_ambiguous_visitor, file /Users/julia/buildbot/worker/package_macos64/build/src/gf.c, line 1109.

signal (6): Abort trap: 6
in expression starting at /Users/mbauman/.julia/packages/StructArrays/Du4zZ/src/structarray.jl:67
__pthread_kill at /usr/lib/system/libsystem_kernel.dylib (unknown line)
Allocations: 665194 (Pool: 664979; Big: 215); GC: 0
ERROR: LoadError: Failed to precompile StructArrays [09ab397b-f2b6-538f-b94a-2f83cf4a842a] to /Users/mbauman/.julia/compiled/v1.2/StructArrays/jRMFC.ji.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior types and dispatch Types, subtyping and method dispatch
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants