Bug 65794

Summary: shell stack limit 'unlimited' provides (small) hardcoded size
Product: [Retired] Red Hat Linux Reporter: Suresh Rao <suresh.k.rao>
Component: libcAssignee: Jakub Jelinek <jakub>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2CC: don
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-05-31 18:46:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Suresh Rao 2002-05-31 18:46:22 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt)

Description of problem:
Setting a shell stack limit of 'unlimited' gives a (small) finite hardcoded 
stacksize from the pthread initialization, but setting a particular value that 
can be quite large honors the setting and gives you that value.  This appears 
very counter-intuitive to users. Could 'unlimited' be set to mean really 
unlimited, or at least very very large.


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
N/A

Additional info:

Comment 1 Jakub Jelinek 2002-05-31 19:14:45 UTC
Having stack limit set to unlimited is pretty common and this would mean
no threads. 8MB is not that small (sufficient for most threaded apps) and
you can have reasonable amount of threads created at the same time.
If an application has special requirements (be it lots of threads with small
stacks or just a few stack hungry threads), you can always setrlimit before
first pthread_create call.

Comment 2 Pekka Pietikäinen 2004-10-23 12:14:58 UTC
*** Bug 135741 has been marked as a duplicate of this bug. ***