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

Detected access to binding IRShow.debuginfo_firstline in a world prior to its definition world. #57330

Closed
KristofferC opened this issue Feb 10, 2025 · 0 comments
Milestone

Comments

@KristofferC
Copy link
Member

From https://s3.amazonaws.com/julialang-reports/nanosoldier/pkgeval/by_hash/7825364_vs_d63aded/DomainSets.primary.log
. The error is

DomainSetsMakieExt 

Failed to precompile DomainSetsMakieExt [da481366-01c8-5b4d-b359-47a10c8532e7] to "/home/pkgeval/.julia/compiled/v1.12/DomainSetsMakieExt/jl_WCrxKx".
Unbound or partitioned GlobalRef not allowed in value position
WARNING: Detected access to binding `IRShow.debuginfo_firstline` in a world prior to its definition world.
  Julia 1.12 has introduced more strict world age semantics for global bindings.
  !!! This code may malfunction under Revise.
  !!! This code will error in future versions of Julia.
Hint: Add an appropriate `invokelatest` around the access to this binding.
Internal error: during type inference of
lookup_units(Array{Module, 1}, Symbol)
Encountered unexpected error in runtime:
ErrorException("IR verification failed.\n    Code location: broadcast.jl:634\n  Method instance: MethodInstance for checkbounds(::Base.Broadcast.Broadcasted, ::CartesianIndex{2})")
error at ./error.jl:54

The lookup_units function probably comes from https://github.com/PainterQubits/Unitful.jl/blob/d869c3614969186ae21f9029216eadaf99e3e5c8/src/user.jl#L660-L721 but the IRShow.debuginfo_firstline is in Base:

file, line = IRShow.debuginfo_firstline(di)

There is another instance where this is called with invokelatest:

firstline = invokelatest(IRShow.debuginfo_firstline, ir.debuginfo)

No idea if this is also need there.

@KristofferC KristofferC added this to the 1.12 milestone Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant