Re: Segfaults in Zend
| From: | Derick Rethans | Date: | Mon, 07 Oct 2002 17:00:09 +0000 |
| Subject: | Re: Segfaults in Zend | ||
| References: | 1 2 3 4 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-89177@lists.php.net to get a copy of this message | ||
On Mon, 7 Oct 2002, Jan Schneider wrote:
> In another script the segfaults occur in another place. It's hard to
> trap it down cause it happens during inside a foreach loop. It doesn't
> happen after the first loop but at any of the subsequent loops. Inside
> this loop happens - beside a call to imap_utf7_decode() that wasn't
> called in the the first script - only some assignments and string and
> array functions.
>
> So I guess this actually has something to do with the engine.
If you are on linux, you can try valgrind
(http://developer.kde.org/~sewardj/) like this:
(first stop httpd)
valgrind --gdb-attach /path/to/httpd -X
then request your script and check the valgrind console window.
It asks to attach when something goes wrong, press "Y" and then "bt"
from gdb. This should give a good understanding where it goes wrong.
Derick
--
---------------------------------------------------------------------------
Derick Rethans http://derickrethans.nl/
JDI Media Solutions
--------------[ if you hold a unix shell to your ear, do you hear the c? ]-