From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26092 invoked by alias); 11 May 2010 14:50:35 -0000 Received: (qmail 25988 invoked by uid 48); 11 May 2010 14:50:14 -0000 Date: Tue, 11 May 2010 14:50:00 -0000 Subject: [Bug c/44083] New: gcc v 4.2.2: gcc -H gives segmentation violation X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "rogier dot wester at asml dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-05/txt/msg01148.txt.bz2 below you find the information on my host system and the used gcc command. I tried to use a pre-compiled header file. There is one file that includes two include files which both include another (the same) header file. I wanted to see whether the pre-compiled header file was taken from both include files and used the -H option to see this. In that case the compiled gave a segmentation violation after dumping the information I was looking for, see log below. Not sure yet how I attach the files to this bug report yet, my first time filing, hope I will get that option still. nlvdhw99:~ % uname -X System = SunOS Node = nlvdhw99 Release = 5.8 KernelID = Generic_117350-52 Machine = sun4u BusType = Serial = Users = OEM# = 0 Origin# = 1 NumCPU = 2 nlvdhw99:~ % gcc -H -v aap.c Using built-in specs. Target: sparc-sun-solaris2.8 Configured with: ../configure --prefix=/cadappl/gcc/4.4.2/gcc --enable-languages=c,c++ --with-gmp-lib=/shared/caddev/wblanken/5.8/gcc_4.4.2/gcc/4.4.2/SunOS_5.8/cadenv_home/cadlib:/usr/lib:/usr/ccs/lib:/usr/dt/lib:/usr/openwin/lib --with-gmp-include=/shared/caddev/wblanken/5.8/gcc_4.4.2/gcc/4.4.2/SunOS_5.8/cadenv_home/cadinc --with-mpfr-lib=/shared/caddev/wblanken/5.8/gcc_4.4.2/gcc/4.4.2/SunOS_5.8/cadenv_home/cadlib:/usr/lib:/usr/ccs/lib:/usr/dt/lib:/usr/openwin/lib --with-mpfr-include=/shared/caddev/wblanken/5.8/gcc_4.4.2/gcc/4.4.2/SunOS_5.8/cadenv_home/cadinc --without-gnu-as --with-ld=/usr/ccs/bin/as --without-gnu-ld --with-ld=/usr/ccs/bin/ld --disable-nls Thread model: posix gcc version 4.4.2 (GCC) COLLECT_GCC_OPTIONS='-H' '-v' '-mcpu=v9' /home/cadappl/gcc/4.4.2/gcc/bin/../libexec/gcc/sparc-sun-solaris2.8/4.4.2/cc1 -quiet -v -iprefix /home/cadappl/gcc/4.4.2/gcc/bin/../lib/gcc/sparc-sun-solaris2.8/4.4.2/ -H -D__sparcv8 aap.c -quiet -dumpbase aap.c -mcpu=v9 -auxbase aap -version -o /tmp/ccIk0iI1.s ignoring nonexistent directory "/home/cadappl/gcc/4.4.2/gcc/bin/../lib/gcc/sparc-sun-solaris2.8/4.4.2/../../../../sparc-sun-solaris2.8/include" ignoring duplicate directory "/home/cadappl/gcc/4.4.2/gcc/bin/../lib/gcc/../../lib/gcc/sparc-sun-solaris2.8/4.4.2/include" ignoring duplicate directory "/home/cadappl/gcc/4.4.2/gcc/bin/../lib/gcc/../../lib/gcc/sparc-sun-solaris2.8/4.4.2/include-fixed" ignoring nonexistent directory "/home/cadappl/gcc/4.4.2/gcc/bin/../lib/gcc/../../lib/gcc/sparc-sun-solaris2.8/4.4.2/../../../../sparc-sun-solaris2.8/include" #include "..." search starts here: #include <...> search starts here: /home/cadappl/gcc/4.4.2/gcc/bin/../lib/gcc/sparc-sun-solaris2.8/4.4.2/include /home/cadappl/gcc/4.4.2/gcc/bin/../lib/gcc/sparc-sun-solaris2.8/4.4.2/include-fixed /usr/local/include /home/cadappl/gcc/4.4.2/gcc/bin/../lib/gcc/../../include /usr/include End of search list. GNU C (GCC) version 4.4.2 (sparc-sun-solaris2.8) compiled by GNU C version 4.4.2, GMP version 4.3.2, MPFR version 2.4.2. GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: 23aa22944bc3d068ec8ac37d8068444b . noot.h .! aap.h.gch noot.h mies.h . aap.h mies.h:15: internal compiler error: Segmentation Fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. -- Summary: gcc v 4.2.2: gcc -H gives segmentation violation Product: gcc Version: 4.4.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: rogier dot wester at asml dot com GCC host triplet: Sun GCC target triplet: Sun http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44083