#47766 [Fbk->Opn]: php-cgi.exe crashes
| From: | ipseno at yahoo dot com | Date: | Tue, 24 Mar 2009 23:42:34 +0000 |
| Subject: | #47766 [Fbk->Opn]: php-cgi.exe crashes | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-135079@lists.php.net to get a copy of this message | ||
ID: 47766
User updated by: ipseno at yahoo dot com
Reported By: ipseno at yahoo dot com
-Status: Feedback
+Status: Open
Bug Type: CGI related
Operating System: Win XP SP3
PHP Version: 5.3CVS-2009-03-24 (snap)
New Comment:
I..., m..., well.
Hmmmmm...!?
This script uses custom classes that I've built and needs to be
loaded.
Anyway... I've found out, that crash occurs in LAST line of code before
PHP's closing tag ?>
new face($cont);
There are 2 ways od avoiding crash.
a) By commenting out // new face($cont);
b) By making string $cont supplied to class face shorter then 2232
letters
I can not just post / give you all code, as this script is being built
for financial biz. So it is a secret.
Crash occurs inside object of 'face' class.
What do you propose?
Previous Comments:
------------------------------------------------------------------------
[2009-03-24 23:18:46] pajoye@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc. If the script requires a
database to demonstrate the issue, please make sure it creates
all necessary tables, stored procedures etc.
Please avoid embedding huge scripts into the report.
------------------------------------------------------------------------
[2009-03-24 23:15:19] ipseno at yahoo dot com
Ok, I've parsed it with:
VC9 x86 Non Thread Safe (2009-Mar-24 15:00:00)
* Zip [12.73MB]
sha1: 9c94f8a7cdc73c22da8c66e6af16ade4ceb4d197
Result:
CGI / FastCGI has encountered a problem and needs to close. We are
sorry for the inconvenience.
This means same thing is happening.
Only one line of code is responsible for it.
Commenting it out, makes no crash at all.
Line of code is:
$temp .= $site->p('You will receive ' . $amount . ' ' . $mon . ' to
' .
$dc . ' account with number ' . $acc, array('class'=>'phys_wide
face_green') );
HINT:
When I "shothened"(removed letters), first or second arg of 'p' method
it worked!
Like:
$temp .= $site->p('You will receive ' . $amount . ' ' . $mon . ' to
' .
$dc . ' account number ' . $acc, array('class'=>'phys_wide
face_green')
);
Works without crash!
------------------------------------------------------------------------
[2009-03-24 22:52:46] pajoye@php.net
It would help to have the "evil" script.
If you use FastCGI, you do not need the thread safe version, please try
using the NTS builds (vc9 too).
------------------------------------------------------------------------
[2009-03-24 22:38:26] ipseno at yahoo dot com
Description:
------------
PHP Version 5.3.0RC2-dev
System Windows NT DEV 5.1 build 2600 (Windows XP Professional Service
Pack 3) i586
Build Date Mar 24 2009 14:47:41
Compiler MSVC9 (Visual C++ 2008)
Architecture x86
Server API CGI/FastCGI
I am using VC9, as I am not runing php as apache's modul.
If that would be a case, I would use VC6 instead.
After parsing "evil" script:
Faulting application php-cgi.exe, version 5.3.0.0, faulting module
php5ts.dll, version 5.3.0.0, fault address 0x000a4f6e.
Category: (100)
Type: Error
Event ID: 1000
If you ask / need, I will make a backtrace.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=47766&edit=1