delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/04/01/11:45:07

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Cesar Rabak <crabak AT acm DOT org>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Increased auto array size and now get SIGSEGV
Date: Thu, 01 Apr 2004 13:34:17 -0300
Lines: 10
Message-ID: <406C4489.5040301@acm.org>
References: <ACAAE6BD7520AB4CB2744D1D1BAD3A2B7094A5 AT jupiter DOT insideai DOT com>
NNTP-Posting-Host: 200.234.97.194
Mime-Version: 1.0
X-Trace: news.uni-berlin.de 1080837245 87597503 I 200.234.97.194 ([39218])
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.0.2) Gecko/20030208 Netscape/7.02
X-Accept-Language: pt-br, pt
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

John Bond escreveu:
> My PCI board testing application is now huge.  I think I am violating the stack size.  The symptom is SIGSEGV within functions that use large arrays.  All I did today was increase the size of two text arrays that are automatic variables in certain class methods.  The arrays are local to the member functions and are not static.  Some time after the class comes into scope, some function is called (not necessarily a member function) with a large local array and the program crashes.  The location of the crash changes as I change the size of the local arrays in member functions not yet invoked.
> 
> If I knew how to expand the size of my stack, I could test my theory.
> 
> Who knows how to expand the stack in DJGPP?  I could not find the word "stack" in the "gcc -dumpspecs" output.
> 
FAQ 6.6


- Raw text -


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