[Bug target/66563] [4.9 Regression] ICE (segmentation fault) on sh4-linux-gnu
olegendo at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jun 22 02:25:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66563
--- Comment #25 from Oleg Endo <olegendo at gcc dot gnu.org> ---
(In reply to John Paul Adrian Glaubitz from comment #22)
> Provided that you're right, how would a bug in strlen this explain that gcc
> always segfaults when it needs to do float arithmetics?
I don't know the code of mpfr. It could use __builtin_strlen for stuff like
parsing numbers etc. However, the builtin_strlen code looks OK and hasn't been
causing trouble elsewhere. So I guess that it just runs on broken data and
then causes a buffer overrun. In other words, the actual bug is somewhere else
-- a quite common scenario for segfault class of bugs.
More information about the Gcc-bugs
mailing list