Observed with huge config and mod_security using long config lines.
Backport of r1863179 from trunk.
Proposed by: rjung
Backported by: rjung
Reviewed by: rjung, icing, jim
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@
1863596 13f79535-47bb-0310-9956-
ffa450edef68
https://svn.apache.org/repos/asf/httpd/httpd/patches/2.4.x/ssl-certicate-hooks.patch
+1: icing, jorton, jim
- *) core: fix crash when running with apr lib build with APR_POOL_DEBUG.
- Observed with huge config and mod_security using long config lines.
- trunk:
- http://svn.apache.org/r1863179
- 2.4.x patch: svn merge -c 1863179 ^/httpd/httpd/trunk .
- +1: rjung, icing, jim
-
*) mod_proxy_hcheck: mod_proxy_hcheck: mute "run from watchdog" message.
This is way too verbose (every 100ms) to be logged at any LogLevel.
CHANGES suggestion:
/* The required block is rather larger. Use allocator directly so that
* the memory can be freed independently from the pool. */
allocator = apr_pool_allocator_get(vb->pool);
+ /* Happens if APR was compiled with APR_POOL_DEBUG */
+ if (allocator == NULL) {
+ apr_allocator_create(&allocator);
+ ap_assert(allocator != NULL);
+ }
if (new_len <= VARBUF_MAX_SIZE)
new_node = apr_allocator_alloc(allocator,
new_len + APR_ALIGN_DEFAULT(sizeof(*new_info)));