[Mimedefang] RH8 stack issue, can't create threads

Kenneth Porter shiva at sewingwitch.com
Wed Jan 7 11:01:36 EST 2004


When I start MD from the command line ("service mimedefang restart") 
mimedefang is failing to start, unable to spawn threads. I've seen this in 
another program, and I traced it back to the pthread stack stuff in 
glibc-2.3.2-4.80.8. "ulimit -a" reveals that the stack limit is set to 
0x7fffffff and the stack allocator in the library fails trying to allocate 
this. I set it to "ulimit -s 2040" and MD starts properly. Is this a known 
glibc bug, or some weirdness in my setup that's setting the default stack 
size too big?

For now I just added "ulimit -s 2040" to the top of the initscript and 
everything is working fine.

While fighting with this, I determined that "service mimedefang stop" while 
only the multiplexor is running leaves the /var/lock/subsys/mimedefang file 
behind, preventing a subsequent start. Bug in the initscript, I think.



More information about the MIMEDefang mailing list