Package: apr Version: 1.4.4-1 Severity: grave Tags: patch The code incorrectly presumes the page size will be always 4k, which causes that it fails to pass the test suite on non-4k-page platforms. The attached patch seems to work.
Regards, Lifeng --
diff --git a/memory/unix/apr_pools.c b/memory/unix/apr_pools.c index 9ac3977..50d5acf 100644 --- a/memory/unix/apr_pools.c +++ b/memory/unix/apr_pools.c @@ -47,7 +47,7 @@ * Magic numbers */ -#define MIN_ALLOC 8192 +#define MIN_ALLOC (2 * BOUNDARY_SIZE) #define MAX_INDEX 20 #if APR_ALLOCATOR_USES_MMAP && defined(_SC_PAGESIZE)