php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37695 httpd: child pid 11864 exit signal Segmentation fault (11)
Submitted: 2006-06-04 17:13 UTC Modified: 2006-06-05 07:53 UTC
From: gplerma at yahoo dot com Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 5.1.4 OS: Red Hat Enterprise Linux ES rele
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: gplerma at yahoo dot com
New email:
PHP Version: OS:

 

 [2006-06-04 17:13 UTC] gplerma at yahoo dot com
Description:
------------
Good day (or night),
I am needing asssistance with a particularly nasty problem with Apache/PHP (I'm not quite sure which is the culprit yet).  I checked bug log, however didnt seem to find any issue relating to this one.

I Compiled apache/php 5.1.4/oracle10g/ on RH Ent 4 (ES) w latest OS updates.

Following startup of httpd, i am seeing constant seg faults within the httpd error_logs during ANY page GET request:

[Sun Jun 04 11:41:12 2006] [notice] child pid 29592 exit signal Segmentation fault (11)
[Sun Jun 04 11:41:12 2006] [notice] child pid 29593 exit signal Segmentation fault (11)
[Sun Jun 04 11:41:13 2006] [notice] child pid 29597 exit signal Segmentation fault (11)
[Sun Jun 04 11:41:13 2006] [notice] child pid 29598 exit signal Segmentation fault (11)
[Sun Jun 04 11:41:13 2006] [notice] child pid 29599 exit signal Segmentation fault (11)
[Sun Jun 04 11:41:13 2006] [notice] child pid 29600 exit signal Segmentation fault (11)

httpd configure options:

./configure --enable-so --prefix=/usr/software/apache --with-apr=/usr/software/apr-httpd/ \
--with-apr-util=/usr/software/apr-util-httpd --with-mpm=prefork  --enable-mods-shared=most \
--enable-ssl=shared --with-ssl=/usr/software/openssl --enable-deflate

php configure options:
./configure --prefix=/usr/software/php --with-config-file-path=/usr/software/php/etc \
--enable-so=shared --with-apxs2=/usr/software/apache/bin/apxs --enable-dbase \
--with-pfpro=/usr/software/verisign/payflowpro/linux --with-oci8=/usr/software/oracle/product/10.2.0/db_1 \
--with-gd --with-png-dir=/usr/software/libpng/ --with-zlib-dir=/usr/software/zlib/ \
--with-freetype-dir=/usr/software/freetype

Compile Order was
1. Source Apr (Compiled the packaged apr) 
2. Source Apr Utils (Compiled the packaged apr-util)
3. Apache HTTPD
4. PHP

GCC Info:
gcc -v
Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.5/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux
Thread model: posix
gcc version 3.4.5 20051201 (Red Hat 3.4.5-2)

I have also tried latest snapshot: php5.2-200606041430 to no avail.

This crash only occurs if loading the php5 module (i.e. LoadModule php5_module        modules/libphp5.so)
If i comment this line, then restart apache, no crashing.

I appreciate your valuable time and assistance with this. 

Regards,
George

Actual result:
--------------
I ran a backtrace on httpd. This is the results after trying to load a simple HTML page:
[root@mfc-prod01 apache]# gdb httpd
GNU gdb Red Hat Linux (6.3.0.0-1.96rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) run -X -d /usr/software/apache
Starting program: /usr/software/apache/bin/httpd -X -d /usr/software/apache
[Thread debugging using libthread_db enabled]
[New Thread -1208046752 (LWP 29614)]
httpd: Could not reliably determine the server's fully qualified domain name, using mfc-prod01.multifamilycentral.priv for ServerName

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208046752 (LWP 29614)]
0x0128f332 in php_handler (r=0x9656f08) at /usr/compileFactory/php-5.1.4/sapi/apache2handler/sapi_apache2.c:472
472             conf = ap_get_module_config(r->per_dir_config, &php5_module);

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-06-05 07:53 UTC] tony2001@php.net
You apache was compiled with -D_FILE_OFFSET_BITS=64, while your PHP was not or vice versa.
This means that structures like off_t became off64_t and changed their size.
Not PHP problem.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 05 04:01:32 2024 UTC