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

expected Core.Compiler.InferenceState, got a value of type Nothing #549

Closed
oxinabox opened this issue Feb 23, 2024 · 3 comments
Closed

expected Core.Compiler.InferenceState, got a value of type Nothing #549

oxinabox opened this issue Feb 23, 2024 · 3 comments
Labels

Comments

@oxinabox
Copy link
Contributor

I don't have a MWE for this yet, but I have seen it a few times when descending through Diffractor code on nightly julia

 • %3 =  = < uncached > ∂☆recurse(::TangentBundle{…},::TangentBundle{…},::TangentBundle{…})::Any
   ↩
┌ Info: 
│ Inference didn't cache this call information because of imprecise analysis due to recursion:
└ Cthulhu nevertheless is trying to descend into it for further inspection.
ERROR: TypeError: in typeassert, expected Core.Compiler.InferenceState, got a value of type Nothing
Stacktrace:
  [1] do_typeinf!(interp::Cthulhu.CthulhuInterpreter, mi::Core.MethodInstance)
    @ Cthulhu ~/.julia/packages/Cthulhu/SWgb3/src/Cthulhu.jl:771
  [2] (::Cthulhu.var"#additional_descend#98"{…})(new_mi::Core.MethodInstance)
    @ Cthulhu ~/.julia/packages/Cthulhu/SWgb3/src/Cthulhu.jl:432
  [3] 
    @ Cthulhu ~/.julia/packages/Cthulhu/SWgb3/src/Cthulhu.jl:625
  [4] 
    @ Cthulhu ~/.julia/packages/Cthulhu/SWgb3/src/Cthulhu.jl:647
  [5] _descend(term::REPL.Terminals.TTYTerminal, interp::Cthulhu.CthulhuInterpreter, mi::Core.MethodInstance; kwargs::@Kwargs{…})
    @ Cthulhu ~/.julia/packages/Cthulhu/SWgb3/src/Cthulhu.jl:791
  [6] (::Cthulhu.var"#additional_descend#98"{…})(new_mi::Core.MethodInstance)
    @ Cthulhu ~/.julia/packages/Cthulhu/SWgb3/src/Cthulhu.jl:433
  [7] 
    @ Cthulhu ~/.julia/packages/Cthulhu/SWgb3/src/Cthulhu.jl:625
  [8] 
    @ Cthulhu ~/.julia/packages/Cthulhu/SWgb3/src/Cthulhu.jl:647
  [9] 
    @ Cthulhu ~/.julia/packages/Cthulhu/SWgb3/src/Cthulhu.jl:647
 [10] _descend(term::REPL.Terminals.TTYTerminal, interp::Cthulhu.CthulhuInterpreter, mi::Core.MethodInstance; kwargs::@Kwargs{…})
    @ Cthulhu ~/.julia/packages/Cthulhu/SWgb3/src/Cthulhu.jl:791
 [11] _descend(term::REPL.Terminals.TTYTerminal, args::Any; interp::Core.Compiler.NativeInterpreter, kwargs::@Kwargs{…})
    @ Cthulhu ~/.julia/packages/Cthulhu/SWgb3/src/Cthulhu.jl:807
 [12] __descend_with_error_handling(args::Any; terminal::Any, kwargs...)
    @ Cthulhu ~/.julia/packages/Cthulhu/SWgb3/src/Cthulhu.jl:222
 [13] _descend_with_error_handling(f::Any, argtypes::Any; kwargs::@Kwargs{iswarn::Bool})
    @ Cthulhu ~/.julia/packages/Cthulhu/SWgb3/src/Cthulhu.jl:211
 [14] descend_code_typed(::Any, ::Vararg{Any}; kwargs::@Kwargs{})
    @ Cthulhu ~/.julia/packages/Cthulhu/SWgb3/src/Cthulhu.jl:169
    ```
@vchuravy
Copy link
Member

What's your version of Julia? If it's master it's likely a version of JuliaLang/julia#53431

@oxinabox
Copy link
Contributor Author

yeah something near to master

@simeonschaub
Copy link
Collaborator

Seems more useful to track this upstream

@simeonschaub simeonschaub closed this as not planned Won't fix, can't repro, duplicate, stale Sep 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants