This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug ipa/86274] [7/8/9 Regression] SEGFAULT when logging std::to_string(NAN)


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86274

--- Comment #3 from Filip Matzner <floop at floop dot cz> ---
Thank you for digging into this. I actually hit the issue in a large code base
that crashed even without printing anything to boost log. But when cutting off
parts of the code, the error happened nondeterministically, so it was a bit
difficult to build a minimal working example. The posted example was the most
reasonable working example I could come up with.

As a workaround in the large code base, I replaced std::to_string calls with
boost::lexical_cast.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]