ID:               27759
 Updated by:       [EMAIL PROTECTED]
 Reported By:      patrick at rap-x dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Reproducible crash
 Operating System: Windows XP
 PHP Version:      5.0.0RC1
 New Comment:

Latest snapshot



For Windows:

 

  http://snaps.php.net/win32/php5-win32-latest.zip


Previous Comments:
------------------------------------------------------------------------

[2004-04-04 20:48:23] patrick at rap-x dot com

The bug is still reproducible, on the same code base. I don't have a
windows compiler for C, so I can't try the hugely useful suggestion
from polita. 



I've commented out or replaced all instances of bcmath functions in my
code. I don't have a windows compiler for C, so I can't try the hugely
useful suggestion from polita. 



If someone can point me to some binaries I'll test them.

------------------------------------------------------------------------

[2004-04-04 14:01:17] [EMAIL PROTECTED]

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.



------------------------------------------------------------------------

[2004-04-02 09:21:02] marwan at marvonline dot org

I've tested the April 1st build and it still has the problem.



This affects all the bcmath functions and happens when either of the
first two arguments evaluates to zero (this means 0, '0', and '').



I have the same setup as the original submitter.

------------------------------------------------------------------------

[2004-03-29 16:29:14] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip

------------------------------------------------------------------------

[2004-03-29 15:43:37] patrick at rap-x dot com

Description:
------------
The following code causes PHP5 RC1 (module)/ WINXP / Apache2 to crash.



The same code doesn't cause a crash on PHP 4.3.4 / WINXP/ IIS (CGI)



Fault discovered by using PEAR :: Benchmark



Workaround is to mess around line 230ish in pear Timer.php so that the
bcadd is not called.

Reproduce code:
---------------
$total = "0";

$diff = "";

bcadd($total, $diff, 6);

Expected result:
----------------
n/a

Actual result:
--------------
Apache2 crashes



Windows Event Log records:



Faulting application Apache.exe, version 2.0.49.0, faulting module
php5ts.dll, version 5.0.0.0, fault address 0x0003c773.



Apache error log: 



Parent: child process exited with status 3221225477 -- Restarting.

[notice] Parent: Created child process 2120

[notice] Child 2120: Child process is running

[notice] Child 2120: Acquired the start mutex.

[notice] Child 2120: Starting 250 worker threads.



[notice] Parent: Created child process 2120

[notice] Child 2120: Child process is running

[notice] Child 2120: Acquired the start mutex.

[notice] Child 2120: Starting 250 worker threads.

[notice] Parent: child process exited with status 2147483649 --
Restarting.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=27759&edit=1

Reply via email to