Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-Id: <200408121041.MAA00181@gsnet0.lngs.infn.it> Date: Thu, 12 Aug 2004 12:47:32 +0200 In-Reply-To: <1092304835.13420.ezmlm@cygwin.com> Content-Type: text/plain; charset=iso-8859-1 User-Agent: IMHO/0.98.3 (Webmail for Roxen) To: cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit Subject: simple C program crashes at run time From: MIME-Version: 1.0 X-IsSubscribed: yes #include #include #include #define TAGLIA 415 main() { int i, j, k, iran; unsigned int seed; float unran; float mata[TAGLIA][TAGLIA], matb[TAGLIA][TAGLIA], matc[TAGLIA][TAGLIA]; srand(seed); printf("init start...\n"); /* this should init all elements with pseudo-random float values */ for(i=0;i 416 it crashes: sysnaz AT wngsnt ~ $ ./unlucky.exe Segmentation fault (core dumped) $ more unlucky.exe.stackdump Exception: STATUS_STACK_OVERFLOW at eip=00401593 eax=00001774 ebx=00000004 ecx=00032064 edx=00401098 esi=610F3060 edi=61005AC0 ebp=0022F068 esp=0022F05C program=d:\cygwin\home\sysnaz\unlucky.exe, pid 1232, thread main cs=001B ds=0023 es=0023 fs=0038 gs=0000 ss=0023 Stack trace: Frame Function Args 0022F068 00401593 (00000001, 616D5310, 0A0500A8, 0022F0C0) 0022F0A8 61005F54 (0022F0C0, 00000000, 00000000, 00000000) 0022FF88 6100616B (00000000, 00000000, 00000000, 00000000) End of stack trace What does it happen? the same code built on linux doesn't crashes.. Thanks in advance for help. bye. ____________________________________________________________________ -- 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/