On 09/05/2018 09:48 AM, Richard Biener wrote:
> On Wed, 5 Sep 2018, Gerald Pfeifer wrote:
> 
>> On Tue, 4 Sep 2018, Jeff Law wrote:
>>>> On the other hand, this ICE has been consistent across a week of
>>>> daily builds now.
>>> An FYI, My i686 builds have been running OK.  But given what you've
>>> described this could well be an uninitialized read, dangling pointer,
>>> out of bounds write or some similar kind of bug.
>>
>> I did binary search now, and am afraid it's really that patch, Richard:
>>
>> Revision 263874 appears just fine; 263875 breaks as per my original 
>> message.
> 
> Sure - but without a way to reproduce locally investigation is really
> hard...  So I'm concentrating on the bugs the rev caused that I can
> reproduce and thus fix ;)
> 
> Richard.
> 

Hi.

I can reproduce that locally in a KVM machine running FreeBSD test 10.4-RELEASE.
I used gcc version 6.4.0 (FreeBSD Ports Collection) to build stage1 compiler 
and I
can see Segfaults happening.

Issue is that neither valgrind nor gdb work on the system.
Valgrind has 2 PRs reported:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224878
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=228973

For the gdb I can't see any lines associated:

Starting program: /tmp/gcc2/objdir/gcc/cc1 -quiet -I . -I . -I ../.././gcc -I 
../../../libgcc -I ../../../libgcc/. -I ../../../libgcc/../gcc -I 
../../../libgcc/../include -iprefix 
/tmp/gcc2/objdir/gcc/../lib/gcc/i586-unknown-freebsd10.4/9.0.0/ -isystem 
/tmp/gcc2/objdir/./gcc/include -isystem /tmp/gcc2/objdir/./gcc/include-fixed 
-MD subtf3.d -MF subtf3.dep -MP -MT subtf3.o -D IN_GCC -D IN_LIBGCC2 -D 
HAVE_CC_TLS -D HIDE_EXPORTS -isystem 
/usr/local/i586-unknown-freebsd10.4/include -isystem 
/usr/local/i586-unknown-freebsd10.4/sys-include -isystem ./include 
../../../libgcc/soft-fp/subtf3.c -quiet -dumpbase subtf3.c -mtune=pentium 
-march=pentium -auxbase-strip subtf3.o -g -g -g -O2 -O2 -O2 -Wextra -Wall 
-Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes 
-Wold-style-definition -Wno-missing-prototypes -Wno-type-limits 
-fbuilding-libgcc -fno-stack-protector -fpic -fvisibility=hidden -o 
/tmp//ccJog3Wn.s
(no debugging symbols found)...(no debugging symbols found)...(no debugging 
symbols found)...(no debugging symbols found)...(no debugging symbols 
found)...(no debugging symbols found)...(no debugging symbols found)...
Program received signal SIGSEGV, Segmentation fault.
0x08510556 in ?? ()
(gdb) bt
#0  0x08510556 in ?? ()
#1  0x2ad8aea0 in ?? ()
#2  0x0000000d in ?? ()
#3  0xbfbfe078 in ?? ()
#4  0x00000001 in ?? ()
#5  0xbfbfe3fc in ?? ()
#6  0x00000000 in ?? ()
(gdb) c
Continuing.
during GIMPLE pass: pre
../../../libgcc/soft-fp/subtf3.c: In function '__subtf3':
../../../libgcc/soft-fp/subtf3.c:35:1: internal compiler error: Segmentation 
fault
35 | __subtf3 (TFtype a, TFtype b)
   | ^~~~~~~~
libbacktrace could not find executable to open
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.

Would be very handy to have at least one of these tools working.
Gerald can you please help us with that?

Martin

Reply via email to