[LLVMbugs] [Bug 3129] New: llvm-gcc infinite loop memory muncher

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Nov 24 20:48:10 PST 2008


           Summary: llvm-gcc infinite loop memory muncher
           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
                CC: llvmbugs at cs.uiuc.edu

This illegal testcase causes llvm-gcc to chew up all the available memory:

  $ cat testcase.c
  struct sqt13 {};

  struct sqt13 
    struct sqt13 sq64; 
    double sp11[2];
  } sp13 = {{46891.65, 45096},
            {26324.53, 89651.64}};
  $ ulimit -v $((512*1024))
  $ llvm-gcc testcase.c -emit-llvm -c -o x.bc
  x.c:4: error: redefinition of ‘struct sqt13’

  cc1: out of memory allocating 68 bytes after a total of 463675392 bytes

It appears to happen in the frontend, before getting to any LLVM passes.

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list