Re: PHP 5.2.3 - Segmentation fault (core dumped)
| From: | Per Jessen | Date: | Wed, 12 Sep 2007 16:24:42 +0000 |
| Subject: | Re: PHP 5.2.3 - Segmentation fault (core dumped) | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-262026@lists.php.net to get a copy of this message | ||
Stut wrote:
>> Anyway, I think it's exceptionally poor show by php to cause a
>> segfault, probably due to user code. I know it does it every now and
>> then, and nobody has ever been interested in looking at the core
>> dump.
>
> This will have nothing to do with user code since no user code is
> involved in displaying the version info. It's most likely a problem
> with mixed version numbers, or possibly (but unlikely) a configuration
> issue. If there's an auto_prepend_file or auto_append_file in the
> configuration that may be loaded by php -v, I'm not sure.
>
> Blaming PHP for this is like blaming Microsoft because Photoshop
> crashed on a Windows machine. It's possible PHP is to blame but there
> is a whole stack of other considerations to go through before coming
> to that conclusion.
Stut, put this problem aside for a sec, and let me ask this - if I can
produce an apache core-dump using vanilla apache, vanilla php (even
with no extensions if you want) and a PHP script, you'll get someone to
debug it? (I cannot promise a easily reproducable problem, just the
core-dump, and a few hundred lines of script)
FYI, I've tried that before, and the PHP developers are not interested
and/or they do not work with core dumps.
I still maintain it is exceptionally poor show by php to let user code
produce segfaults in apache.
Here's a brief excerpt from a recent apache error-log:
[Thu Aug 30 12:31:20 2007] [notice] child pid 18836 exit signal
Segmentation fault (11)
[Fri Sep 07 10:09:22 2007] [notice] child pid 2634 exit signal
Segmentation fault (11)
[Fri Sep 07 12:25:07 2007] [notice] child pid 18835 exit signal
Segmentation fault (11)
[Fri Sep 07 12:26:10 2007] [notice] child pid 18834 exit signal
Segmentation fault (11)
[Fri Sep 07 12:26:48 2007] [notice] child pid 21729 exit signal
Segmentation fault (11)
[Fri Sep 07 17:18:55 2007] [notice] child pid 18647 exit signal
Segmentation fault (11)
[Fri Sep 07 21:04:45 2007] [notice] child pid 20318 exit signal
Segmentation fault (11)
[Fri Sep 07 21:04:54 2007] [notice] child pid 18403 exit signal
Segmentation fault (11)
[Sun Sep 09 17:43:26 2007] [notice] child pid 18826 exit signal
Segmentation fault (11)
[Sun Sep 09 17:43:53 2007] [notice] child pid 18827 exit signal
Segmentation fault (11)
[Sun Sep 09 17:44:10 2007] [notice] child pid 18825 exit signal
Segmentation fault (11)
[Sun Sep 09 17:45:08 2007] [notice] child pid 18447 exit signal
Segmentation fault (11)
[Sun Sep 09 17:45:24 2007] [notice] child pid 18785 exit signal
Segmentation fault (11)
[Sun Sep 09 17:46:06 2007] [notice] child pid 25399 exit signal
Segmentation fault (11)
[Mon Sep 10 15:18:52 2007] [notice] child pid 28626 exit signal
Segmentation fault (11)
[Mon Sep 10 15:19:22 2007] [notice] child pid 28608 exit signal
Segmentation fault (11)
[Mon Sep 10 15:20:10 2007] [notice] child pid 28856 exit signal
Segmentation fault (11)
[Mon Sep 10 15:20:12 2007] [notice] child pid 28605 exit signal
Segmentation fault (11)
[Mon Sep 10 15:23:07 2007] [notice] child pid 28607 exit signal
Segmentation fault (11)
[Mon Sep 10 18:31:39 2007] [notice] child pid 20378 exit signal
Segmentation fault (11)
These were all caused by PHP user code with PHP5 and apache22.
/Per Jessen, Zürich