[Zope] Aiieeee!!!! How do I get Zope/Python to produce a core

Jon Prettyman jprettyman@acm.org
15 Mar 2000 09:04:01 -0800


With my Zope server crashing about 6 times a day, how can I get the
durned thing to generate a core file?

I have this in my start script:

#! /bin/bash
reldir=`dirname $0`
PYTHONHOME=`cd $reldir; pwd`
export PYTHONHOME
STUPID_LOG_FILE=$PYTHONHOME/var/event.log
export STUPID_LOG_FILE
ulimit -c unlimited
ulimit -a
/usr/bin/python \
     $PYTHONHOME/z2.py \
     "$@"

Which produces this on startup:
core file size (blocks)  unlimited
data seg size (kbytes)   unlimited
file size (blocks)       unlimited
max memory size (kbytes) unlimited
stack size (kbytes)      8192
cpu time (seconds)       unlimited
max user processes       2048
pipe size (512 bytes)    8
open files               1024
virtual memory (kbytes)  2105343

But when I crash with an Aiieeeee error 11, I get no core file.

Box is Redhat 6.1 2.2.12-20.  

I'm able to generate core files from some trashy c code just fine.

-Jon