Article View: gnu.gcc.bug
Article #357gnu cpp 2.1
From: Lextrait Vincent
Date: Fri, 10 Apr 1992 19:42
Date: Fri, 10 Apr 1992 19:42
42 lines
2092 bytes
2092 bytes
gnu cpp 2.1 aborts with Memory fault on the following input file :
BEGINNING OF FILE
#define AslProgrTarg(program) @@\
_OBJS:SH=setsuf .c .o $(C_SRCS) @@\
${NX} -DUTILITY=\"program\" ${NXOPTS} $< @@\
/*-----------------------------------------------------------------------
*-----------------------------------------------------------------------*/
install:: all @@\
$(INSTALL) -c $(INSTALLFLAGS) program $(BINDIR)
#define NxObjServers() @@\
$(_VS_SRV): @@\
exit 1) @@\
@@\
_o_$(_VS_SRV): @@\
@mkdir $@ @@\
@@\
_o_$(_VS_SRV)/$(VSMAKEFILE): @@\
@(echo "VSL_UTIL=SRVC" >> $@ ;\ @@\
END OF FILE
My cpp is compiled on a SparcStation1 running SunOs 4.1.0 (I use gcc 2.1)
Here is the output of gdb:
$ gdb /usr/local/gcc/cpp
GDB is free software and you are welcome to distribute copies of it
under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.4, Copyright 1991 Free Software Foundation, Inc...
(gdb) run reduced
Starting program: /usr/local/gcc/cpp reduced
Program received signal 10, Bus error
0x90ec in handle_directive (ip=0x2d2d2d2d, op=0x2d2d2d2d) at cccp.c:3363
3363 ip->bufp = resume_p;
(gdb) bt
#0 0x90ec in handle_directive (ip=0x2d2d2d2d, op=0x2d2d2d2d) at cccp.c:3363
#1 0x6584 in rescan (op=0x40400965, output_marks=2020176928) at cccp.c:2289
#2 0x5400 in main (argc=Cannot access memory at address 0x5256297e.
(gdb)
Some information has been written onto the stack. (Overflow of the area
reserved by alloca ?).
Vincent Lextrait
University of Nice
lextrait@essi.cerisi.fr
Technical Details
Message-ID:
<9204101542.AA28093@essi.cerisi.fr>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!essi.cerisi.fr!lextraitShow Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!essi.cerisi.fr!lextrait From: lextrait@essi.cerisi.fr (Lextrait Vincent) Subject: gnu cpp 2.1 Message-ID: <9204101542.AA28093@essi.cerisi.fr> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Fri, 10 Apr 1992 19:42:12 GMT Approved: bug-gcc@prep.ai.mit.edu Lines: 43