httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joachim Zobel <jzo...@heute-morgen.de>
Subject Child pool not usable for logging
Date Sat, 05 May 2007 09:42:23 GMT
Hi.

I am currently trying to track down a glibc memory corruption. To do
this I tried the following (see below). This is done on prefork.

However no logging takes place. Is there something obvious I am doing
wrong?

Thx,
Joachim

----------------------------------------------------------------------
static apr_pool_t *p_cur = NULL;

void xml2_set_current_pool(apr_pool_t * p)
{
    // Needed for free-logging
    p_cur = p;
}

static void xml2_child_init(apr_pool_t * p, server_rec * s)
{
    xml2_set_current_pool(p);
....

In a function called from an external library I do

static void xml2_free(void *emem)
{
    ......

        ap_log_perror(APLOG_MARK, APLOG_DEBUG, 0, p_cur,
                "xml2_free will free %x.", mem);
        free(mem);
}





Mime
View raw message