ID: 10099
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: Reproduceable crash
Description: Segfault in Apache 1.3.19 + PHP4.0.x DSO
Sniper,
Thanks for the quick response. Here is the new debugged core dump:
Starting program: /usr/sbin/httpd -X
Program received signal SIGFPE, Arithmetic exception.
0x2b0b1da0 in php_minit_crypt (type=1, module_number=3) at crypt.c:105
105 php_srand(time(0) * getpid() * (php_combined_lcg() * 10000.0));
(gdb) bt
#0 0x2b0b1da0 in php_minit_crypt (type=1, module_number=3) at crypt.c:105
#1 0x2b0a3968 in php_minit_basic (type=1, module_number=3)
at basic_functions.c:748
#2 0x2aff2068 in zend_startup_module (module=0x2b253b44) at zend_API.c:624
#3 0x2b01ac30 in php_startup_extensions (ptr=0x2b24e288, count=10)
at main.c:701
#4 0x2b01ccb4 in php_startup_internal_extensions () at internal_functions.c:62
#5 0x2b01b390 in php_module_startup (sf=0x2b24d290) at main.c:861
#6 0x2b014ca4 in php_apache_startup (sapi_module=0x2b24d290) at mod_php4.c:259
#7 0x2b016820 in php_init_handler (s=0x10122cc8, p=0x10122ca0)
at mod_php4.c:729
#8 0x4836b0 in ap_init_modules ()
#9 0x499dd4 in main ()
I believe there is a work-around for this.
See Bug #9827 by Matti Weissmueller.
He uses similar hardware.
Thanks for your help.
Previous Comments:
---------------------------------------------------------------------------
[2001-04-01 13:12:22] [EMAIL PROTECTED]
1. delete config.cache
2. add --enable-debug into your configure line
3. after configure 'make clean ; make ; make install'
Now you might get better backtrace of the problem.
Do you have PHP 3 installed into the apache?
If not, you don't need --enable-versioning argument.
--Jani
---------------------------------------------------------------------------
[2001-04-01 12:18:23] [EMAIL PROTECTED]
I have a Cobalt Qube2 (64-Bit MIPS little-endian).
I have compiled PHP 4.0.4 and any release after that including 4.0.5RC2.
PHP 4.0.x is configured like this:
./configure
--with-apxs=/usr/sbin/apxs
--enable-versioning
--with-mysql=/usr/local/mysql
--enable-track-vars
--with-imap=/usr/local/imap-2000c
--enable-ftp
--with-mm=/usr/local/mm-1.1.3
--with-zlib
(every interation of PHP after 4.0.4 was compiled with the options seen above)
My GDB backtrace looks like this:
#0 0x2aff60f8 in ?? ()
(gdb) bt
#0 0x2aff60f8 in ?? ()
warning: Hit heuristic-fence-post without finding
warning: enclosing function for address 0x2aff602c
That's all I have found.
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=10099
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]