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);
}