This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ipa/86274] [7/8/9 Regression] SEGFAULT when logging std::to_string(NAN)
- From: "floop at floop dot cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 26 Jun 2018 09:30:04 +0000
- Subject: [Bug ipa/86274] [7/8/9 Regression] SEGFAULT when logging std::to_string(NAN)
- Auto-submitted: auto-generated
- References: <bug-86274-4@http.gcc.gnu.org/bugzilla/>
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.