🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Michael J. Corrigan Sat, 23 Jan 1993 02:15
libg++-2.3/gcc-2.3.3.u3 core dump on 7xx and 8x7
#1642
Author: Michael J. Corrigan
Date: Sat, 23 Jan 1993 02:15
26 lines
2066 bytes
This example (excerpted from Stroustrup, 2nd edn p.88 ) creates a 20 MB
core dump on hppa1.1 systems ( 7xx and 8x7).
libg++-2.3 is built using gcc-2.3.3.u3 from Utah sand the most recent patches
posted for building libg++-2.3 on the hp700.

--------------CUT---------------------
#include <strstream.h>
int main(int argc,char *argv[]) {
	cin = *new istrstream(argv[1],strlen(argv[1]));
}
--------------CUT---------------------
The compile will complete successfully if the cast is made:

	cin = (istream) *new istrstream(argv[1],strlen(argv[1]));

(P.S. make CFLAGS="-O" LANGUAGES="c" to make the gcc stage1 compiler doesn't
work on the 8x7 as the time to compile c-decl.c is inordinate, although
it apparently does work on the 7xx ==> bug in -O on the 8x7 )

Reading specs from /usr/local/lib/gcc-lib/hp700-hpux/2.3.3/specs
gcc version 2.3.3
 /usr/local/lib/gcc-lib/hp700-hpux/2.3.3/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -Dhppa -Dhp9000s800 -D__hp9000s800 -Dhp9k8 -DPWB -Dhpux -Dunix -D_HPUX_SOURCE -D__hppa__ -D__hp9000s800__ -D__hp9000s800 -D__hp9k8__ -D__PWB__ -D__hpux__ -D__unix__ -D___HPUX_SOURCE__ -D__hppa -D__hp9000s800 -D__hp9000s800 -D__hp9k8 -D__PWB -D__hpux -D__unix -D___HPUX_SOURCE -D__hp9000s700 -D_PA_RISC1_1 -D__hp9000s700 -D_PA_RISC1_1 bug.cc /tmp/cca19829.i
GNU CPP version 2.3.3 (hppa)
 /usr/local/lib/gcc-lib/hp700-hpux/2.3.3/cc1plus /tmp/cca19829.i -quiet -dumpbase bug.cc -version -o /tmp/cca19829.s
GNU C++ version 2.3.3 (hppa) compiled by GNU C version 2.3.3.
 /usr/local/lib/gcc-lib/hp700-hpux/2.3.3/as -o bug.o /tmp/cca19829.s
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