php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #55410 Apache's crash with trait in a separate file
Submitted: 2011-08-12 08:20 UTC Modified: 2011-08-15 11:14 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: paddelman at hotmail dot com Assigned: gron (profile)
Status: Closed Package: Scripting Engine problem
PHP Version: 5.4.0alpha3 OS: *
Private report: No CVE-ID: None
 [2011-08-12 08:20 UTC] paddelman at hotmail dot com
Description:
------------
When using traits (in a separate file!), 2nd line inside a method (static or not), after a var init (static or not) results in an apache crash.

Apache/log/error.log:
[notice] Parent: child process exited with status 3221225477 -- Restarting.

Test script:
---------------
https://gist.github.com/1141586

Expected result:
----------------
Nothing.

Actual result:
--------------
Apache's crash!

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-08-12 08:23 UTC] paddelman at hotmail dot com
Debug Report:

Analysis Summary  
  Type Description Recommendation 
  Error WARNING - DebugDiag was not able to locate debug symbols for php5ts.dll, so the information below may be incomplete.



In apache__PID__4388__Date__08_12_2011__Time_09_35_55AM__156__Second_Chance_Exception_C0000005.dmp the assembly instruction at php5ts!zend_mm_set_custom_handlers+270 in G:\Apps\EasyPhp\EasyPHP-5.4alpha3\php\php5ts.dll from The PHP Group has caused an access violation exception (0xC0000005) when trying to read from memory location 0x00000100 on thread 63
 Please follow up with the vendor The PHP Group for G:\Apps\EasyPhp\EasyPHP-5.4alpha3\php\php5ts.dll
 
  Information DebugDiag determined that this dump file (apache__PID__4388__Date__08_12_2011__Time_09_35_55AM__156__Second_Chance_Exception_C0000005.dmp) is a crash dump and did not perform any hang analysis. If you wish to enable combined crash and hang analysis for crash dumps, edit the CrashHangAnalysis.asp script (located in the DebugDiag\Scripts folder) and set the g_DoCombinedAnalysis constant to True.   
 
 


 
 Analysis Details  
  


 Your browser settings are currently prohibiting this report's scripts from running.

This is preventing some features of this analysis report from displaying properly. To enable scripts to run, right-click the security warning above and choose "Allow Blocked Content..." or enable the "Allow active content to run in files on My Computer*" setting on the Advanced tab of your "Internet Options" dialog to avoid being prompted in the future 





Table Of Contents
apache__PID__4388__Date__08_12_2011__Time_09_35_55AM__156__Second_Chance_Exception_C0000005.dmp

   Faulting Thread

   Faulting Module Information



 Report for apache__PID__4388__Date__08_12_2011__Time_09_35_55AM__156__Second_Chance_Exception_C0000005.dmp




Report for apache__PID__4388__Date__08_12_2011__Time_09_35_55AM__156__Second_Chance_Exception_C0000005.dmp
Type of Analysis Performed   Crash Analysis 
Machine Name   SATINA 
Operating System   Windows XP Service Pack 3 
Number Of Processors   2 
Process ID   4388 
Process Image   G:\Apps\EasyPhp\EasyPHP-5.4alpha3\apache\bin\apache.exe 
System Up-Time   02:37:38 
Process Up-Time   00:02:35 


Thread 63 - System ID 5176
Entry point   msvcr90!endthreadex+6f 
Create time   12/08/2011 09:33:23 
Time spent in user mode   0 Days 0:0:0.0 
Time spent in kernel mode   0 Days 0:0:0.15 






Function     Arg 1     Arg 2     Arg 3   Source 
php5ts!zend_mm_set_custom_handlers+270     00000054     02eedf58     00000000    
php5ts!safe_emalloc+74     00000000     00000000     00000000    




PHP5TS!ZEND_MM_SET_CUSTOM_HANDLERS+270WARNING - DebugDiag was not able to locate debug symbols for php5ts.dll, so the information below may be incomplete.



In apache__PID__4388__Date__08_12_2011__Time_09_35_55AM__156__Second_Chance_Exception_C0000005.dmp the assembly instruction at php5ts!zend_mm_set_custom_handlers+270 in G:\Apps\EasyPhp\EasyPHP-5.4alpha3\php\php5ts.dll from The PHP Group has caused an access violation exception (0xC0000005) when trying to read from memory location 0x00000100 on thread 63

Module Information 
Image Name: G:\Apps\EasyPhp\EasyPHP-5.4alpha3\php\php5ts.dll   Symbol Type:  Export 
Base address: 0x00b90000   Time Stamp:  Thu Aug 04 12:43:07 2011  
Checksum: 0x005ecb62   Comments:   
COM DLL: False   Company Name:  The PHP Group 
ISAPIExtension: False   File Description:  PHP Script Interpreter 
ISAPIFilter: False   File Version:  5.4.0alpha3 
Managed DLL: False   Internal Name:  PHP Script Interpreter 
VB DLL: False   Legal Copyright:  Copyright © 1997-2010 The PHP Group 
Loaded Image Name:  php5ts.dll   Legal Trademarks:  PHP 
Mapped Image Name:     Original filename:  php5ts.dll 
Module name:  php5ts   Private Build:   
Single Threaded:  False   Product Name:  PHP 
Module Size:  6,04 MBytes   Product Version:  5.4.0alpha3 
Symbol File Name:  php5ts.dll   Special Build:  &
 [2011-08-12 08:46 UTC] tony2001@php.net
-Status: Open +Status: Assigned -Package: Reproducible crash +Package: Scripting Engine problem -Assigned To: +Assigned To: dmitry
 [2011-08-12 09:10 UTC] pajoye@php.net
-Operating System: Windows XP +Operating System: *
 [2011-08-12 21:55 UTC] felipe@php.net
Probably related to bug #55382
 [2011-08-13 09:49 UTC] paddelman at hotmail dot com
In my bug report, it isnt about $GLOBALS.

I isolated the problem more than him.
 [2011-08-13 18:02 UTC] ava3ar at gmail dot com
This does seem the root culprit than the use of SUPERGLOBALS, it does seem to be 
related to including of a trait instead of the contents of the trait, mine could 
just be a side effect
 [2011-08-15 10:04 UTC] gron@php.net
-Assigned To: dmitry +Assigned To: gron
 [2011-08-15 10:04 UTC] gron@php.net
I think it was a problem with handling literals.
Which would make it a duplicate of https://bugs.php.net/bug.php?id=55372.

Could you please verify whether it works as of SVN rev 314933?

Thanks
Stefan
 [2011-08-15 11:14 UTC] dmitry@php.net
-Status: Assigned +Status: Closed
 [2011-08-15 11:14 UTC] dmitry@php.net
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 21:01:30 2024 UTC