# PHP 4.3.9RC3

- Thread: https://externals.io/message/12708
- Original archive: https://news-web.php.net/php.internals/12708
- Started by Jacques Marneweck on 2004-09-10T08:47:37+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #12708 — Jacques Marneweck — 2004-09-10T08:47:37+00:00

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

Using PHP 4.3.9RC3 I keep getting core dumps every time I run php on a
development box, which I'm finding strange.

#0  0x0817ac8e in shutdown_memory_manager (silent=1, clean_cache=0)
    at /usr/local/src/php4-STABLE-200409100630/Zend/zend_alloc.c:491
491                                     REMOVE_POINTER_FROM_LIST(ptr);

How does one go around figuring out how to fix this or what is causing
this to core dump?

Looking at the source for zend_alloc.c it contains the following (line
numbering included):

     94 #define REMOVE_POINTER_FROM_LIST(p)             \
     95     if (p==AG(head)) {                          \
     96         AG(head) = p->pNext;                    \
     97     } else {                                    \
     98         p->pLast->pNext = p->pNext;             \
     99     }                                           \
    100     if (p->pNext) {                             \
    101         p->pNext->pLast = p->pLast;             \
    102     }

Regards
--jm

-- 
Jacques Marneweck
http://www.powertrip.co.za/blog/

---

## #12712 — Derick Rethans — 2004-09-10T09:12:54+00:00

URL: https://externals.io/message/12708#12712 · In reply to: #12708

> Using PHP 4.3.9RC3 I keep getting core dumps every time I run php on a
> development box, which I'm finding strange.
>
> #0  0x0817ac8e in shutdown_memory_manager (silent=1, clean_cache=0)
>     at /usr/local/src/php4-STABLE-200409100630/Zend/zend_alloc.c:491
> 491                                     REMOVE_POINTER_FROM_LIST(ptr);
>
> How does one go around figuring out how to fix this or what is causing
> this to core dump?

Provide the full back traces please. Also, does it happen with a
specific script or just always?

Derick

-- 
Derick Rethans
http://derickrethans.nl | http://ez.no | http://xdebug.org

---

## #12728 — Andi Gutmans — 2004-09-10T22:48:13+00:00

URL: https://externals.io/message/12708#12728 · In reply to: #12708

You can also try and use valgrind on it. Good chances are that it's not the 
memory manager which is causing this problem.

At 11:12 AM 9/10/2004 +0200, Derick Rethans wrote:
>
>
> > […]
>
>Provide the full back traces please. Also, does it happen with a
>specific script or just always?
>
>Derick
>
>--
>Derick Rethans
>http://derickrethans.nl | http://ez.no | http://xdebug.org
