From:             pascal dot tempier at laposte dot net
Operating system: gentoo
PHP version:      5.2.5
PHP Bug Type:     Reproducible crash
Bug description:  apache segfault on php as module and doesnt serve content 
correctly

Description:
------------
apache segfault when php is used as module , not when used in cli or as
cgi. same result , at least for the crash on 3 different php5 versions i
tried including 5.2.5, including 5.2.5 with the bar minimum of
features/modules enabled and all debug i could enabled as well.

the issue doesn t happen when the php module isn t loaded

there s bug that sounds a bit like mine but i tried 
APACHE2_OPTS="-D DEFAULT_VHOST -D PHP5 -D USERDIR" instead of 
APACHE2_OPTS="-D USERDIR -D SUEXEC -D DEFAULT_VHOST -D INFO -D LANGUAGE -D
SSL -D SSL_DEFAULT_VHOST -D PHP5"

and it still crashed

Reproduce code:
---------------
just try to access any php file via apache to get a crash
try to access any other file to get some error


Expected result:
----------------
i wanted my page to be displayed ?

Actual result:
--------------
[Tue Nov 13 21:59:44 2007] [notice] child pid 8799 exit signal
Segmentation fault (11)
[Tue Nov 13 21:59:45 2007] [notice] child pid 8800 exit signal
Segmentation fault (11)
[Tue Nov 13 21:59:50 2007] [notice] child pid 8801 exit signal
Segmentation fault (11)
[Tue Nov 13 21:59:58 2007] [notice] child pid 8802 exit signal
Segmentation fault (11)



<IfDefine PHP5>
        # Load the module first
        <IfModule !mod_php5.c>
                LoadModule php5_module    modules/libphp5.so
        </IfModule>

        # Set it to handle the files
        <IfModule mod_mime.c>
                AddType application/x-httpd-php .php
                AddType application/x-httpd-php .phtml
                AddType application/x-httpd-php .php3
                AddType application/x-httpd-php .php4
                AddType application/x-httpd-php .php5
                AddType application/x-httpd-php-source .phps
        </IfModule>

        AddDirectoryIndex index.php index.phtml
</IfDefine>


APACHE2_OPTS="-D USERDIR -D SUEXEC -D DEFAULT_VHOST -D INFO -D LANGUAGE -D
SSL -D SSL_DEFAULT_VHOST -D PHP5"



Reading symbols from /usr/lib/libgnutls.so.13...done.
Loaded symbols for /usr/lib/libgnutls.so.13
Reading symbols from /usr/lib/libtasn1.so.3...done.
Loaded symbols for /usr/lib/libtasn1.so.3
Failed to read a valid object file image from memory.
0xffffe410 in ?? ()
(gdb) continue
Continuing.
 
Program received signal SIGSEGV, Segmentation fault.
0xb73bc65d in php_handler (r=0x83e23d0) at
/var/tmp/portage/dev-lang/php-5.2.5/work/php-5.2.5/sapi/apache2handler/sapi_apache2.c:512
512             conf = ap_get_module_config(r->per_dir_config,
&php5_module)






Loaded symbols for /lib/libgpm.so.1
Reading symbols from
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libstdc++.so.6...done.
Loaded symbols for /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libstdc++.so.6
Reading symbols from
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libgcc_s.so.1...done.
Loaded symbols for /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libgcc_s.so.1
Reading symbols from /usr/lib/libkrb5support.so.0...done.
Loaded symbols for /usr/lib/libkrb5support.so.0
Reading symbols from /usr/lib/libgnutls.so.13...done.
Loaded symbols for /usr/lib/libgnutls.so.13
Reading symbols from /usr/lib/libtasn1.so.3...done.
Loaded symbols for /usr/lib/libtasn1.so.3
Failed to read a valid object file image from memory.
0xffffe410 in ?? ()
(gdb) continue
Continuing.
 
Program received signal SIGSEGV, Segmentation fault.
0xb745265d in php_handler (r=0x83e23d0) at
/var/tmp/portage/dev-lang/php-5.2.5/work/php-5.2.5/sapi/apache2handler/sapi_apache2.c:512
512    
/var/tmp/portage/dev-lang/php-5.2.5/work/php-5.2.5/sapi/apache2handler/sapi_apache2.c:
No such file or directory.
        in
/var/tmp/portage/dev-lang/php-5.2.5/work/php-5.2.5/sapi/apache2handler/sapi_apache2.c
(gdb) bt      
#0  0xb745265d in php_handler (r=0x83e23d0) at
/var/tmp/portage/dev-lang/php-5.2.5/work/php-5.2.5/sapi/apache2handler/sapi_apache2.c:512
#1  0x080791f7 in ap_run_handler (r=0x83e23d0) at config.c:157
#2  0x0807c357 in ap_invoke_handler (r=0x83e23d0) at config.c:372
#3  0x08087148 in ap_process_request (r=0x83e23d0) at http_request.c:258
#4  0x080843db in ap_process_http_connection (c=0x83dc380) at
http_core.c:184
#5  0x08080067 in ap_run_process_connection (c=0x83dc380) at
connection.c:43
#6  0x0808b280 in child_main (child_num_arg=<value optimized out>) at
prefork.c:640
#7  0x0808b573 in make_child (s=0x80a5f48, slot=0) at prefork.c:736
#8  0x0808b622 in startup_children (number_to_start=1) at prefork.c:754
#9  0x0808c49a in ap_mpm_run (_pconf=0x80a40a8, plog=0x80d2160,
s=0x80a5f48) at prefork.c:975
#10 0x08066e1c in main (argc=134881440, argv=0x83da1a8) at main.c:730





-- 
Edit bug report at http://bugs.php.net/?id=43280&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=43280&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=43280&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=43280&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=43280&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=43280&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=43280&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=43280&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=43280&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=43280&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=43280&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=43280&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=43280&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=43280&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=43280&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=43280&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=43280&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=43280&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=43280&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=43280&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=43280&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=43280&r=mysqlcfg

Reply via email to