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.