This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

main() {char data[10000000];} crashes on alpha


[ 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]