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]

preprocessor/2151: `gcc -E -' makes core dump



>Number:         2151
>Category:       preprocessor
>Synopsis:       `gcc -E -' makes core dump
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Mar 02 08:56:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Alexander Klimov
>Release:        3.1 20010302 (CVS)
>Organization:
>Environment:
SunOS iridium 5.6 Generic_105181-20 sun4u sparc SUNW,Ultra-5_10
>Description:
For configuration perl uses commands like this:
echo "#include <stdio.h>" | gcc -E -
and result is
gcc: Internal error: Segmentation Fault (program cpp0)

from the other hand
echo "#include <stdio.h>" >a.c; gcc -E a.c |wc -l
     175
works OK.

gdb /usr/local/gcc/lib/gcc-lib/sparc-sun-solaris2.6/3.1/cpp0 core
(gdb) where
#0  0xef6e0594 in memcpy () from /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1
Cannot access memory at address 0x891020

I installed gcc with following:
../gcc/configure --prefix=${PREFIX}  --with-cpu=ultrasparc --enable-languages='c++,objc,f77' && \
make CFLAGS='-O2' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2 -fno-implicit-templates' bootstrap && \
make install
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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