httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Behlendorf <>
Subject thought on core dumping...
Date Fri, 08 May 1998 07:54:50 GMT
in sig_coredump we have:

    ap_snprintf(emsg, sizeof(emsg),
                "httpd: caught %s, attempting to dump core in %s",
                s, ap_coredump_dir);
    ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_NOTICE, server_conf, emsg);

an ap_snprintf and an ap_log_error seem like a lot to ask from an
executable in a shaky state.  In fact I had a runaway earlier today, a
process failing to do an ap_get_time under ap_log_error, aftet hitting the
CGI bug which got fixed today.  The problem was that it was a runaway
instead of just a death.

Maybe for 1.3.1+ - could sig_coredump instead put a flag in the scoreboard,
and the parent process would see that flag and log the core dump?  Logging
the core dump is important, I agree.  But getting a usable core image is
almost more important.


pure chewing satisfaction                        

View raw message