This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: simple C program crashes at run time
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 12 Aug 2004 13:02:26 +0200
- Subject: Re: simple C program crashes at run time
- References: <1092304835.13420.ezmlm@cygwin.com> <200408121041.MAA00181@gsnet0.lngs.infn.it>
- Reply-to: cygwin at cygwin dot com
On Aug 12 12:47, user@lngs.infn.it wrote:
>
> #include <stdio.h>
> #include <stdlib.h>
> #include <string.h>
>
> #define TAGLIA 415
> main()
> {
>
> int i, j, k, iran;
> unsigned int seed;
> float unran;
> float mata[TAGLIA][TAGLIA],
> matb[TAGLIA][TAGLIA],
> matc[TAGLIA][TAGLIA];
Your local data is too big for the default stack size of 2 Megs when
you're setting TAGLIA to a value >= 416. Try e. g.
gcc -Wl,--stack=3000000 unlucky.c -o unlucky
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Co-Project Leader mailto:cygwin@cygwin.com
Red Hat, Inc.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/