X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Cesar Rabak 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: NNTP-Posting-Host: 200.234.97.194 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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