apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Possible memory leak involved in ap_rflush and friends?
Date Thu, 17 Jul 2014 14:32:06 GMT
All,

A user recently reported a problem with mod_jk leaking memory 8k at a
time when a certain option was enabled in the mod_jk configuration. He
included a "debugdiag" (some kinda Windows thing) trace of where memory
was being allocated and the trace goes from mod_jk into httpd/apr.

The code in mod_jk is pretty straightforward in the ws_flush function:

static void JK_METHOD ws_flush(jk_ws_service_t *s)
{
#if ! (defined(AS400) && !defined(AS400_UTF8))
    if (s && s->ws_private) {
        apache_private_data_t *p = s->ws_private;
        ap_rflush(p->r);
    }
#endif
}

apache_private_data_t->r is (somewhat obviously) a request_rec pointer.

Could someone take a look and see if anything looks fishy, either in the
way we're using this, or possibly if httpd/apr might be the cause? The
version or APR in question is 1.5.0.

https://issues.apache.org/bugzilla/show_bug.cgi?id=56733

Thanks,
-chris


Mime
View raw message