# Still "zend_mm_heap corrupted" error in PHP 5.2.6

- Thread: https://externals.io/message/39494
- Original archive: https://news-web.php.net/php.internals/39494
- Started by Santi Saez on 2008-07-31T08:51:39+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #39494 — Santi Saez — 2008-07-31T08:51:39+00:00

URL: https://externals.io/message/39494#39494

Dear Srs,

We are having some "zend_mm_heap corrupted" errors followed by a
"Segmentation fault (11)" in our Apache2 + PHP 5.2.6 servers. There are few
information about this "bug" in internet:

 * #40479 -> http://bugs.php.net/bug.php?id=40479
 * #43295 -> http://bugs.php.net/bug.php?id=43295

I have applied all proposed patches, tested with PHP 5.2.5 and 5.2.6.. and
I still have the error :-/

Anyone has more info about this, or how to solve/prevent?

I'm also looking for a method to get more info about this crash: what
virtualhost + PHP scripts generate it and the timestamp, for example. What
can I do to get more info? Searching in the source code, I see that this
message only is printed by the zend_mm_panic() function in
"Zend/zend_alloc.c" file, anyideas to hack this function to get more info?

static void zend_mm_panic(const char *message)
{
        fprintf(stderr, "%s\n", message);
#if ZEND_DEBUG && defined(HAVE_KILL) && defined(HAVE_GETPID)
        kill(getpid(), SIGSEGV);
#endif
        exit(1);
}

Is there any macro o similar to get the URL, virtualhost or PHP
script/path? Thanks!!

Regards,

--Santi Saez
