Which version of libapr1 are you using? It looks to me that you have a self compiled version of libapr1 with APR_POOL_DEBUGGING defined, and the bug is in the pool debugging code. Is that correct?