PHP 4.0 Bug #6647 Updated: crypt() function causes Arithmetic exception

From: Date: Thu, 12 Oct 2000 16:37:43 +0000
Subject: PHP 4.0 Bug #6647 Updated: crypt() function causes Arithmetic exception
Groups: php.dev 
Request: Send a blank email to php-dev+get-34807@lists.php.net to get a copy of this message
ID: 6647 User Update by: gallen@valere.net 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@valere.net 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

« previous php.dev (#34807) next »