-
-
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
Stack overflow printing 0-d array #4562
Comments
It causes stack overflow not only for Any type: println(reshape([1],())) |
I hope this can help in fixing the bug:
But my modifications of |
:
|
In this case you'd have to |
Delete bin/sys.ji; it will be regenerated automatically the next time you start Julia to reflect the updated state of base (but note: the distribution |
Thanks for suggestions, but neither works for me. @StefanKarpinski I tried both import and full qualification from REPL and from script. But neither used my modifications in @ihnorton there are 2 files in
So unfortunately @kmsquire's answer is most accurate now. P.S. Thanks to @JeffBezanson for fast fixing of this bug. |
Are you using a binary install? |
Ah, yeah. You're not going to be able to compile Julia from a binary install. You have to use a source install for that. |
You need to run the batch script. I know that this works, at least on Win64 (in fact, I just did it). I get your error if I run julia-basic, but it works fine from julia.bat. |
@ihnorton Thanks, it works! After deleting @StefanKarpinski I don't want to recompile Julia on Windows, so binary install is good for me now. But @ihnorton advice have made this unnecessary for modifications only in Julia source files. |
I found that this bug can be fixed without any additional code by removing line 900 in print(io::IO, X::AbstractArray) = writedlm(io, X) Is this acceptable solution? |
println(reshape(Any[1],()))
This produces a stack overflow on my machine.
The text was updated successfully, but these errors were encountered: