php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12912 Call to round() crashes process (DSO only)
Submitted: 2001-08-22 17:55 UTC Modified: 2002-06-18 16:41 UTC
Votes:2
Avg. Score:3.0 ± 1.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: raunn at volterra dot com Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 4.1.1 OS: Solaris 2.5.1
Private report: No CVE-ID: None
 [2001-08-22 17:55 UTC] raunn at volterra dot com
Using Apache 1.3.20, PHP 4.0.6 as a module, on Solaris 2.5.1.

Everything else seems to work except the round() function. Any call to round() seg faults the Apache process. Backtrace:

#0  0xef7324b4 in _mp_move ()
#1  0xef7322dc in pow ()
#2  0xeede8438 in ?? () from /usr/local/apache/libexec/libphp4.so
#3  0xeecfe470 in ?? () from /usr/local/apache/libexec/libphp4.so
#4  0xeed16abc in ?? () from /usr/local/apache/libexec/libphp4.so
#5  0xeed3cc1c in ?? () from /usr/local/apache/libexec/libphp4.so
#6  0xeed360b4 in ?? () from /usr/local/apache/libexec/libphp4.so
#7  0xeed37494 in ?? () from /usr/local/apache/libexec/libphp4.so
#8  0xeed374d8 in ?? () from /usr/local/apache/libexec/libphp4.so
#9  0x42ffc in ap_invoke_handler ()
#10 0x6009c in process_request_internal ()
#11 0x60120 in ap_process_request ()
#12 0x536b0 in child_main ()
#13 0x53944 in make_child ()
#14 0x53b60 in startup_children ()
#15 0x54550 in standalone_main ()
#16 0x5514c in main ()


The CGI standalone PHP executable, built from the same code, works fine.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-01-06 07:39 UTC] sander@php.net
Does this problem still occur with 4.1.1 and/or the latest CVS?
 [2002-01-09 16:00 UTC] raunn at volterra dot com
Yep. Just compiled 4.1.1 and still the same problem.
 [2002-01-09 16:05 UTC] derick@php.net
Can you make a static apache module, compiled with --enable-debug (non-stripped) and provide a backtrace?

Derick
 [2002-01-09 17:15 UTC] raunn at volterra dot com
Here you go:

#0  0xef1b7be0 in zif_get_defined_vars (ht=980160, return_value=0xffffffff, 
    this_ptr=0xffffffff, return_value_used=0) at zend_builtin_functions.c:916
#1  0x47380 in ap_clear_pool ()
#2  0x47410 in ap_destroy_pool ()
#3  0x47368 in ap_clear_pool ()
#4  0x47410 in ap_destroy_pool ()
#5  0x5c354 in clean_parent_exit ()
#6  0x60188 in standalone_main ()
#7  0x60968 in main ()

 [2002-01-13 16:41 UTC] yohgaki@php.net
Now we need short & complete script that causes this segfault.
Under my Linux

<?php
round(123.123);
?>

does not segfault.
BTW, what is your Apache version?

 [2002-01-14 13:00 UTC] raunn at volterra dot com
Your simple script causes the segfault for me.

I am running Apache 1.3.20.
 [2002-06-18 05:41 UTC] derick@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 [2002-06-18 16:41 UTC] sniper@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately your version of PHP is too old -- the problem
might already be fixed. Please download a new PHP
version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 05 12:01:32 2024 UTC