This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug nptl/386] pthread_create returns ENOMEM but should return EAGAIN
- From: "mmontgomery at mysql dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 29 Mar 2007 20:11:09 -0000
- Subject: [Bug nptl/386] pthread_create returns ENOMEM but should return EAGAIN
- References: <20040915163338.386.sebastien.decugis@ext.bull.net>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From mmontgomery at mysql dot com 2007-03-29 21:11 -------
Hello,
If you set ulimit -s 512000 (thread_stack) on a 32bit system with >2GB RAM it is
possible to get pthread_create to return ENOMEM. Strangely, ulimit -s unlimited
or ulimit -s 8192 does not produce this ENOMEM result.
Does pthread_create allocate a whole thread_stack size buffer for each thread if
a ulimit -s is defined?
See: http://bugs.mysql.com/bug.php?id=27487
OS error code 12: Cannot allocate memory
InnoDB: Error: pthread_create returned 12
070329 14:54:41 mysqld ended
This behavior has been experienced on:
RHEL3 (2.4.21-37.ELsmp)
and
SuSE 10.1 (2.6.16.13-4-default)
glibc-2.4-31
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
http://sourceware.org/bugzilla/show_bug.cgi?id=386
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.