This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/66563] [4.9 Regression] ICE (segmentation fault) on sh4-linux-gnu
- From: "olegendo at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 22 Jun 2015 02:24:54 +0000
- Subject: [Bug target/66563] [4.9 Regression] ICE (segmentation fault) on sh4-linux-gnu
- Auto-submitted: auto-generated
- References: <bug-66563-4 at http dot gcc dot gnu dot org/bugzilla/>
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.