You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
julia>using LinearAlgebra
julia> x = [1, 2, 3]
3-element Array{Int64,1}:123
julia> D =Diagonal(x)
3×3 Diagonal{Int64,Array{Int64,1}}:1⋅⋅⋅2⋅⋅⋅3
julia> x'* D * x
ERROR: StackOverflowError:
Stacktrace:
[1] Type at ./boot.jl:391 [inlined]
[2] similar at ./array.jl:262 [inlined]
[3] similar at /Users/davidsanders/development/julia-dev/usr/share/julia/stdlib/v0.7/LinearAlgebra/src/adjtrans.jl:143 [inlined]
[4] copymutable at ./abstractarray.jl:798 [inlined]
[5] copy at ./abstractarray.jl:748 [inlined]
[6] *(::Adjoint{Int64,Array{Int64,1}}, ::Diagonal{Int64,Array{Int64,1}}) at /Users/davidsanders/development/julia-dev/usr/share/julia/stdlib/v0.7/LinearAlgebra/src/diagonal.jl:484 (repeats 79998 times)
julia> x'*Diagonal(x) * x
Segmentation fault:11
The segfault I believe is platform-specific (e.g. JuliaLang/julia#17109); sadly we still seem to crash on some stack overflows on mac. Linux gives the StackOverflowError each time. The stack overflow of course is due to a genuine method circularity.
The text was updated successfully, but these errors were encountered: