Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-Id: <5.2.0.9.2.20030320081120.02bd0380@pop3.cris.com> X-Sender: rrschulz AT pop3 DOT cris DOT com Date: Thu, 20 Mar 2003 08:18:07 -0800 To: cygwin AT cygwin DOT com From: Randall R Schulz Subject: Re: How to increase stack size!!! In-Reply-To: <003901c2eec0$43070420$92051a81@lapmanoonpong> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Hi, A screen capture is a bit excessive, is it not? I'm not sure which shell you're using. Probably it's /bin/sh, which under Cygwin is "ash." Under BASH the diagnostic is a bit more enlightening: % ulimit -s 2046 % ulimit -s 4096 bash: ulimit: stack size: cannot modify limit: Invalid argument This is the real answer. The system call to which the ulimit shell built-in delegates its work is not implemented in Cygwin. I believe link-time is the only way to override the default stack allotment is during compilation (or linking, as the case may be): E.g. (from a message by Gerrit P. Haase, subject "Re: increase stacksize" sent Wed, 17 Jul 2002 15:54:42 +0200): gcc -Wl,--stack,8388608 -o your.exe your.source.c Randall Schulz At 01:08 2003-03-20, Poramate Manoonpong wrote: >Hi all, > >I have just started to use cygwin and I got the problem about stack >size because it was "stack overflow" when I run ODE (simulation) . I >already tried to increase the stack size but it didn't work. Anyway, >you can see my problem from following picture. > >Please tell me , how to increase the stack size or to make it unlimited. > >Thank you >P.Manoonpong -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/