Page 1 of 1

CLI PHP is dumping core....

Posted: Wed Oct 27, 2004 11:01 am
by nielsene
A PHP script has started dumping core for me recently. I've never had this happen before. Any advice for how/where to start debgugging this?

Its a command-line script (not going through the webserver). The script works fine on my development machine (Debian Linux with Debian Stable's CLI PHP module). The production machine hits an "Abort Trap" on every invocation and a "Abort (core dump)" every few (~4). The production machine is lateest stable FreeBSD with latest PHP 4.3.

Posted: Thu Oct 28, 2004 10:54 am
by Weirdan
run

Code: Select all

$ gdb "php yourscript.php" /path/to/core.file
and then use 'bt' (backtrace) command to see where php has died.

Posted: Thu Oct 28, 2004 10:58 am
by nielsene
Thanks, looks like it was a misconfiguration on my host's end. They recompiled something and it went away...