|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-11-13 21:26 UTC] pascal dot tempier at laposte dot net
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
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 09:00:01 2025 UTC |
The first bt i had #8 0xffffffff in ?? () #9 0xffffffff in ?? () #10 0xbfd4f704 in ?? () #11 0xbfd4f700 in ?? () #12 0x00000000 in ?? () (gdb) continue Continuing. Program received signal SIGSEGV, Segmentation fault. 0xb73fb65d in php_handler (r=0x83e53e0) 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 0xb73fb65d in php_handler (r=0x83e53e0) at /var/tmp/portage/dev-lang/php-5.2.5/work/php-5.2.5/sapi/apache2handler/sapi_apache2.c:512 #1 0x08078e07 in ap_run_handler () #2 0x0807bef7 in ap_invoke_handler () #3 0x08086ac8 in ap_process_request () #4 0x08083dab in ?? () #5 0x083e53e0 in ?? () #6 0x00000004 in ?? () #7 0x083e53e0 in ?? () #8 0x00000000 in ?? ()