http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49351
Summary: Internal error: Segmentation fault (program cc1plus) Product: gcc Version: 4.5.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: mich...@jarvis.net Created attachment 24480 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24480 gzipped .ii file I'm getting a compiler segmentation fault trying to compile a matrix test suite. I tried to reduce the test case, but any of a number of ways of reducing the number of tests that my code does ends up in success. On the other hand, it doesn't seem to be memory related. The last rsize I saw on top before it crashed was only 785 MB on a computer with 8GB RAM. So I'm sending the full preprocessed code that produces the error. Also, I apologize if this is a duplicate of one of the other "Internal error: Segmentation fault" reports. But I did look at them, and this doesn't look like the same thing. At least it's not obviously the same. Now the particulars: Mac OS X, 10.6.7 Processor: 2.66 GHz Intel Core i7 Memory: 8 GB 1067 MHz DDR3 $ uname -a Darwin flute.home 10.7.0 Darwin Kernel Version 10.7.0: Sat Jan 29 15:17:16 PST 2011; root:xnu-1504.9.37~1/RELEASE_I386 i386 Using the latest fink gcc45 release: $ g++-4 -v --version Using built-in specs. COLLECT_GCC=g++-4 COLLECT_LTO_WRAPPER=/sw/lib/gcc4.5/libexec/gcc/i386-apple-darwin10.7.0/4.5.2/lto-wrapper g++-4 (GCC) 4.5.2 Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Target: i386-apple-darwin10.7.0 Configured with: ../gcc-4.5.2/configure --prefix=/sw --prefix=/sw/lib/gcc4.5 --mandir=/sw/share/man --infodir=/sw/lib/gcc4.5/info --enable-languages=c,c++,fortran,objc,obj-c++,java --with-gmp=/sw --with-libiconv-prefix=/sw --with-ppl=/sw --with-cloog=/sw --with-mpc=/sw --with-system-zlib --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib --program-suffix=-fsf-4.5 Thread model: posix gcc version 4.5.2 (GCC) COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.6.7' '-v' '-fversion' '-shared-libgcc' '-mtune=generic' /sw/lib/gcc4.5/libexec/gcc/i386-apple-darwin10.7.0/4.5.2/cc1 -quiet -v -D__DYNAMIC__ help-dummy -fPIC -quiet -dumpbase help-dummy -mmacosx-version-min=10.6.7 -mtune=generic -auxbase help-dummy -version -fversion -o /var/folders/UU/UU2-eU61GFOx3d6RzbOM4U+++TI/-Tmp-//ccUyBCgK.s GNU C (GCC) version 4.5.2 (i386-apple-darwin10.7.0) compiled by GNU C version 4.5.2, GMP version 4.3.2, MPFR version 2.4.2-p3, MPC version 0.8.2 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.6.7' '-v' '-fversion' '-shared-libgcc' '-mtune=generic' as -arch i386 -force_cpusubtype_ALL --version -o /var/folders/UU/UU2-eU61GFOx3d6RzbOM4U+++TI/-Tmp-//ccQMDBTj.o /var/folders/UU/UU2-eU61GFOx3d6RzbOM4U+++TI/-Tmp-//ccUyBCgK.s FATAL:/usr/bin/../libexec/gcc/darwin/i386/as: I don't understand '-' flag! And finally, the command line that fails: $ g++-4 -v -o junk TMV_TestSmallMatrixArith_6f.ii Using built-in specs. COLLECT_GCC=g++-4 COLLECT_LTO_WRAPPER=/sw/lib/gcc4.5/libexec/gcc/i386-apple-darwin10.7.0/4.5.2/lto-wrapper Target: i386-apple-darwin10.7.0 Configured with: ../gcc-4.5.2/configure --prefix=/sw --prefix=/sw/lib/gcc4.5 --mandir=/sw/share/man --infodir=/sw/lib/gcc4.5/info --enable-languages=c,c++,fortran,objc,obj-c++,java --with-gmp=/sw --with-libiconv-prefix=/sw --with-ppl=/sw --with-cloog=/sw --with-mpc=/sw --with-system-zlib --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib --program-suffix=-fsf-4.5 Thread model: posix gcc version 4.5.2 (GCC) COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.6.7' '-v' '-o' 'junk' '-shared-libgcc' '-mtune=generic' /sw/lib/gcc4.5/libexec/gcc/i386-apple-darwin10.7.0/4.5.2/cc1plus -fpreprocessed TMV_TestSmallMatrixArith_6f.ii -fPIC -quiet -dumpbase TMV_TestSmallMatrixArith_6f.ii -mmacosx-version-min=10.6.7 -mtune=generic -auxbase TMV_TestSmallMatrixArith_6f -version -o /var/folders/UU/UU2-eU61GFOx3d6RzbOM4U+++TI/-Tmp-//ccHgDFKV.s GNU C++ (GCC) version 4.5.2 (i386-apple-darwin10.7.0) compiled by GNU C version 4.5.2, GMP version 4.3.2, MPFR version 2.4.2-p3, MPC version 0.8.2 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 GNU C++ (GCC) version 4.5.2 (i386-apple-darwin10.7.0) compiled by GNU C version 4.5.2, GMP version 4.3.2, MPFR version 2.4.2-p3, MPC version 0.8.2 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: e6664107b1963cc863a5b106dc714019 g++-4: Internal error: Segmentation fault (program cc1plus) Please submit a full bug report. See <http://gcc.gnu.org/bugs.html> for instructions. The .ii file is attached (gzipped).