RE: [INTERNALS-WIN] PHP 5.4 crashes in Magento 1.7.0.2

From: Date: Tue, 06 Nov 2012 07:44:06 +0000
Subject: RE: [INTERNALS-WIN] PHP 5.4 crashes in Magento 1.7.0.2
References: 1 2 3  Groups: php.internals.win 
Request: Send a blank email to internals-win+get-920@lists.php.net to get a copy of this message
I was too quick... Even after installing APC 3.1.13, I get the same error. Does anyone have an idea what could be the reason? Here again the WinDbg output: 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: 0000000000260000 0000000000272000 C:\Program Files (x86)\PHP\php.exe ModLoad: 0000000077180000 0000000077329000 C:\Windows\SYSTEM32\ntdll.dll ModLoad: 0000000077360000 00000000774e0000 ntdll.dll ModLoad: 0000000074520000 000000007455f000 C:\Windows\SYSTEM32\wow64.dll ModLoad: 00000000744c0000 000000007451c000 C:\Windows\SYSTEM32\wow64win.dll ModLoad: 00000000744b0000 00000000744b8000 C:\Windows\SYSTEM32\wow64cpu.dll ModLoad: 0000000076650000 0000000076760000 KERNEL32.dll ModLoad: 0000000074c40000 0000000074c87000 KERNELBASE.dll ModLoad: 00000000594a0000 0000000059a88000 php5ts.dll ModLoad: 0000000074b50000 0000000074bf0000 ADVAPI32.dll ModLoad: 0000000074aa0000 0000000074b4c000 msvcrt.dll ModLoad: 0000000075040000 0000000075059000 SECHOST.dll ModLoad: 0000000076560000 0000000076650000 RPCRT4.dll ModLoad: 0000000074a40000 0000000074aa0000 SspiCli.dll ModLoad: 0000000074a30000 0000000074a3c000 CRYPTBASE.dll ModLoad: 0000000075350000 0000000075385000 WS2_32.dll ModLoad: 00000000761a0000 00000000761a6000 NSI.dll ModLoad: 00000000737b0000 000000007383c000 ODBC32.dll ModLoad: 0000000076880000 0000000076980000 USER32.dll ModLoad: 0000000074db0000 0000000074e40000 GDI32.dll ModLoad: 0000000074f30000 0000000074f3a000 LPK.dll ModLoad: 0000000075390000 000000007542d000 USP10.dll ModLoad: 00000000751f0000 000000007534c000 ole32.dll ModLoad: 0000000073840000 0000000073884000 DNSAPI.dll ModLoad: 0000000073360000 0000000073403000 MSVCR90.dll ModLoad: 0000000075430000 0000000075490000 IMM32.dll ModLoad: 0000000074f40000 000000007500c000 MSCTF.dll ModLoad: 00000000738b0000 00000000738e8000 image00000000`738b0000 ModLoad: 0000000074410000 000000007443b000 php_xdebug.dll ModLoad: 0000000010000000 0000000010022000 php_apc.dll ModLoad: 0000000074490000 00000000744a2000 php_bz2.dll ModLoad: 0000000074390000 0000000074403000 php_curl.dll ModLoad: 00000000029f0000 0000000002aef000 LIBEAY32.dll ModLoad: 0000000074090000 0000000074097000 WSOCK32.dll ModLoad: 00000000001d0000 0000000000206000 SSLEAY32.dll ModLoad: 0000000074bf0000 0000000074c35000 WLDAP32.dll ModLoad: 0000000073e40000 0000000074082000 php_fileinfo.dll ModLoad: 0000000073cc0000 0000000073e3d000 php_gd2.dll ModLoad: 0000000074350000 0000000074381000 php_intl.dll ModLoad: 000000004a800000 000000004a940000 icuuc49.dll ModLoad: 000000004ad00000 000000004be22000 icudt49.dll ModLoad: 0000000071310000 000000007139e000 MSVCP90.dll ModLoad: 0000000002af0000 0000000002c8f000 icuin49.dll ModLoad: 0000000074110000 000000007423a000 php_mbstring.dll ModLoad: 0000000074480000 000000007448c000 php_mysql.dll ModLoad: 0000000074300000 0000000074319000 php_mysqli.dll ModLoad: 00000000742d0000 00000000742f6000 php_oci8_11g.dll ModLoad: 0000000002c90000 0000000002d8b000 OCI.dll ModLoad: 0000000073470000 000000007350b000 MSVCR80.dll ModLoad: 0000000075540000 0000000075545000 PSAPI.DLL ModLoad: 0000000074320000 0000000074335000 php_openssl.dll ModLoad: 00000000742b0000 00000000742ba000 php_pdo_mysql.dll ModLoad: 0000000073c50000 0000000073cba000 php_pdo_sqlite.dll ModLoad: 00000000740d0000 000000007410f000 php_soap.dll ModLoad: 00000000742c0000 00000000742cd000 php_sockets.dll ModLoad: 00000000736b0000 00000000736cc000 IPHLPAPI.DLL ModLoad: 00000000736a0000 00000000736a7000 WINNSI.DLL ModLoad: 0000000073ba0000 0000000073c4a000 php_sqlite3.dll ModLoad: 0000000074440000 000000007447c000 MSWSOCK.dll ModLoad: 0000000074340000 0000000074346000 WSHIP6.dll ModLoad: 0000000074240000 0000000074245000 WSHTCPIP.dll ModLoad: 00000000736e0000 0000000073707000 WLIDNSP.dll ModLoad: 0000000074ed0000 0000000074f27000 SHLWAPI.dll ModLoad: 0000000073690000 0000000073696000 rasadhlp.dll ModLoad: 0000000073650000 0000000073688000 fwpuclnt.dll (176c.1b80): Break instruction exception - code 80000003 (first chance) ntdll!DbgBreakPoint: 00000000`771d0530 cc int 3 0:004> g ModLoad: 0000000070d00000 0000000070d80000 C:\Windows\SysWOW64\uxtheme.dll ModLoad: 0000000070db0000 0000000070dc3000 C:\Windows\SysWOW64\dwmapi.dll (176c.1398): 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: 594f990f 8b043a mov eax,dword ptr [edx+edi] ds:002b:6ca70684=???????? 0:000:x86> g (176c.1398): Access violation - code c0000005 (!!! second chance !!!) ntdll_77360000!ZwRaiseException+0x12: 773815de 83c404 add esp,4 -----Original Message----- From: Christian Stoller [mailto:stoller@leonex.de] Sent: Monday, November 05, 2012 12:47 PM To: Stas Malyshev Cc: internals-win@lists.php.net Subject: RE: [INTERNALS-WIN] PHP 5.4 crashes in Magento 1.7.0.2 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: 0000000001390000 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

« previous php.internals.win (#920) next »