Apache and PHP segfaults
- mikeshinn
- Atomicorp Staff - Site Admin
- Posts: 4155
- Joined: Thu Feb 07, 2008 7:49 pm
- Location: Chantilly, VA
Re: New Kernel Less Stable than Last Kernel
You need to install the debug symbols for anything you want to backtrace:
https://www.atomicorp.com/wiki/index.ph ... Core_Files
"Step 3:
Install the debuginfo packages for the applications you want to backtrace. This is so your core file will contain the debug information needed to assist you in tracking down the source of the segfault. For example, if you are backtracing just apache, then you need to install its debuginfo packages. If you are debugging something else, like PHP, you need to install its debug symbols and so on. Here is an example for a package managed apache install:
yum install httpd-debuginfo
If your OS is missing debuginfo, file a bug report with them. Although we do make debuginfo rpms available in the atomic repository for our Apache builds, unless you use our free Atomic rpms you will want to install the correct debuginfo file for your system. "
https://www.atomicorp.com/wiki/index.ph ... Core_Files
"Step 3:
Install the debuginfo packages for the applications you want to backtrace. This is so your core file will contain the debug information needed to assist you in tracking down the source of the segfault. For example, if you are backtracing just apache, then you need to install its debuginfo packages. If you are debugging something else, like PHP, you need to install its debug symbols and so on. Here is an example for a package managed apache install:
yum install httpd-debuginfo
If your OS is missing debuginfo, file a bug report with them. Although we do make debuginfo rpms available in the atomic repository for our Apache builds, unless you use our free Atomic rpms you will want to install the correct debuginfo file for your system. "
Michael Shinn
Atomicorp - Security For Everyone
Atomicorp - Security For Everyone
-
- Forum Regular
- Posts: 257
- Joined: Wed Aug 04, 2010 2:52 pm
Re: New Kernel Less Stable than Last Kernel
Code: Select all
[root@server1 ~]# yum install httpd-debuginfo
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* atomic: www3.atomicorp.com
* atomic-testing: www3.atomicorp.com
Setting up Install Process
No package httpd-debuginfo available.
Nothing to do
-
- Forum Regular
- Posts: 257
- Joined: Wed Aug 04, 2010 2:52 pm
Re: New Kernel Less Stable than Last Kernel
Code: Select all
[root@server1 ~]# yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* atomic: www3.atomicorp.com
* atomic-testing: www3.atomicorp.com
repo id repo name status
addons CentOS-5 - Addons 0
asl-2.0 Atomicorp - - Atomic Secured Linux 2.0 352
atomic CentOS / Red Hat Enterprise Linux 5 - atomicrocketturtle.com 1,228
atomic-testing CentOS / Red Hat Enterprise Linux 5 - atomicrocketturtle.com - (Testing) 92
base CentOS-5 - Base 3,566
extras CentOS-5 - Extras 235
updates CentOS-5 - Updates 239
repolist: 5,712
-
- Forum Regular
- Posts: 257
- Joined: Wed Aug 04, 2010 2:52 pm
Apache and PHP segfaults
Is there a debug package for PHP53?
- mikeshinn
- Atomicorp Staff - Site Admin
- Posts: 4155
- Joined: Thu Feb 07, 2008 7:49 pm
- Location: Chantilly, VA
Re: New Kernel Less Stable than Last Kernel
Which http rpm do you have installed?yum install httpd-debuginfo
Michael Shinn
Atomicorp - Security For Everyone
Atomicorp - Security For Everyone
-
- Forum Regular
- Posts: 257
- Joined: Wed Aug 04, 2010 2:52 pm
Re: Apache and PHP segfaults
[root@server1 apache2-gdb-dump]# rpm -qa | grep http
httpd-2.2.21-1.el5.art
httpd-tools-2.2.21-1.el5.art
httpd-2.2.21-1.el5.art
httpd-tools-2.2.21-1.el5.art
-
- Forum Regular
- Posts: 257
- Joined: Wed Aug 04, 2010 2:52 pm
Re: Apache and PHP segfaults
OK - so how would I get some info out of PHP in the core dumps? Does the art php have debug enabled?
-
- Forum Regular
- Posts: 257
- Joined: Wed Aug 04, 2010 2:52 pm
Re: Apache and PHP segfaults
I have 2 more cores without any PHP debugging info.
Can a package like this show up in atomic-testing perhaps?
http://rpm.pbone.net/index.php3/stat/4/ ... 6.rpm.html
Do I need to roll my own PHP to be able to debug these cores?
Can a package like this show up in atomic-testing perhaps?
http://rpm.pbone.net/index.php3/stat/4/ ... 6.rpm.html
Do I need to roll my own PHP to be able to debug these cores?
-
- Atomicorp Staff - Site Admin
- Posts: 8355
- Joined: Wed Dec 31, 1969 8:00 pm
- Location: earth
- Contact:
Re: Apache and PHP segfaults
Yeah you'd really need to build your own with the debuginfo packages added. Depending on where it happens you might also need debuginfo packages for libraries as well.