X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Subject: Increased auto array size and now get SIGSEGV Date: Thu, 1 Apr 2004 11:12:29 -0500 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Increased auto array size and now get SIGSEGV Thread-Index: AcQYBCDYLRKkPSEORFePZT1SP43eMA== From: "John Bond" To: Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id i31GCYAQ025680 Reply-To: djgpp AT delorie DOT com 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. Thanks in advance. John Bond Principle Software Test Engineer Ai-Logix, Inc. 580 Howard Ave. Somerset, NJ 08873 Office: 732-469-0880 Ext.128 www.ai-logix.com What's inside matters