Skip to content

code_warntype(::String, ::Function, ::DataType) overflows the stack #57597

@nsajko

Description

@nsajko

Reproducer:

./nightly/assert/julia-2dd4cdf225/bin/julia -g2 -e 'using InteractiveUtils; code_warntype("/tmp/ExplicitEnv.txt", sin, Tuple{Float64})'

Error:

Warning: detected a stack overflow; program state may be corrupted, so further execution might be unreliable.
ERROR: StackOverflowError:
Stacktrace:
    [1] code_warntype(::Any, ::Any, ::Any, ::Any, ::Vararg{Any})
      @ InteractiveUtils ~/tmp/jl/jl/nightly/assert/julia-2dd4cdf225/share/julia/stdlib/v1.13/InteractiveUtils/src/codeview.jl:179
    [2] code_warntype(::Any, ::Vararg{Any}; kwargs...)
      @ InteractiveUtils ~/tmp/jl/jl/nightly/assert/julia-2dd4cdf225/share/julia/stdlib/v1.13/InteractiveUtils/src/codeview.jl:179
--- the above 1 lines are repeated 6135 more times ---
 [6138] code_warntype
      @ ~/tmp/jl/jl/nightly/assert/julia-2dd4cdf225/share/julia/stdlib/v1.13/InteractiveUtils/src/codeview.jl:179 [inlined]
 [6139] code_warntype(::Any, ::Any, ::Any)
      @ InteractiveUtils ~/tmp/jl/jl/nightly/assert/julia-2dd4cdf225/share/julia/stdlib/v1.13/InteractiveUtils/src/codeview.jl:179
 [6140] top-level scope
      @ none:1
 [6141] eval(m::Module, e::Any)
      @ Core ./boot.jl:488
 [6142] exec_options(opts::Base.JLOptions)
      @ Base ./client.jl:294

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or unintended behaviorstdlibJulia's standard library

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions