Bug #53632 [Asn]: PHP hangs on numeric value 2.2250738585072011e-308
| From: | pajoye@php.net | Date: | Tue, 04 Jan 2011 09:17:05 +0000 |
| Subject: | Bug #53632 [Asn]: PHP hangs on numeric value 2.2250738585072011e-308 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-157543@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=53632&edit=1
ID: 53632
Updated by: pajoye@php.net
Reported by: exploringbinary at gmail dot com
Summary: PHP hangs on numeric value 2.2250738585072011e-308
Status: Assigned
Type: Bug
Package: Math related
PHP Version: 5.3.4
Assigned To: dmitry
Block user comment: N
Private report: N
New Comment:
Happens here too 64bit CPU 32bit builds (win or linux)
Previous Comments:
------------------------------------------------------------------------
[2011-01-04 09:54:26] rasmus@php.net
How about -O2 -ffloat-store ?
------------------------------------------------------------------------
[2011-01-04 09:37:07] scottmac@php.net
looking like a gcc optimizer bug, -O0 is fine where -O2 hangs
------------------------------------------------------------------------
[2011-01-04 09:02:31] scottmac@php.net
This only seems to affect 32-bit systems.
------------------------------------------------------------------------
[2011-01-04 08:59:21] yuv dot adm at gmail dot com
Check out the strace:
lstat64("/home/ubuntu/junk/p.php", {st_mode=S_IFREG|0644, st_size=59,
...}) = 0
lstat64("/home/ubuntu/junk", {st_mode=S_IFDIR|0755, st_size=4096,
...}) = 0
lstat64("/home/ubuntu", {st_mode=S_IFDIR|0755, st_size=4096, ...}) =
0
lstat64("/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfe51238) = -1 ENOTTY
(Inappropriate ioctl for device)
fstat64(3, {st_mode=S_IFREG|0644, st_size=59, ...}) = 0
mmap2(NULL, 68, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb78d1000
and then it hangs...
------------------------------------------------------------------------
[2011-01-04 08:55:01] aquilax at gmail dot com
It hangs on Debian:
aquilax@zelda /tmp> php -v
PHP Warning: PHP Startup: Unable to load dynamic library
'/usr/lib/php5/20090626+lfs/adodb.so' -
/usr/lib/php5/20090626+lfs/adodb.so:
cannot open shared object file: No such file or directory in Unknown on
line 0
PHP 5.3.3-6 with Suhosin-Patch (cli) (built: Dec 7 2010 18:23:49)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with Xdebug v2.1.0, Copyright (c) 2002-2010, by Derick Rethans
with Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins
GmbH
aquilax@zelda /tmp> cat t.php
<?php $d = 2.2250738585072011e-308; ?>
aquilax@zelda /tmp> time php t.php
PHP Warning: PHP Startup: Unable to load dynamic library
'/usr/lib/php5/20090626+lfs/adodb.so' -
/usr/lib/php5/20090626+lfs/adodb.so:
cannot open shared object file: No such file or directory in Unknown on
line 0
^CCommand terminated by signal 2
7.55user 0.02system 0:07.61elapsed 99%CPU (0avgtext+0avgdata
36720maxresident)k
0inputs+0outputs (0major+2620minor)pagefaults 0swaps
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/bug.php?id=53632
--
Edit this bug report at http://bugs.php.net/bug.php?id=53632&edit=1