CLI PHP is dumping core....

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
nielsene
DevNet Resident
Posts: 1834
Joined: Fri Aug 16, 2002 8:57 am
Location: Watertown, MA

CLI PHP is dumping core....

Post 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.
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post 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.
User avatar
nielsene
DevNet Resident
Posts: 1834
Joined: Fri Aug 16, 2002 8:57 am
Location: Watertown, MA

Post by nielsene »

Thanks, looks like it was a misconfiguration on my host's end. They recompiled something and it went away...
Post Reply