#47766 [Opn->Fbk]: php-cgi.exe crashes

[email protected]
Newsgroups php.bugs
Message-ID <[email protected]>
 ID:               47766
 Updated by:       [email protected]
 Reported By:      ipseno at yahoo dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         CGI related
 Operating System: Win XP SP3
 PHP Version:      5.3CVS-2009-03-24 (snap)
 New Comment:

Please try using this CVS snapshot:

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

  http://windows.php.net/snapshots/

Pretty sure this was fixed on Wednesday / Thursday.


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

[2009-03-29 03:42:47] ipseno at yahoo dot com

Thread 0 - System ID 7056Entry point	  php_cgi+61ea
Create time	  29.3.2009 1:37:02
Time spent in user mode	  0 Days 0:0:0.0
Time spent in kernel mode	  0 Days 0:0:0.93



Function	    Arg 1	    Arg 2	    Arg 3	  Source
php5!lex_scan+2c06	    00c0c8e4	    00000001	    0000002f	  
php5!zend_register_auto_global+7f	    00000000	    00000000	   
00000000	  



PHP5!LEX_SCAN+2C06WARNING - DebugDiag was not able to locate debug
symbols for php5.dll, so the information below may be incomplete.

In
php-cgi__PID__6828__Date__03_29_2009__Time_01_37_08AM__796__Second_Chance_Exception_C0000005.dmp
the assembly instruction at php5!lex_scan+2c06 in D:\Program
Files\php\php5.dll from The PHP Group has caused an access violation
exception (0xC0000005) when trying to read from memory location
0x02461000 on thread 0Module Information
Image Name:	D:\Program Files\php\php5.dll	  Symbol Type: 	Export
Base address:	0x10000000	  Time Stamp: 	Tue Mar 24 15:58:10 2009 
Checksum:	0x0055c816	  Comments: 	
COM DLL:	False	  Company Name: 	The PHP Group
ISAPIExtension:	False	  File Description: 	PHP Script Interpreter
ISAPIFilter:	False	  File Version: 	5.3.0RC2-dev
Managed DLL:	False	  Internal Name: 	PHP Script Interpreter
VB DLL:	False	  Legal Copyright: 	Copyright © 1997-2008 The PHP Group
Loaded Image Name: 	php5.dll	  Legal Trademarks: 	PHP
Mapped Image Name: 		  Original filename: 	php5.dll
Module name: 	php5	  Private Build: 	
Single Threaded: 	False	  Product Name: 	PHP
Module Size: 	5,45 MBytes	  Product Version: 	5.3.0RC2-dev
Symbol File Name: 	php5.dll	  Special Build: 	&

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

[2009-03-25 22:16:36] ipseno at yahoo dot com

Thread 0 - System ID 1888Entry point	  php_cgi+61ea
Create time	  25.3.2009 23:08:05
Time spent in user mode	  0 Days 0:0:0.46
Time spent in kernel mode	  0 Days 0:0:0.78



Function	    Arg 1	    Arg 2	    Arg 3	  Source
php5!lex_scan+2c06	    00c0c8e4	    00000001	    0000002f	  
php5!zend_register_auto_global+7f	    00000000	    00000000	   
00000000	  



PHP5!LEX_SCAN+2C06WARNING - DebugDiag was not able to locate debug
symbols for php5.dll, so the information below may be incomplete.

In
php-cgi__PID__2540__Date__03_25_2009__Time_11_08_11PM__531__Second_Chance_Exception_C0000005.dmp
the assembly instruction at php5!lex_scan+2c06 in D:\Program
Files\php\php5.dll from The PHP Group has caused an access violation
exception (0xC0000005) when trying to read from memory location
0x02461000 on thread 0Module Information
Image Name:	D:\Program Files\php\php5.dll	  Symbol Type: 	Export
Base address:	0x10000000	  Time Stamp: 	Tue Mar 24 15:58:10 2009 
Checksum:	0x0055c816	  Comments: 	
COM DLL:	False	  Company Name: 	The PHP Group
ISAPIExtension:	False	  File Description: 	PHP Script Interpreter
ISAPIFilter:	False	  File Version: 	5.3.0RC2-dev
Managed DLL:	False	  Internal Name: 	PHP Script Interpreter
VB DLL:	False	  Legal Copyright: 	Copyright © 1997-2008 The PHP Group
Loaded Image Name: 	php5.dll	  Legal Trademarks: 	PHP
Mapped Image Name: 		  Original filename: 	php5.dll
Module name: 	php5	  Private Build: 	
Single Threaded: 	False	  Product Name: 	PHP
Module Size: 	5,45 MBytes	  Product Version: 	5.3.0RC2-dev
Symbol File Name: 	php5.dll	  Special Build: 	&

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

[2009-03-25 13:16:58] ipseno at yahoo dot com

Ok, I will make a backtrace then and post it here.
But until I do it, this is last what I found out:

Remember comment line:
// From DB....

Well if I remove JUST one dot it becomes:
// From DB...
and NO crash occurs!!!

If I ADD just one dot it becomes:
// From DB.....
and NO crash occurs!!!

What does it tell you, at a first glance?
I think, that it is, a specific number of string symbols, in .php file
that represent PHP(code) script itself, that brings core down

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

[2009-03-25 08:59:21] [email protected]

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.

And how we suppose to know what you are doing then?

You can try to create a backtrace, maybe there is an obvious problem
which can be seen in it.



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

[2009-03-25 00:34:01] ipseno at yahoo dot com

Script has 145 lines of code and loads 5 custom classes and 3 extra
files.

What you propose is, as I've just found, most likely impossible.
Reason is that crash won't appear if I remove ANYTHING from script.

At one line I removed COMMENT!
// From DB....

Which doesn't affect PHP's code in ANY way.
To my shock everythhing restored to normal.

Exactly this fact makes me unable to ISOLATE few lines of code for
crash reproduction.

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

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/47766

-- 
Edit this bug report at http://bugs.php.net/?id=47766&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.