🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #438

Garbage in causes a crash

#438
From: Robert L. McMillin
Date: Wed, 15 Apr 1992 18:36
35 lines
1293 bytes
The following code fragment causes GCC v2.0 to crash:

---
/*
 * A test case to break the GNU C compiler...
 */

struct kaboom
{
    unsigned char	c[16];
};
volatile struct kaboom *k;

void
this_crashes_gnu_c ()
{
     *k;
}

---

This occurs with any of the v2.0 compilers I've tried, both on the Sun
386i running SunOS v4.0 and on the Motorola Delta running SVR3.6.  In
either case, the compiler dies with the following error message:

	gcc: Internal compiler error: program cc1 got fatal signal 6

The above fragment doesn't really seem to mean anything (I caught it as
a result of a coding error on my part), but it does seem that the
compiler shouldn't die like this.

---
Robert L. McMillin                     | Voice:    (310) 568-3555
Hughes Aircraft/Hughes Training, Inc.  | Fax:      (310) 568-3574
Los Angeles, CA                        | Internet: rlm@ms_aspen.hac.com
Technical Details
Message-ID: <9204160836.AA06918@indigo2>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!ms_aspen.hac.com!rlm

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!ms_aspen.hac.com!rlm
From: rlm@ms_aspen.hac.com (Robert L. McMillin)
Subject: Garbage in causes a crash
Message-ID: <9204160836.AA06918@indigo2>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Wed, 15 Apr 1992 18:36:40 GMT
Approved: bug-gcc@prep.ai.mit.edu
Lines: 37