访问PHP页面时出现分段错误
有时,当我们的 Apache Web 服务器之一重新启动时,随后访问任何 PHP 页面时我们都会遇到分段错误。以下行打印在 httpd error_log 中:
[Wed Jun 16 10:59:33 2010] [notice] child pid 31513 exit signal Segmentation failure (11)
对于访问的每个 PHP 页面,都会有其中一行。这似乎是随机发生的 - 迄今为止的“解决方法”是重新启动 httpd,这最终解决了问题(几乎总是在一次重新启动后)。尽管我们很少看到这种情况发生,但它仍然频繁发生,足以引起关注。
所以我的问题是,为什么会发生这种情况?这是我们正在使用的 Apache / PHP / Linux / 等版本的已知错误吗?有什么想法吗?
环境是:
- Fedora 11
- Apache 2.2.15(默认设置)
- PHP 5.2.13
如果这有助于缩小范围,我可以提供更多信息,因为此错误消息相当通用......
感谢任何帮助。
Sometimes when one of our Apache web servers is restarted, we experience segmentation faults when any PHP page is subsequently accessed. The following line is printed in the httpd error_log:
[Wed Jun 16 10:59:33 2010] [notice] child pid 31513 exit signal Segmentation fault (11)
There will be one of these lines for each PHP page that is accessed. This appears to happen randomly - the "workaround" to-date is to restart httpd, which eventually fixes the problem (almost always after a single restart). Although we only see this happen rarely, it still happens frequently enough to be of concern.
So my question is, why is this happening in the first place? Is this a known bug with the version of Apache / PHP / Linux / etc that we are using? Any ideas?
The environment is:
- Fedora 11
- Apache 2.2.15 (Default settings)
- PHP 5.2.13
I can provide more information if that would help narrow things down, since this error message is rather generic...
Any help is appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
http://bugs.php.net/bugs-generate-backtrace.php 包括有关使用调试符号编译 PHP 以及以单线程模式启动 apache httpd 的信息。
这就是你所需要的。
http://bugs.php.net/bugs-generating-backtrace.php includes information on compiling PHP with debugging symbols and starting apache httpd in single threaded mode.
It's all you need.