NYCPHP Meetup

NYPHP.org

[nycphp-talk] PHP Segmentation Fault

John Coggeshall john at coggeshall.org
Thu Sep 16 12:25:15 EDT 2004


Run Apache with the -X option through GDB and get a backtrace:

# gdb /usr/local/apache/bin/httpd -X

then hit the segv page with your web browser, GDB should show that a seg
fault was trapped. From there type 'bt' and display the backtrace:

gdb> bt

paste the *entire* backtrace and i can tell you where it's crashing and
likely provide a patch to fix it :)

John


On Thu, 2004-09-16 at 09:39, Derek DeVries wrote:
> I am getting a segfault in one of my php scripts. I would post code, but I
> am having a hard time figuring out any logical reason of what code is
> causing it. Does anyone have any idea what causes a segfault in php, or any
> strategies to debug it. I am running PHP 4.3.4 and Apache/1.3.28 (Unix)  on
> my server.
> 
> -Derek
> 
> _______________________________________________
> New York PHP Talk
> Supporting AMP Technology (Apache/MySQL/PHP)
> http://lists.nyphp.org/mailman/listinfo/talk
> http://www.newyorkphp.org




More information about the talk mailing list