🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #2559

Bug with large local variables.

#2559
From: Jeff Deifik
Date: Tue, 25 Apr 1989 01:31
25 lines
941 bytes
When I compile the following program with gcc, and run it it, I get
Segmentation fault (core dumped)
When I change the 250000 to 125000, the program runs correctly.
Throwing the 'L' after the number makes no difference.

Version:	gcc 1.34
OS:		Ultrix 2.0-1, also 4.3bsd
Machine:	Vax 11/750
Command line:	gcc -Wall -O -g a.c
tm.h:		tm-vax.h
md:		vax.md
Source:

#include	<stdio.h>
int     main(argc,argv)
int     argc;
char    *argv[];
{
int	a[250000L];

    printf("Hello World\n");
}

	Jeff Deifik	jdeifik@isi.edu
-------
Technical Details
Message-ID: <VAX-MM(187)+TOPSLIB(118).24-Apr-89.17:31:04.ISI.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!isi.edu!JDEIFIK

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!isi.edu!JDEIFIK
From: JDEIFIK@isi.edu (Jeff Deifik)
Newsgroups: gnu.gcc.bug
Subject: Bug with large local variables.
Message-ID: <VAX-MM(187)+TOPSLIB(118).24-Apr-89.17:31:04.ISI.EDU>
Date: 25 Apr 89 01:31:04 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 25