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

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

Open
nsajko opened this issue Mar 1, 2025 · 0 comments
Open

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

nsajko opened this issue Mar 1, 2025 · 0 comments
Labels
bug Indicates an unexpected problem or unintended behavior stdlib Julia's standard library

Comments

@nsajko
Copy link
Contributor

nsajko commented Mar 1, 2025

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
@nsajko nsajko added bug Indicates an unexpected problem or unintended behavior stdlib Julia's standard library labels Mar 1, 2025
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 stdlib Julia's standard library
Projects
None yet
Development

No branches or pull requests

1 participant