[Bug c++/51146] The name clog for a global variable triggers a segfault inside std::pow

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Nov 15 23:29:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51146

--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-11-15 23:10:37 UTC ---
(N.B. we do name clog, but only for std::clog, the standard ostream ;)

If you link dynamically to libm.so then the clog symbol can be replaced by
symbol interposition. If a user does that and the symbol isn't the right type,
it goes boom.



More information about the Gcc-bugs mailing list