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 preprocessor/21410] New: Infinite memory usage in preprocessor


You guys will like this one ...

The most recent test is with 4.0.0 on Red Hat Enterprise Linux 4.0, but it also
happens with 3.4.3 and 4.0.0 on sparc-sun-solaris2.9.

In

http://www.math.purdue.edu/~lucier/bugzilla/6/

you'll find compressed versions of test2.c and gambit.h.  With this command line

peano-66% /pkgs/gcc-4.0.0/bin/gcc -Wall -W -Wno-unused -O1 -fno-math-errno
-fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fomit-frame-pointer
-fPIC -fno-common -mieee-fp -rdynamic -shared -D___DYNAMIC -D___SINGLE_HOST -E
test2.c -v > ! test2.i
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../configure --prefix=/pkgs/gcc-4.0.0
Thread model: posix
gcc version 4.0.0
 /export/pkgs/gcc-4.0.0/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.0.0/cc1 -E
-quiet -v -iprefix
/export/pkgs/gcc-4.0.0/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.0.0/
-D___DYNAMIC -D___SINGLE_HOST test2.c -mieee-fp -mtune=k8 -Wall -W -Wno-unused
-fno-math-errno -fschedule-insns2 -fno-trapping-math -fno-strict-aliasing
-fomit-frame-pointer -fPIC -fno-common -O1
ignoring nonexistent directory
"/export/pkgs/gcc-4.0.0/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.0.0/../../../../x86_64-unknown-linux-gnu/include"
ignoring nonexistent directory "/usr/local/include"
ignoring duplicate directory
"/pkgs/gcc-4.0.0/lib/gcc/x86_64-unknown-linux-gnu/4.0.0/include"
ignoring nonexistent directory
"/pkgs/gcc-4.0.0/lib/gcc/x86_64-unknown-linux-gnu/4.0.0/../../../../x86_64-unknown-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /export/pkgs/gcc-4.0.0/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.0.0/include
 /pkgs/gcc-4.0.0/include
 /usr/include
End of search list.

memory is rapidly exhausted (even with 16GB of virtual memory).

Brad

-- 
           Summary: Infinite memory usage in preprocessor
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: preprocessor
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: lucier at math dot purdue dot edu
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


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


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