🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #6207

Correct program dumps core

#6207
From: Bas V. de Bakker
Date: Wed, 10 Jan 1996 00:00
34 lines
1113 bytes
GCC version:

Reading specs from /usr/local/lib/gcc/lib/gcc-lib/rs6000-ibm-aix3.2.5/2.7.2/specs
gcc version 2.7.2

Machine: IBM RS6000 running AIX 3.2.5

Problem:

% gcc -o bug bug.i
% ./bug
zsh: segmentation fault (core dumped)  ./bug

where as far as I can see bug.i (reproduced below) is correct and
should not get a SEGV.  In fact, it does not do so with either IBM xlc
or gcc 2.5.8.

Regards,
Bas de Bakker
------------------------------------------------------------------------
# 1 "bug.c"
int main(int argc, char** argv)
{
  int i = 0;
  double dummy;
  double array[4096];

  array[0] = (double)i;

  for (i = 0; i < 2; i++) 
    dummy = (double)i;

  return 0;
}
Technical Details
Message-ID: <199601101447.AA21029@phys.uva.nl>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 113d02,16cf1554afaac56c,start
X-Google-Attributes: gid113d02,public
From: bas@phys.uva.NL (Bas V. de Bakker)
Subject: Correct program dumps core
Date: 1996/01/10
Message-ID: <199601101447.AA21029@phys.uva.nl>
X-Deja-AN: 134785504
distribution: gnu
sender: daemon@cis.ohio-state.edu
organization: GNUs Not Usenet
newsgroups: gnu.gcc.bug