Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
From: David Postill <david@postill.org.uk>
To: cygwin@cygwin.com
Subject: Re: stack overflow in cygwin_nt-5.0
Date: Wed, 10 Nov 2004 20:46:07 +0000
Organization: None
Reply-To: david@postill.org.uk
Message-ID: <c9v4p0dtdr0hbcjt8dsivd4tehslnv33jt@4ax.com>
References: <200411101945.iAAJjTDO027006@syrphus.ucdavis.edu>
In-Reply-To: <200411101945.iAAJjTDO027006@syrphus.ucdavis.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-OriginalArrivalTime: 10 Nov 2004 20:46:36.0319 (UTC) FILETIME=[5EBC0AF0:01C4C766]
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id iAAKkdSx005830

On Wed, 10 Nov 2004 11:45:29 -0800 (PST), "Yu-Cheng Chou" <cycchou@ucdavis.edu> wrote:

| 
| I have to use large matrices (even larger) in my application.
| So, how to do it?

C:   <http://www.eskimo.com/~scs/C-faq/q6.16.html>
C++: <http://www.parashift.com/c++-faq-lite/freestore-mgmt.html#faq-16.15>

| 
| >Don't declare huge data structures on the stack.
| 
| >Max.
| 
| >>Hi,
| 
| >>I declared three double matrices in main function and it caused stack 
| >>overflow.
| 
| >>double a[300][300],
| >>       b[300][300],
| >>       c[300][300];
| 
| >>below is the message of stack overflow:
| 
| >>Exception: STATUS_STACK_OVERFLOW at eip=00444683
| >>eax=00013624 ebx=00000004 ecx=00032064 edx=00401060 esi=610EF060 
| >>edi=61005A9C
| >>ebp=0022F068 esp=0022F05C program=C:\home\ycchou\upload\matrix.exe, pid 
| >>2376, thread main
| >>cs=001B ds=0023 es=0023 fs=0038 gs=0000 ss=0023
| >>Stack trace:
| >>Frame     Function  Args
| >>0022F068  00444683  (00000001, 617816A0, 0A0500A8, 0022F0C0)
| >>0022F0A8  61005F34  (0022F0C0, 00000000, 0022F0A8, 00000200)
| >>0022FF88  6100614B  (00000000, 00000000, 00000000, 00000000)
| >>End of stack trace
| 
| 
| >Any patch for this?

<davidp />

-- 
David Postill

--
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/


