Hi,
I have detected that the variable log_hash of mod_log_config is not initialized
correctly. It causes a core on Solaris...
Find enclosed the patch I have used to fix the problem.
Cheers
Jean-frederic
Index: mod_log_config.c
===================================================================
RCS file: /home/cvs/apache/httpd-2.0/modules/loggers/mod_log_config.c,v
retrieving revision 1.54
diff -u -r1.54 mod_log_config.c
--- mod_log_config.c 2001/04/18 21:06:07 1.54
+++ mod_log_config.c 2001/04/20 11:59:58
@@ -209,7 +209,7 @@
static int xfer_flags = (APR_WRITE | APR_APPEND | APR_CREATE);
static apr_fileperms_t xfer_perms = APR_OS_DEFAULT;
-static apr_hash_t *log_hash;
+static apr_hash_t *log_hash=NULL;
/* POSIX.1 defines PIPE_BUF as the maximum number of bytes that is
* guaranteed to be atomic when writing a pipe. And PIPE_BUF >= 512
@@ -1148,6 +1148,8 @@
log_struct->func = handler;
log_struct->want_orig_default = def;
+ if (log_hash==NULL)
+ log_hash = apr_hash_make(p);
apr_hash_set(log_hash, tag, 1, (const void *)log_struct);
}
@@ -1155,7 +1157,8 @@
{
static APR_OPTIONAL_FN_TYPE(ap_register_log_handler) *log_pfn_register;
- log_hash = apr_hash_make(p);
+ if (log_hash==NULL)
+ log_hash = apr_hash_make(p);
log_pfn_register = APR_RETRIEVE_OPTIONAL_FN(ap_register_log_handler);
if (log_pfn_register) {