Skip to content

Profile printer can stack overflow #30365

Closed
@Keno

Description

@Keno
julia> Profile.print(noisefloor=0.1)
ERROR: StackOverflowError:
Stacktrace:
 [1] (::getfield(Profile, Symbol("#cleanup!#21")))(::Profile.StackFrameTree{Base.StackTraces.StackFrame}) at /home/keno/julia-1.0/usr/share/julia/stdlib/v1.1/Profile/src/Profile.jl:552
 [2] foreach(::getfield(Profile, Symbol("#cleanup!#21")), ::Base.ValueIterator{Dict{Base.StackTraces.StackFrame,Profile.StackFrameTree{Base.StackTraces.StackFrame}}}) at ./abstractarray.jl:1862
 ... (the last 2 lines are repeated 9990 more times)
 [19983] (::getfield(Profile, Symbol("#cleanup!#21")))(::Profile.StackFrameTree{Base.StackTraces.StackFrame}) at /home/keno/julia-1.0/usr/share/julia/stdlib/v1.1/Profile/src/Profile.jl:552
 [19984] tree!(::Profile.StackFrameTree{Base.StackTraces.StackFrame}, ::Array{UInt64,1}, ::Dict{UInt64,Array{Base.StackTraces.StackFrame,1}}, ::Bool) at /home/keno/julia-1.0/usr/share/julia/stdlib/v1.1/Profile/src/Profile.jl:555
 [19985] tree(::Base.TTY, ::Array{UInt64,1}, ::Dict{UInt64,Array{Base.StackTraces.StackFrame,1}}, ::Int64, ::Profile.ProfileFormat) at /home/keno/julia-1.0/usr/share/julia/stdlib/v1.1/Profile/src/Profile.jl:585
 [19986] print(::Base.TTY, ::Array{UInt64,1}, ::Dict{UInt64,Array{Base.StackTraces.StackFrame,1}}, ::Profile.ProfileFormat, ::Symbol) at /home/keno/julia-1.0/usr/share/julia/stdlib/v1.1/Profile/src/Profile.jl:147
 [19987] (::getfield(Profile, Symbol("#kw##print")))(::NamedTuple{(:noisefloor,),Tuple{Float64}}, ::typeof(Profile.print), ::Base.TTY, ::Array{UInt64,1}, ::Dict{UInt64,Array{Base.StackTraces.StackFrame,1}}) at /home/keno/julia-1.0/usr/share/julia/stdlib/v1.1/Profile/src/Profile.jl:134
 [19988] #print#5(::Base.Iterators.Pairs{Symbol,Float64,Tuple{Symbol},NamedTuple{(:noisefloor,),Tuple{Float64}}}, ::Function, ::Array{UInt64,1}, ::Dict{UInt64,Array{Base.StackTraces.StackFrame,1}}) at /home/keno/julia-1.0/usr/share/julia/stdlib/v1.1/Profile/src/Profile.jl:164
 [19989] #print at ./none:0 [inlined] (repeats 3 times)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions