PHP 4.0 Bug #9827: Floating point exception when starting apache

From: Date: Mon, 19 Mar 2001 02:43:26 +0000
Subject: PHP 4.0 Bug #9827: Floating point exception when starting apache
Groups: php.dev 
Request: Send a blank email to php-dev+get-49317@lists.php.net to get a copy of this message
From: matti@weiersmueller.com Operating system: Linux-mips PHP version: 4.0.4pl1 PHP Bug Type: Reproduceable crash Bug description: Floating point exception when starting apache - HW: Cobalt Raq2 (MIPS R3000) - OS: Linux - Apache: 1.3.19 - PHP built with these arguments: --with-apxs --enable-trans-sid - PHP release: 4.0.4pl1 and the latest CVS snapshot (date 18/03/2001) when starting apache with "./httpd", a core is dumped. The message is: Floating point exception (core dumped) I played around with gdb, the exception occurs in: ext/standard/crypt.c:105 ------------------------ php_srand(time(0) * getpid() * php_combined_lcg() * 10000.0 ); I played around with this line. When I replace the value 10000.0 with 1.0 and recompile the stuff, it works. I'm no C programmer, but I think this is due to an overflow problem. If you need more informations, tell me! Best regards Matti Weiersmueller -- Edit Bug report at: http://bugs.php.net/?id=9827&edit=1

« previous php.dev (#49317) next »