Bug 133755
Summary: | the commands "host" and "nslookup" fail at a certain stack size limit | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 3 | Reporter: | Gerhard Niederwieser <gerhard.niederwieser> |
Component: | bind | Assignee: | Jason Vas Dias <jvdias> |
Status: | CLOSED NOTABUG | QA Contact: | Ben Levenson <benl> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 3.0 | CC: | helmut.pedit |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2004-09-27 17:02:06 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
Gerhard Niederwieser
2004-09-27 08:43:07 UTC
This is actually caused by glibc : pthread_create() : If the stack size rlimit is not "unlimited", pthread_attr_init() returns the current stack size limit as the thread stacksize attribute, which BIND then uses to allocate its thread stacks by calling pthread_create . Since the stack size rlimit is unreasonablly large in this case (> 2GB), presumably more than the machine's physical memory, then the stack allocation fails, pthread_create fails, and the BIND library is unable to create threads and generates an ABORT . Remember that resource limits are set in KILO-BYTES, so 'ulimit -s 2097151' sets it to 2,147,482,624 bytes (2GB). If the stacksize rlimit is unlimited, pthread_attr_getstacksize() returns < 0, so BIND uses a default stacksize of 2101248 bytes (2052 kilo-bytes). Using a reasonable stack size, say with 'ulimit -s 2060', works fine. BIND is correctly using the recommended thread stack size as returned by pthread_attr_getstacksize() - hence, this is not a BIND bug. If you still believe this to be a bug, reopen it and change the "Component" to glibc . |