php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14366 exit signal Floating point exception (8)
Submitted: 2001-12-06 16:37 UTC Modified: 2003-10-07 10:00 UTC
From: bugs at kreho dot com Assigned:
Status: Closed Package: Reproducible crash
PHP Version: 4.0.6 OS: FreeBSD 4.4-RELEASE #0
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: bugs at kreho dot com
New email:
PHP Version: OS:

 

 [2001-12-06 16:37 UTC] bugs at kreho dot com
Please help! We get this weird error on ANY php page that uses decimals. 

The simpliest code we found to produce the error is:

echo (0.1);

That's it. Apache just dies 90% of the time if you call the page, with a 404 error. If you refresh, the page comes up, but the log still shows the following errors:

/var/log/messages:
Dec  6 16:07:17 julian /kernel: pid 38937 (httpd), uid 65534: exited on signal 8

Apache error log:
[Thu Dec  6 16:07:17 2001] [notice] child pid 38937 exit signal Floating point exception (8)

There is no error if the # has no decimals, or it is .0 
I.E.:
0.0 or 4.0 or 345.0 no error
0.3 or 5.3 or 345.24 gives error
Any calculation using or generating the above give error.

System:
 './configure' '--with-mysql=/usr/local/mysql' '--with-apxs=/usr/local/apache/bin/apxs' '--with-imap=../imap' '--with-gettext'

Using stock php.ini except magic_quotes_gpc = Off

This error came since we upgraded to FreeBSD from Linux and the latest PHP Apache MySql combo.

It doesn't matter if we use PHP as a module or compile into Apache. The bug is annoying, and our users complain a lot.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-06 19:22 UTC] sniper@php.net
Can not reproduce in FreeBSD 4.4 with PHP 4.1.0RC5. 

Try it from: http://download.php.net/~zeev/php-4.1.0RC5.tar.gz
and reopen this bug report if this doesn't work with that version either.
(4.1.0 should be released very soon)

 [2003-10-07 10:00 UTC] bugs at kreho dot com
Does anyone know how to remove my personal email address from message #14366 ?  It's the one with "julian" in it.
I accidentally used it instead of the spammable address, and now I am getting bombarded with spam, traced back to this message. It only appears in the above bug report, maybe somehow it could be edited or removed so robots can not find it.

By the way, the bug is gone after upgrading FreeBSD, thanks for all the help.

Julian Kreho
 [2010-09-15 10:36 UTC] brajan at un dot pl
This problem is either back or never solved. Recently i have noticed Apache restarts with this error in logs.

PHP 5.2.13
Apache/2.2.15
CentOS 5.5
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 00:01:33 2024 UTC