Re: Segfault problem [long]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Daniel A. Ramaley wrote:
Hello. I have been struggling for a few months to solve a problem with an Apache web server. First i'll try to describe the symptoms, then give details about the configuration and what i have tried so far. I would greatly appreciate any suggestions on how to diagnose and correct the problem.


Symptom 1:

After starting Apache during periods of high load the server appears to run fine for awhile ("awhile" is highly variable but on the order of 90 minutes) then starts returning empty pages. When the empty pages start, Apache's error_log gets filled with lines like this:

[Thu Sep 07 09:09:11 2006] [notice] child pid 3579 exit signal Segmentation fault (11), possible coredump in /etc/httpd/core

These errors are very intermittent during periods of light load. I have had CoreDumpDirectory defined for awhile and have amassed quite a collection of core files. This is the first few lines of what gdb reports for one of them:

(gdb) bt
#0 0x0000002a99ff2492 in preg_replace_impl (ht=Variable "ht" is not available.)
    at /usr/src/redhat/BUILD/php-4.3.9/ext/pcre/php_pcre.c:1154
#1  0x0000002a9a0ac255 in execute (op_array=0x552afe2798)
    at /usr/src/redhat/BUILD/php-4.3.9/Zend/zend_execute.c:1640
#2  0x0000002a9a0a9386 in execute (op_array=0x552aff7fb8)
    at /usr/src/redhat/BUILD/php-4.3.9/Zend/zend_execute.c:1684
#3  0x0000002a9a0a9386 in execute (op_array=0x552b0e26c8)
    at /usr/src/redhat/BUILD/php-4.3.9/Zend/zend_execute.c:1684
#4  0x0000002a9a0a9386 in execute (op_array=0x552af80db8)
    at /usr/src/redhat/BUILD/php-4.3.9/Zend/zend_execute.c:1684

Symptom 2:

A further symptom of problems is found in PostgreSQL's logs. The web applications the server runs rely on PostgreSQL, which logs several times per minute messages like this:

The php crash would probably explain the postgres problems.

You're probably better off asking the internals list, http://www.php.net/mailing-lists.php, because they write the C code behind PHP.

Have you run any hardware tests to make sure it's not memory/cpu related?

--
Postgresql & php tutorials
http://www.designmagick.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux