delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/11/10/15:46:43

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
From: David Postill <david AT postill DOT org DOT uk>
To: cygwin AT cygwin DOT com
Subject: Re: stack overflow in cygwin_nt-5.0
Date: Wed, 10 Nov 2004 20:46:07 +0000
Organization: None
Reply-To: david AT postill DOT org DOT uk
Message-ID: <c9v4p0dtdr0hbcjt8dsivd4tehslnv33jt@4ax.com>
References: <200411101945 DOT iAAJjTDO027006 AT syrphus DOT ucdavis DOT edu>
In-Reply-To: <200411101945.iAAJjTDO027006@syrphus.ucdavis.edu>
MIME-Version: 1.0
X-OriginalArrivalTime: 10 Nov 2004 20:46:36.0319 (UTC) FILETIME=[5EBC0AF0:01C4C766]
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 AT ucdavis DOT 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/


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019