delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/03/20/11:17:02

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
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 <rrschulz AT cris DOT com>
Subject: Re: How to increase stack size!!!
In-Reply-To: <003901c2eec0$43070420$92051a81@lapmanoonpong>
Mime-Version: 1.0

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/

- Raw text -


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