🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Lextrait Vincent Fri, 10 Apr 1992 19:42
gnu cpp 2.1
#357
Author: Lextrait Vincent
Date: Fri, 10 Apr 1992 19:42
42 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads