Bug 65794 - shell stack limit 'unlimited' provides (small) hardcoded size
Summary: shell stack limit 'unlimited' provides (small) hardcoded size
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: libc
Version: 7.2
Hardware: i686
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-05-31 18:46 UTC by Suresh Rao
Modified: 2008-05-01 15:38 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-05-31 18:46:28 UTC
Embargoed:


Attachments (Terms of Use)

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. ***


Note You need to log in before you can comment on or make changes to this bug.