This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/45944] New: genmddeps segfaults processing mips.md


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

           Summary: genmddeps segfaults processing mips.md
           Product: gcc
           Version: 4.5.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: moe@blagblagblag.org
                CC: aoliva@gcc.gnu.org


Created attachment 21999
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=21999
strace of genmddeps segfault in gcc-4.5.1

I am trying to rpmbuild gcc-4.5.1-20100924 from Fedora rawhide under Fedora 13
MIPS on a Lemote Yeeloong.

It is failing here:
build/genmddeps ../../gcc/config/mips/mips.md > tmp-mddeps
/bin/sh: line 1: 32256 Segmentation fault      build/genmddeps
../../gcc/config/mips/mips.md > tmp-mddeps
make[3]: *** [s-mddeps] Error 139


Running strace outputs (full strace attached):
open("mips/generic.md", O_RDONLY|O_LARGEFILE) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=2957, ...}) = 0
mmap(NULL, 65536, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x2b400000
read(4, ";; Generic DFA-based pipeline de"..., 4096) = 2957
read(4, "", 4096)                       = 0
close(4)                                = 0
munmap(0x2b400000, 65536)               = 0
read(3, "and\")\n\t\t  (match_operand:GPR 2 \""..., 4096) = 4096
read(3, "ands[1])\n   && ((INTVAL (operand"..., 4096) = 4096
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++


A successful strace snippet running under gcc-4.4.4:
open("mips/generic.md", O_RDONLY|O_LARGEFILE) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=2957, ...}) = 0
mmap(NULL, 65536, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x2b
334000
read(4, ";; Generic DFA-based pipeline de"..., 4096) = 2957
read(4, "", 4096)                       = 0
close(4)                                = 0
munmap(0x2b334000, 65536)               = 0
read(3, "(ISA_HAS_COND_TRAP)\n    return \""..., 4096) = 4096
read(3, "   (set (match_dup 0) (plus:SI ("..., 4096) = 4096
read(3, "\n\t\t    (match_operand:ANYF 2 \"re"..., 4096) = 4096
read(3, "nstructions by another instructi"..., 4096) = 4096
read(3, "itable to use MADD over a \"MUL; "..., 4096) = 4096
read(3, "ratch:SI 5 \"=d,d\"))]\n  \"ISA_HAS_"..., 4096) = 4096
read(3, "perand\" \"0,d\")\n                 "..., 4096) = 4096
read(3, "\"))\n\t     (any_extend:DI (match_"..., 4096) = 4096
brk(0x100c4000)                         = 0x100c4000


Running under gdb:
Starting program: /home/jebba/devel/gcc/segfault/genmddeps mips/mips.md

Program    received signal    SIGSEGV, Segmentation fault.
copy_rtx (orig=0x0) at ../../gcc/rtl.c:246


Build flags:
-O3 -mtune=loongson2f -march=loongson2f -mabi=n32 -mplt


I can attach the 1.3M buildlog if needed.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]