php-developer-list | 2000101
Date: 10/12/00
- Next message: adamh <email protected>: "[PHP-DEV] PHP 4.0 Bug #7163: Random "Failed opening" errors for both php pages and included/required files"
- Previous message: Jordan: "[PHP-DEV] Re: PHP 4.0 Bug #7104 Updated: everything seems to compile ok, but httpd won't start"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 6647
User Update by: gallen <email protected>
Status: Open
Bug Type: Reproduceable crash
Description: crypt() function causes Arithmetic exception
Still broken in version 4.0.3
Crypt() works in 4.0.1pl2 under FreeBSD 3.4 but causes
Arithmetic exception in Version 4.0.2 and 4.0.3.
Previous Comments:
---------------------------------------------------------------------------
[2000-09-10 00:05:39] gallen <email protected>
BTW, The crypt function works fine in FreeBSD 4.0 with/4.0.2
GDB Output
-----------
Program received signal SIGFPE, Arithmetic exception.
0x282d1139 in php_if_crypt (ht=1, return_value=0x81038cc, this_ptr=0x0,
return_value_used=1) at crypt.c:153
153 srand48((unsigned int) time(0) * getpid() * (php_combine---Type <return> to continue, or
q <return> to quit---
d_lcg() * 10000.0));
(gdb) bt
#0 0x282d1139 in php_if_crypt (ht=1, return_value=0x81038cc, this_ptr=0x0,
return_value_used=1) at crypt.c:153
#1 0x2826c22a in execute (op_array=0x812568c) at ./zend_execute.c:1519
#2 0x282785db in zend_execute_scripts (type=8, file_count=3) at zend.c:712
#3 0x28287324 in php_execute_script (primary_file=0xbfbfda40) at main.c:1173
#4 0x282841b9 in apache_php_module_main (r=0x8132034, display_source_mode=0)
at sapi_apache.c:89
#5 0x28284a71 in send_php (r=0x8132034, display_source_mode=0, filename=0x0)
at mod_php4.c:503
#6 0x28284aa4 in send_parsed_php (r=0x8132034) at mod_php4.c:514
#7 0x805371f in ap_invoke_handler ()
#8 0x8066401 in process_request_internal ()
#9 0x8066460 in ap_process_request ()
#10 0x805dda9 in child_main ()
#11 0x805df34 in make_child ()
#12 0x805e08f in startup_children ()
#13 0x805e640 in standalone_main ()
#14 0x805ee9f in main ()
#15 0x804e881 in _start ()
Configure
----------
CPPFLAGS="-I/usr/local/include/gd/ -I/usr/local/BerkeleyDB.3.1/include/"
LDFLAGS=-L/usr/local/BerkeleyDB.3.1/lib/
./configure --with-apxs=/usr/local/www/bin/apxs
--disable-debug
--with-pgsql=/usr/home/pgsql
--with-xml
--enable-track-vars
--enable-trans-sid
--with-db3=/usr/local/BerkeleyDB.3.1
--with-mcrypt
--enable-ftp
HTML
----
<html>
<head>
<title>test crypt</title>
</head>
<body>
<?php
echo "Current PHP version: ".phpversion()."<br>";
$rc = crypt("password");
echo "rc=$rc<br>n";
echo phpinfo();
?>
</body>
</html>
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=6647
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: adamh <email protected>: "[PHP-DEV] PHP 4.0 Bug #7163: Random "Failed opening" errors for both php pages and included/required files"
- Previous message: Jordan: "[PHP-DEV] Re: PHP 4.0 Bug #7104 Updated: everything seems to compile ok, but httpd won't start"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

