php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14750 exit signal Floating point exception (8)
Submitted: 2001-12-29 00:30 UTC Modified: 2002-11-27 23:27 UTC
From: bugs at kreho dot com Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 4.1.1 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-29 00:30 UTC] bugs at kreho dot com
We upgrated to the latest PHP and still getting these errors on ANY php page that uses decimals and EXIT. 

The shortest sample script, that DOES reproduce the bug:
exit(0.1);

The following will NOT give error: 
exit(TEST);

Since the PHP upgrade, our problem got worse. Now 8 out of 10 refresh results in "The page cannot be displayed"
Most importantly, the first time the page is hit, it is a 100% error. 

Please HELP ...---...---...--- 

/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)

Original bug:
http://bugs.php.net/bug.php?id=14366

Here is some more info.

Backtrace data:
Program received signal SIGFPE, Arithmetic exception.
0x28162f71 in strtod () from /usr/lib/libc.so.4
(gdb) b
Breakpoint 1 at 0x28162f71
(gdb) backtrace
#0  0x28162f71 in strtod () from /usr/lib/libc.so.4
#1  0x281ecfec in lex_scan (zendlval=0xbfbfd9d4) at zend_language_scanner.c:4123
#2  0x281ce73c in zendlex (zendlval=0xbfbfd9d0) at zend_compile.c:2344
#3  0x281c5d38 in zendparse () at zend_language_parser.c:1869
#4  0x281eaf61 in compile_file (file_handle=0xbfbff93c, type=2) at zend_language_scanner.c:3036
#5  0x281e2542 in zend_execute_scripts (type=8, file_count=3) at zend.c:749
#6  0x281f3fdc in php_execute_script (primary_file=0xbfbff93c) at main.c:1206
#7  0x281f07d6 in apache_php_module_main (r=0x815b034, display_source_mode=0) at sapi_apache.c:89
#8  0x281f11b6 in send_php (r=0x815b034, display_source_mode=0, filename=0x0) at mod_php4.c:536
#9  0x281f11f2 in send_parsed_php (r=0x815b034) at mod_php4.c:547
#10 0x806b239 in ap_invoke_handler ()
#11 0x807f940 in process_request_internal ()
#12 0x807f9aa in ap_process_request ()
#13 0x8076977 in child_main ()
#14 0x8076bfc in make_child ()
#15 0x8076cae in startup_children ()
#16 0x80772bc in standalone_main ()
#17 0x8077ad4 in main ()
#18 0x804ee5d in _start ()


System:  FreeBSD 4.4-RELEASE #0
 './configure' '--with-mysql=/usr/local/mysql' '--with-apache=../apache' '--enable-track-vars' '--with-gettext' '--with-imap=../imap' '--with-ldap=/usr/local'

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-29 03:24 UTC] mfischer@php.net
Do you have the same problem with a CGI from the command line?

Does exit((string)"0.1"); help you?

Feedback.
 [2001-12-29 03:43 UTC] bugs at kreho dot com
This works, if it's alone on the page. 
exit((string)"0.1");

and this one works too:
echo(34);
exit();

But this one doesn't:
echo(3.5);
exit((string)"0.1");

nor this:
echo(22.3);
exit();

:-(


 [2001-12-29 04:14 UTC] mfischer@php.net
And what about CGI (command line)?
 [2001-12-29 04:40 UTC] mfischer@php.net
No matter what I did, I can't reproduce this. Either with apache 1.3.22 mod_php nor command line version.

Please try only with ./configure without any arguments.

I think you're systems libs or so are broken. Did you verified you made a clean installation, nor other stale mod_php around?
 [2002-01-19 11:26 UTC] sander@php.net
No feedback. Closing.
 [2002-01-19 11:27 UTC] derick@php.net
Closed due to no feedback is the 'No Feedback' status.
 [2002-01-19 11:27 UTC] derick@php.net
Closed due to no feedback is the 'No Feedback' status.
 [2002-11-27 23:27 UTC] bugs at kreho dot com
this bug is fixed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 08:01:35 2024 UTC