Article View: gnu.gcc.bug
Article #1642libg++-2.3/gcc-2.3.3.u3 core dump on 7xx and 8x7
From: Michael J. Corrigan
Date: Sat, 23 Jan 1993 02:15
Date: Sat, 23 Jan 1993 02:15
26 lines
2066 bytes
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
Technical Details
Message-ID:
<1jojisINN27b@network.ucsd.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!weber.ucsd.edu!corriganShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!weber.ucsd.edu!corrigan From: corrigan@weber.ucsd.edu (Michael J. Corrigan) Newsgroups: gnu.gcc.bug Subject: libg++-2.3/gcc-2.3.3.u3 core dump on 7xx and 8x7 Date: 22 Jan 1993 21:15:37 -0500 Organization: University of California, San Diego Lines: 28 Sender: daemon@cis.ohio-state.edu Approved: bug-gcc@prep.ai.mit.edu Distribution: gnu Message-ID: <1jojisINN27b@network.ucsd.edu>