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.
CLI PHP is dumping core....
Moderator: General Moderators
run
and then use 'bt' (backtrace) command to see where php has died.
Code: Select all
$ gdb "php yourscript.php" /path/to/core.file