Article View: gnu.g++.bug
Article #474G++ segmentation violation on wrong input
From: Norbert Kiesel
Date: Thu, 05 Oct 1989 12:32
Date: Thu, 05 Oct 1989 12:32
40 lines
2267 bytes
2267 bytes
The following (wrong) program causes cc1plus to crash with segmentation
violation.
The compiler runs on a Sun 3/50 with SunOS 4.0.1
% cat seg-vio.cc
struct I { int i; } // ; missing
main() { I::i; }
% g++ -v -o seg-vio seg-vio.cc
g++ version 1.35.0
/global/lib/gcc-cpp -+ -v -undef -D__GNU__ -D__GNUG__ -D__cplusplus -Dmc68000 -Dsun -Dunix -D__mc68000__ -D__sun__ -D__unix__ -D__HAVE_68881__ -Dmc68020 seg-vio.cc /tmp/cca02250.cpp
GNU CPP version 1.35
/global/lib/gcc-cc1plus /tmp/cca02250.cpp -quiet -dumpbase seg-vio.cc -noreg -version -o /tmp/cca02250.s
GNU C++ version 1.35.0 (68k, MIT syntax) compiled by GNU C version 1.35.
In function struct I main ():
seg-vio.cc:3: Segmentation violation
g++: Program cc1plus got fatal signal 11.
*** Error code 1
make: Warning: Target `seg-vio' not remade because of errors
Compilation finished at Thu Oct 5 14:18:19
so long
Norbert
*******************************************************************************
* Norbert Kiesel NN NN KK KK *
* Institut fuer Informatik III NNN NN KK KK *
* RWTH Aachen NN N NN KK KK *
* NN N NN KKKK *
* Tel.: (0241) 80-7266 NN N NN KKKK *
* NN N NN KK KK *
* EUNET: norbert@rwthi3.uucp NN N NN KK KK *
* ...!mcvax!unido!rwthi3!norbert NN NNN KK KK *
*******************************************************************************
Technical Details
Message-ID:
<8910051232.AA02264@rwthi3.informatik.rwth-aachen.de>Path:
arc1-ca.pugleaf.net!utzoo!yunexus!telly!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!shelby!apple!gem.mps.ohio-state.edu!wuarchive!cs.utexas.edu!tut.cis.ohio-state.edu!UUNET.UU.NET!unido!rwthinf!rwthi3!norbertShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!yunexus!telly!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!shelby!apple!gem.mps.ohio-state.edu!wuarchive!cs.utexas.edu!tut.cis.ohio-state.edu!UUNET.UU.NET!unido!rwthinf!rwthi3!norbert From: unido!rwthinf!rwthi3!norbert@UUNET.UU.NET (Norbert Kiesel) Newsgroups: gnu.g++.bug Subject: G++ segmentation violation on wrong input Message-ID: <8910051232.AA02264@rwthi3.informatik.rwth-aachen.de> Date: 5 Oct 89 12:32:54 GMT Article-I.D.: rwthi3.8910051232.AA02264 Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 40