Try setting/increasing the stacksize in the nsd config file. There are two occurences of stacksize in the config file and I don't know which one is the right one, thus I have both in mine:
ns_section "ns/parameters"
ns_param StackSize [expr 1024 * 1024]
ns_section "ns/threads"
ns_param stacksize [expr 1024 * 1024]
Could someone who knows it please post the recommended settings? (Maybe also as a comment on http://openacs.org/doc/openacs-4/aolserver.html) Thanks