Forum OpenACS Q&A: aolserver 4 bootstrap fails

Collapse
Posted by Jarkko Laine on
I finally got all the bells and whistles compiled on Mac OS X, but when trying to launch nsd, the bootstrap fails with the following error:
[22/Jul/2003:23:28:42][605.2684358124][-main-] Notice: modload: loading '/usr/local/aolserver/bin/nslog.so'
nsthreads: pthread_attr_setstacksize failed in NsCreateThread: Invalid argument
Abort trap
What could be the reason for this?
Collapse
Posted by Don Baccus on
Do you have your limits set correctly?  Max OS X sets them pretty low, to install Oracle you need to override the defaults.  I've incorporated the ulimit values from Oracle's install directory in /etc/profile and have had no problems:

ulimit -c unlimited
ulimit -d unlimited
ulimit -s 65536

Collapse
Posted by Jarkko Laine on
Thx Don,

I'm using Postgres, though, but I guess this applies even with it. I put the lines in /etc/profile, but it didn't help, even after rebooting the whole box. The behaviour changed a bit, though: now I even get "(core dumped)" after the errors given above.

Collapse
Posted by russ m on
on OSX the per thread stack must be sized to a multiple of 8K...
ns_section "ns/threads"
ns_param stacksize [expr 8192 * whatever]
Collapse
Posted by Jarkko Laine on
Thanks Russell, that did the trick.