Article View: gnu.gcc.bug
Article #6322Memory allocation bug (?)
From: Joonas Lehtinen
Date: Tue, 19 Dec 1995 00:00
Date: Tue, 19 Dec 1995 00:00
18 lines
939 bytes
939 bytes
I found that next simple program compiles with gcc
(tested with version 2.6.0 in Solaris and 2.7.0 in linux 1.3.30)
-----
#include <stdio.h>
main()
{
int i;
char a[26000001];
for (i=0; i<26000000; i++) a[i] = 0;
}
-----
Problem is that it gives me Segmentation Fault.
When I compile it with AIX XL C compiler under AIX it works correctly.
==-- Joonas Lehtinen -=- University of Turku -=- jojule@utu.fi --==
==-- GSM +358-40-5035001 -=- http://cray.tuug.utu.fi/~phoenix/ --==
Technical Details
Message-ID:
<Pine.LNX.3.91.951219175937.3124A-100000@cray.tuug.utu.fi>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 113d02,fa1a7c33c9297a85 X-Google-Attributes: gid113d02,public From: phoenix@cray.tuug.utu.fi (Joonas Lehtinen) Subject: Memory allocation bug (?) Date: 1995/12/19 Message-ID: <Pine.LNX.3.91.951219175937.3124A-100000@cray.tuug.utu.fi> X-Deja-AN: 122307802 distribution: gnu sender: daemon@cis.ohio-state.edu organization: GNUs Not Usenet newsgroups: gnu.gcc.bug