-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
StackOverflow when displaying recursive output causes segfault #10353
Comments
It's a stack overflow, but that's fine, it should just throw an error. |
This works for me on 0.4. @pito-svk are you on windows? Can you post the output of julia> a = []
0-element Array{Any,1}
julia> push!(a, a)
1-element Array{Any,1}:
Error showing value of type Array{Any,1}:
ERROR: StackOverflowError: |
Note that the bug likely is in the printing of the resulting recursive array, not in creating it. |
@jakebolewski no, ubuntu:
@ivarne right (in script):
or this:
|
Although this is a legit stack overflow bug, we could print something like julia> a = []
0-element Array{Any,1}
julia> push!(a, a)
1-element Array{Any,1}:
Any[#= circular reference =#] here to avoid the overflow just by checking |
This may be specific to llvm 3.3; I can reproduce there, but on llvm 3.5 I get a proper error. |
@jakebolewski Right. For example python prints this:
...and javascript:
|
Related: #3831 |
This one should probably be closed already, given that the original issue was fixed to not overflow the stack. |
Hi, I am not sure if this is a bug, but it looks like it is.
Simple:
you have an array let's say
Please correct me, if this isn't a bug.
Thanks.
The text was updated successfully, but these errors were encountered: