delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/02/13/06:57:37

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Mon, 13 Feb 2012 12:56:44 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: cygwin > 1.7.9: Segmentation faults / STATUS_STACK_OVERFLOW
Message-ID: <20120213115644.GA23954@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <0C11C5BF0B29FD43A8D0250F711D497F89E1DD585C AT ex01-ubitronix DOT ubitronix DOT local> <20120207164548 DOT GD3178 AT calimero DOT vinschen DOT de> <0C11C5BF0B29FD43A8D0250F711D497F89E1DD5886 AT ex01-ubitronix DOT ubitronix DOT local> <20120210162458 DOT GB4843 AT calimero DOT vinschen DOT de> <20120210163053 DOT GC4843 AT calimero DOT vinschen DOT de> <0C11C5BF0B29FD43A8D0250F711D497F89E1DD588E AT ex01-ubitronix DOT ubitronix DOT local>
MIME-Version: 1.0
In-Reply-To: <0C11C5BF0B29FD43A8D0250F711D497F89E1DD588E@ex01-ubitronix.ubitronix.local>
User-Agent: Mutt/1.5.21 (2010-09-15)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

On Feb 13 10:22, Manuel Wienand wrote:
> Hi Corinna,
> 
> thanks for the info about the stack sizes.
> 
> >     [...]
> >     pthread_attr_t attr;
> >     pthread_attr_init (&attr);
> >     pthread_attr_setstacksize (&attr, 1024 * 1024);
> > 
> >     ret = pthread_create(&threadId, &attr, callGlob, NULL);
> >     [...]
> 
> Jep, that works for me.

Apart from that I set the default stack size to 1 Megs.

Thanks for your testcase, btw.

It helped me a lot to understand how Windows handles the stack and the
stack guard pages.  With its help I also found two long-standing
problems in glob().  When I added the glob implementation from FreeBSD,
I made some innocent changes which turned out to waste a lot of stack
space.  And, at the time we had no locale support so I removed it from
the code, so I took the opportunity to add locale support back into the
code.

I'm still testing one of my changes before checking in, but I'm almost
GTG.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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