RE: [INTERNALS-WIN] PHP 5.4 crashes in Magento 1.7.0.2
| From: | Christian Stoller | Date: | Mon, 05 Nov 2012 11:47:19 +0000 |
| Subject: | RE: [INTERNALS-WIN] PHP 5.4 crashes in Magento 1.7.0.2 | ||
| References: | 1 2 | Groups: | php.internals.win |
| Request: | Send a blank email to internals-win+get-918@lists.php.net to get a copy of this message | ||
Thank you for your response.
I tried to install "Debug Diagnostics" but I always get this error message: "Product:
Debug Diagnostics 1.2 -- Error 1721. There is a problem with this Windows Installer package. A
program required for this install to complete could not be run. Contact your support personnel or
package vendor. Action: RegisterDbgHost, location: C:\Program Files\DebugDiag\DbgHost.exe, command:
-RegServer"
So I attached WinDbg to the process of PHP's build-in server .
Microsoft (R) Windows Debugger Version 6.12.0002.633 AMD64
Copyright (c) Microsoft Corporation. All rights reserved.
*** wait with pending attach
Symbol search path is: SRV*"D:\Programme\WinDbg Symbol Path"*http://msdl.microsoft.com/download/symbols
Executable search path is:
ModLoad: 00000000
01390000 00000000013a2000 C:\Program Files (x86)\PHP\php.exe
ModLoad: 00000000774d0000 0000000077679000 C:\Windows\SYSTEM32\ntdll.dll
ModLoad: 00000000776b0000 0000000077830000 ntdll.dll
ModLoad: 0000000074870000 00000000748af000 C:\Windows\SYSTEM32\wow64.dll
ModLoad: 0000000074810000 000000007486c000 C:\Windows\SYSTEM32\wow64win.dll
ModLoad: 0000000074800000 0000000074808000 C:\Windows\SYSTEM32\wow64cpu.dll
ModLoad: 0000000074df0000 0000000074f00000 KERNEL32.dll
ModLoad: 0000000076770000 00000000767b7000 KERNELBASE.dll
ModLoad: 00000000529d0000 0000000052fb8000 php5ts.dll
ModLoad: 0000000076d20000 0000000076dc0000 ADVAPI32.dll
ModLoad: 0000000075ec0000 0000000075f6c000 msvcrt.dll
ModLoad: 0000000075bb0000 0000000075bc9000 SECHOST.dll
ModLoad: 0000000076530000 0000000076620000 RPCRT4.dll
ModLoad: 0000000074d90000 0000000074df0000 SspiCli.dll
ModLoad: 0000000074d80000 0000000074d8c000 CRYPTBASE.dll
ModLoad: 0000000076980000 00000000769b5000 WS2_32.dll
ModLoad: 0000000077680000 0000000077686000 NSI.dll
ModLoad: 0000000073b00000 0000000073b8c000 ODBC32.dll
ModLoad: 0000000076b90000 0000000076c90000 USER32.dll
ModLoad: 00000000766b0000 0000000076740000 GDI32.dll
ModLoad: 0000000076740000 000000007674a000 LPK.dll
ModLoad: 00000000767c0000 000000007685d000 USP10.dll
ModLoad: 0000000075be0000 0000000075d3c000 ole32.dll
ModLoad: 0000000073b90000 0000000073bd4000 DNSAPI.dll
ModLoad: 00000000736a0000 0000000073743000 MSVCR90.dll
ModLoad: 0000000075d40000 0000000075da0000 IMM32.dll
ModLoad: 0000000075da0000 0000000075e6c000 MSCTF.dll
ModLoad: 0000000073ac0000 0000000073af8000 image00000000`73ac0000
ModLoad: 0000000074480000 00000000744ab000 php_xdebug.dll
ModLoad: 0000000010000000 0000000010021000 php_apc.dll
ModLoad: 0000000074600000 0000000074612000 php_bz2.dll
ModLoad: 00000000742e0000 0000000074353000 php_curl.dll
ModLoad: 0000000001030000 000000000112f000 LIBEAY32.dll
ModLoad: 0000000073ab0000 0000000073ab7000 WSOCK32.dll
ModLoad: 00000000001b0000 00000000001e6000 SSLEAY32.dll
ModLoad: 0000000075e70000 0000000075eb5000 WLDAP32.dll
ModLoad: 0000000073c30000 0000000073e72000 php_fileinfo.dll
ModLoad: 0000000071a50000 0000000071bcd000 php_gd2.dll
ModLoad: 00000000743d0000 0000000074401000 php_intl.dll
ModLoad: 000000004a800000 000000004a940000 icuuc49.dll
ModLoad: 000000004ad00000 000000004be22000 icudt49.dll
ModLoad: 0000000071660000 00000000716ee000 MSVCP90.dll
ModLoad: 0000000002de0000 0000000002f7f000 icuin49.dll
ModLoad: 0000000071920000 0000000071a4a000 php_mbstring.dll
ModLoad: 0000000074760000 000000007476c000 php_mysql.dll
ModLoad: 00000000743b0000 00000000743c9000 php_mysqli.dll
ModLoad: 0000000074370000 0000000074396000 php_oci8_11g.dll
ModLoad: 0000000002940000 0000000002a3b000 OCI.dll
ModLoad: 00000000737a0000 000000007383b000 MSVCR80.dll
ModLoad: 0000000076490000 0000000076495000 PSAPI.DLL
ModLoad: 0000000073c10000 0000000073c25000 php_openssl.dll
ModLoad: 0000000074690000 000000007469a000 php_pdo_mysql.dll
ModLoad: 0000000071820000 000000007188a000 php_pdo_sqlite.dll
ModLoad: 0000000071760000 000000007179f000 php_soap.dll
ModLoad: 0000000074470000 000000007447d000 php_sockets.dll
ModLoad: 0000000073a00000 0000000073a1c000 IPHLPAPI.DLL
ModLoad: 00000000739f0000 00000000739f7000 WINNSI.DLL
ModLoad: 0000000071460000 000000007150a000 php_sqlite3.dll
ModLoad: 0000000074790000 00000000747cc000 MSWSOCK.dll
ModLoad: 0000000074680000 0000000074686000 WSHIP6.dll
ModLoad: 0000000074590000 0000000074595000 WSHTCPIP.dll
ModLoad: 0000000073a30000 0000000073a57000 WLIDNSP.dll
ModLoad: 0000000076090000 00000000760e7000 SHLWAPI.dll
ModLoad: 00000000739e0000 00000000739e6000 rasadhlp.dll
ModLoad: 00000000739a0000 00000000739d8000 fwpuclnt.dll
(1d8c.212c): Break instruction exception - code 80000003 (first chance)
ntdll!DbgBreakPoint:
00000000`77520530 cc int 3
0:004> g
I load the home page of magento and it works. But on the second page load (refresh) the debugger
gives me this output:
ModLoad: 00000000710c0000 0000000071140000 C:\Windows\SysWOW64\uxtheme.dll
ModLoad: 0000000071170000 0000000071183000 C:\Windows\SysWOW64\dwmapi.dll
(1d8c.167c): Access violation - code c0000005 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
*** ERROR: Symbol file could not be found. Defaulted to export symbols for php5ts.dll -
php5ts!zval_dtor_func+0x20f:
52a2990f 8b043a mov eax,dword ptr [edx+edi] ds:002b:6ca3c064=????????
I hope this may help you a little bit.
Meanwhile I am guessing that APC is responsible for this error. Because when I deactivate it
everything works fine. And I do not get these errors.
Maybe the reason is that I am using APC version 3.1.9 (not the latest). I will try to setup
Microsoft Visual C++ 2008 to build the latest version of APC.
Christian Stoller
-----Original Message-----
From: Stas Malyshev [mailto:smalyshev@sugarcrm.com]
Sent: Wednesday, October 31, 2012 5:47 PM
To: Christian Stoller
Cc: internals-win@lists.php.net
Subject: Re: [INTERNALS-WIN] PHP 5.4 crashes in Magento 1.7.0.2
Hi!
> Here are the steps:
> - I have downloaded a fresh Magento (Community Edition, v 1.7.0.2), to be sure that you can
> reproduce it, from http://www.magentocommerce.com/download
> - Then extracted it
> - Make the whole magento directory editable for all users (full access)
> - start built-in server by:
> $ C:\www\magento>php -S localhost:8000
> - Visit http://localhost:8000/index.php
> - Magento will redirect you to installation wizard - fill out the form
> - After the input of database information and session storage (File System) PHP crashes every
> time
>
> It would be nice if anyone can look at this issue. Thanks a lot.
Could you try to collect a backtrace (details here:
https://bugs.php.net/how-to-report.php) and
then submit a bug on
bugs.php.net?
Thanks,
--
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227