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
The following code produces wrong output on the current master (720da57): https://godbolt.org/z/x53n1KhcM. I tried g++-14, clang-16, clang-20. Linux current debian testing, glibc 2.40-3 (this happens on the current debian:testing docker image)
When the underlying FILE gets flushed, there's data from the existing buffer that gets printed again. E.g. the output is:
Clearly fmt 11.0.2 does not compile with clang-20. Yet the current fmt
tip-of-tree triggers a bug with the full_F7 test, where apparently the
fflush(_unlocked) seems to leave garbage in the write buffer. See
fmtlib/fmt#4229 for a reproducer
Hi
The following code produces wrong output on the current master (720da57): https://godbolt.org/z/x53n1KhcM. I tried g++-14, clang-16, clang-20. Linux current debian testing, glibc 2.40-3 (this happens on the current debian:testing docker image)
When the underlying
FILE
gets flushed, there's data from the existing buffer that gets printed again. E.g. the output is:The problem disappears if I set
FMT_USE_FALLBACK_FILE
to 1.The text was updated successfully, but these errors were encountered: