This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
main() {char data[10000000];} crashes on alpha
- To: gcc-bugs at gcc dot gnu dot org
- Subject: main() {char data[10000000];} crashes on alpha
- From: Matthias Klose <doko at cs dot tu-berlin dot de>
- Date: Fri, 26 Jan 2001 00:16:17 +0100 (MET)
- CC: 65364 at bugs dot debian dot org
[ http://bugs.debian.org/65364 submitted to the Debian BTS;
please CC 65364@bugs.debian.org on replies]
same behaviour at least in CVS 20010102.
falk@borkum:~/src/pq% cat bug.c
int main() {
char data[10000000];
return 0;
}
falk@borkum:~/src/pq% gcc bug.c -o bug
falk@borkum:~/src/pq% ./bug
zsh: segmentation fault (core dumped) ./bug
Slightly less, like 5000000, works ok.
I have 128 MB of memory, so that shouldn't be the problem.
It also works on i386.
Falk