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

2009-05-18 Thread pajoye
 ID:   47766
 Updated by:   paj...@php.net
 Reported By:  ipseno at yahoo dot com
-Status:   Assigned
+Status:   Feedback
 Bug Type: CGI related
 Operating System: win32 only - Win XP SP3
 PHP Version:  5.3CVS-2009-03-24 (snap)
 Assigned To:  pajoye
 New Comment:

No, I can't reproduce it. Without the script you are using, there is
also no chance to actually reproduce your problem. Btw, out of
curiosity, how large are the files used by the script? and the script
itself?


Previous Comments:


[2009-04-07 23:53:14] ipseno at yahoo dot com

Done. Restarted. And same crash occurs.

Listen...
Can you confirm that bug.php crashed yours php-cgi.exe?
And after editing file by means of removing any symbol or adding one,
"fixes" it?



[2009-04-07 23:00:45] paj...@php.net

Be sure to use the libmysql.dll from the PHP releases and not the
5.1.30 DLL. Check your PATH environment, the php directory must be first
in the list.




[2009-04-07 22:51:04] ipseno at yahoo dot com

MySQL server is: 5.1.33, but 2 dayys ago it was 5.1.30
I tested script with both versions and crash occured.

I am confused, with your questions about phar and mysql.

I've told you, that on a new box with fresh WinXP SP3, and all updates.
I've installed Apache 2.2.11 and PHP 5.3.0RC2-dev

Then parsed it(bug.php->which was the ONLY .php file on that server, so
there was nothing to include() || require() or load in any way) by
typing it's location in URL of browser which depends on apaches config:
Ie: https://127.0.0.15/bug.php

IMPORTANT!!!
Do not parse it by means of mod_php! But as fcgid! -> Server API
CGI/FastCGI 

I use in apache's config:
LoadModule fcgid_module modules/mod_fcgid.so

ScriptAlias /php5 "D:/Program Files/php/php-cgi.exe"
Action application/x-httpd-php /php5

AddType application/x-httpd-php .php5 .php4 .php .php3 .php2 .phtml
.png

DirectoryIndex index.php index.html index.htm


You must receive:
CGI / FastCGI has encountered a problem and needs to close.  We are
sorry for the inconvenience.
An then:
500
Internal Server Error

The server encountered an internal error or misconfiguration and was
unable to complete your request.

Please contact the server administrator, webmas...@exchanger.com and
inform them of the time the error occurred, and anything you might have
done that may have caused the error.

More information about this error may be available in the server error
log.



[2009-04-07 09:20:12] paj...@php.net

Sorry, but the script you sent me does not help. It still requires
other files and is not really small.

For what I can see the DB connection is done at this stage as well.
That brings me to one common problem:

- Which mysql version do you use? (server)



[2009-04-07 09:14:45] j...@php.net

Perhaps if that PHAR thing is removed it works fine?



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



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

2009-04-07 Thread pajoye
 ID:   47766
 Updated by:   paj...@php.net
 Reported By:  ipseno at yahoo dot com
-Status:   Assigned
+Status:   Feedback
 Bug Type: CGI related
 Operating System: Win XP SP3
 PHP Version:  5.3CVS-2009-03-24 (snap)
 Assigned To:  pajoye
 New Comment:

Sorry, but the script you sent me does not help. It still requires
other files and is not really small.

For what I can see the DB connection is done at this stage as well.
That brings me to one common problem:

- Which mysql version do you use? (server)


Previous Comments:


[2009-04-07 09:14:45] j...@php.net

Perhaps if that PHAR thing is removed it works fine?



[2009-04-07 00:27:48] ipseno at yahoo dot com

I've installed same OS on a new box, with sam Apache and PHP and Mysql
ver.s and confs

Then I've put only "that" .php file in Apache dir and parsed it with
php-cgi.exe

Crash occurred immediately! So now I know, that cause, is not from some
custom configurations or some safety software or any other third party
software.

Next, VERY GOOD part, is that even that file requires() few external
files and objects, on that testing server I did not "gave them" to the
script, because I've found out, that crash occurs, before any inclusion
occurs, that is  crash occurs at a core of PHP's startup.

This means I can send you an "evil" script, as I don't need to give you
protected classes.

But you must promise, you will destroy it and erase it permanently
after you are "done".



[2009-04-05 22:38:35] paj...@php.net

Thansk for the backtrace, I still need a script to reproduce the
problem. Or can you give me access to this box or to the app you use?
The crash looks weird, in the lexer.



[2009-04-05 22:23:03] ipseno at yahoo dot com

And my answer to your templated request is above at:
[25 Mar 1:16pm UTC] ipseno at yahoo dot com

I've just downloaded latest 5.3.0RC2-dev, Build Date: Apr 5 2009
22:55:43 
Crash still occurs, by returning 500 Internal server error.

Here is a brand new Crash report that gives best info so far...


Thread 0 - System ID 3192Entry point  php_cgi!mainCRTStartup
Create time   6.4.2009 0:16:56
Time spent in user mode   0 Days 0:0:0.0
Time spent in kernel mode 0 Days 0:0:0.78



FunctionArg 1   Arg 2   Arg 3 Source
php5!lex_scan+2c26  00c0c8e40001002f  
php5!zendlex+2f 00c0c8dc00c0deac00fdce30  
php5!zendparse+15a  00fdce3000020040  
php5!compile_file+b000c0deac000800c0cc48  
php5!phar_open_from_filename+2d600c0deac0008   
00c0deac  
php5!zend_execute_scripts+4e00080003
  
php5!php_execute_script+1c8 00c0deac0040a4f00001
  
php_cgi!main+ab0000100dc2be800dc3080  
php_cgi!memset+160  7ffdf000  
kernel32!BaseProcessStart+23004061ea
  



PHP5!LEX_SCAN+2C26In
php-cgi__PID__4564__Date__04_06_2009__Time_12_17_03AM__46__Second_Chance_Exception_C005.dmp
the assembly instruction at php5!lex_scan+2c26 in D:\Program
Files\php\php5.dll from The PHP Group has caused an access violation
exception (0xC005) when trying to read from memory location
0x02331000 on thread 0Module Information
Image Name: D:\Program Files\php\php5.dll Symbol Type:  PDB
Base address:   0x1000Time Stamp:   Sun Apr 05 23:56:26 2009 
Checksum:   0x00550f1fComments: 
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:
D:\Interport\php-debug-pack-5.3-nts-win32-VC9-x86-latest\php5.pdb   
 
Special Build:  &



[2009-03-29 11:45:19] ipseno at yahoo dot com

I have just used lattest windows snapshot of VC9 x86 Non Thread Safe.

Bug is still present, so crash still occurs.

---