Forum OpenACS Q&A: Response to AOLserver unexpectedly restarting

Collapse
Posted by Jeff Davis on
Set and env variable you need (and you might want to
change the server to listen on a high port so you can
do this w/o being root)...
<pre>
strace -f -o t.log nsd8x -f -t server.tcl
</pre>
When it dies look at the end of t.log
<p>
With gdb
<pre>
gdb nsd8x
(gdb) run -f -t server.tcl
</pre>
when the process dies you should be able to tell if it was an
exit or get a stack trace if not (with the "where" command).
You might have to "set follow-fork-mode child" before the run but I
can't remember off the top of my head.