[LLVMbugs] [Bug 910] NEW: llvm-gcc: Segmentation fault. ICE on valid

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Sep 13 07:00:07 PDT 2006


http://llvm.org/bugs/show_bug.cgi?id=910

           Summary: llvm-gcc: Segmentation fault. ICE on valid
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llvm-gcc
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nicholas at mxc.ca


This code came out of the CBE when I was running bugpoint. Amazingly, it crashes
llvm-gcc:

$ llvm-gcc -O0 -emit-llvm 000.c -c -o 000.bc
000.c: In function ‘Usage’:
000.c:7: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://llvm.org/bugs> for instructions.

Here's the code reduced snippet:

struct l_struct_2E_FILE { char x; };
unsigned fwrite(signed char *, unsigned , unsigned , signed char *);
static signed char str301[39];
static void Usage(signed char *ltmp_611_6) {
  struct l_struct_2E_FILE *ltmp_6202_16;
  unsigned ltmp_6203_92;
  ltmp_6203_92 =  /*tail*/ ((unsigned  (*) (signed char *, unsigned , unsigned ,
struct l_struct_2E_FILE *))(void*)fwrite)((&(str301[0u])), 38u, 1u, ltmp_6202_16);
}

It crashes even if you remove the first line defining struct l_struct_2E_FILE,
but then it ceases to be a crash on valid.



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the llvm-bugs mailing list