-
-
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
@printf crashes with g/G format and non-finite numbers #41631
Comments
Works for me on
can you try with one of the 1.7 betas? |
Same with 1.7 beta |
The next step is to find what commit fixed the issue so that it can be put into 1.7 and 1.6. |
I still see this with the latest 1.8-DEV.
|
Similarly to @jmkuhn, it is not working for me on the current master. I tried bisecting and ended up with c33877f: julia> versioninfo()
Julia Version 1.7.0-DEV.1068
Commit c33877f417* (2021-05-04 21:04 UTC)
Platform Info:
OS: Linux (x86_64-linux-gnu)
CPU: Intel(R) Xeon(R) Silver 4214R CPU @ 2.40GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-12.0.0 (ORCJIT, cascadelake)
julia> using Printf; @printf("%G", NaN)
ERROR: BoundsError: attempt to access 337-element Vector{UInt8} at index [0]
Stacktrace:
[1] getindex
@ ./array.jl:833 [inlined]
[2] fmt
@ /local/temporary/julia/usr/share/julia/stdlib/v1.7/Printf/src/Printf.jl:428 [inlined]
[3] format
@ /local/temporary/julia/usr/share/julia/stdlib/v1.7/Printf/src/Printf.jl:720 [inlined]
[4] format(io::Base.TTY, f::Printf.Format{Base.CodeUnits{UInt8, String}, Tuple{Printf.Spec{Val{'G'}}}}, args::Float64)
@ Printf /local/temporary/julia/usr/share/julia/stdlib/v1.7/Printf/src/Printf.jl:803
[5] top-level scope
@ REPL[2]:1 bisect log
|
This was referenced Jul 20, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@printf("%G", NaN)
ERROR: BoundsError: attempt to access 337-element Vector{UInt8} at index [0]
Stacktrace:
[1] getindex
@ .\array.jl:801 [inlined]
[2] fmt
@ C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Printf\src\Printf.jl:428 [inlined]
[3] format
@ C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Printf\src\Printf.jl:720 [inlined]
[4] format(io::Base.TTY, f::Printf.Format{Base.CodeUnits{UInt8, String}, Tuple{Printf.Spec{Val{'G'}}}}, args::Float64)
@ Printf C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Printf\src\Printf.jl:803
[5] top-level scope
@ REPL[4]:1
It works as expected with f and e formats . This is with v1.6.2
The text was updated successfully, but these errors were encountered: