|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2012-04-12 20:27 UTC] ricardo dot nuno dot rodrigues at hotmail dot com
Description: ------------ Where: Win 7 x64 + Apache 2.2.19 (ApacheLounge) + PHP 5.4.0 TS VC9 APC crashes PHP/Apache Test script: --------------- Script: <?php phpinfo(); ?> Running: ab -n 100 -c 20 http://127.0.0.1/phpinfo.php Expected result: ---------------- Normal output from Apache Bench Actual result: -------------- [12-Apr-2012 19:56:38 UTC] PHP Fatal error: Nesting level too deep - recursive dependency? in C:\AppServ\www\jobbist\phpinfo.php on line 2 Trace: httpd__PID__1604__Date__04_12_2012__Time_09_19_44PM__89__Second_Chance_Exception _C0000005.dmp the assembly instruction at php5ts!deflateEnd+f in C:\AppServ\php5\php5ts.dll from The PHP Group has caused an access violation exception (0xC0000005) when trying to read from memory location 0x0000023a on thread 54 In httpd__PID__8160__Date__04_12_2012__Time_09_20_12PM__550__Second_Chance_Exceptio n_C0000005.dmp the assembly instruction at php5ts!shmdt+27 in C:\AppServ\php5\php5ts.dll from The PHP Group has caused an access violation exception (0xC0000005) when trying to write to memory location 0x00000018 on thread 0 Thread 54 - System ID 8672 Entry point msvcr90!_endthreadex+6f Create time 12-04-2012 21:19:24 Time spent in user mode 0 Days 0:0:0.15 Time spent in kernel mode 0 Days 0:0:0.0 Function Arg 1 Arg 2 Arg 3 Source php5ts!deflateEnd+f 0000021e 5da4ceda 01a47c70 php5ts!libiconv_open+3de8a 4baf7820 4baf7820 4b95f0f0 php5ts!php_request_shutdown+23d 4539ff6c 00000000 56433230 php5ts!php_request_shutdown+a6 4bdfb4a8 4bdfb488 00000004 libapr_1!apr_pstrdup+37 0195f0b0 4baf7820 4539fe44 php5apache2_2+1b88 00000000 00000000 00000000 PHP5TS!DEFLATEEND+FWARNING - DebugDiag was not able to locate debug symbols for php5ts.dll, so the information below may be incomplete. In httpd__PID__1604__Date__04_12_2012__Time_09_19_44PM__89__Second_Chance_Exception _C0000005.dmp the assembly instruction at php5ts!deflateEnd+f in C:\AppServ\php5\php5ts.dll from The PHP Group has caused an access violation exception (0xC0000005) when trying to read from memory location 0x0000023a on thread 54 Thread 0 - System ID 5076 Entry point httpd+21e1 Create time 12-04-2012 21:19:20 Time spent in user mode 0 Days 0:0:0.951 Time spent in kernel mode 0 Days 0:0:0.358 Function Arg 1 Arg 2 Arg 3 Source php5ts!shmdt+27 0189e840 744c3b4e 5da4ab11 php5ts!zend_hash_graceful_reverse_destroy+d 5df3c640 01cdc1d0 01d6b8d8 php5ts!zend_destroy_modules+21 00c9fdd0 00000000 5d9810b5 php5ts!virtual_unlink+162 00000000 00000000 00000000 PHP5TS!SHMDT+27WARNING - DebugDiag was not able to locate debug symbols for php5ts.dll, so the information below may be incomplete. In httpd__PID__8160__Date__04_12_2012__Time_09_20_12PM__550__Second_Chance_Exceptio n_C0000005.dmp the assembly instruction at php5ts!shmdt+27 in C:\AppServ\php5\php5ts.dll from The PHP Group has caused an access violation exception (0xC0000005) when trying to write to memory location 0x00000018 on thread 0 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 19:00:02 2025 UTC |
More information: It seems that in my case the error ("PHP Fatal error: Nesting level too deep - recursive dependency?") occurs when php_request_shutdown is called and ts_resource_ex returns an empty structure. In other words, a session exists (and I can inspect it and see that it is healthy if I explicitly preserve a pointer to the session), but _sapi_globals_struct is empty (server_context is nil, etc.) Any thoughts as to why ts_resource_ex would return an empty globals structure / why globals would not be available? Presumably php_request_shutdown is failing for the same reason. FYI, I am in a multi-threaded environment. I see this declaration: void* ts_resource_ex ( ts_rsrc_id id, THREAD_T* th_id ) But when called, nil is being passed to th_id. Is this correct? What should th_id be set to? Under what conditions are the globals destroyed?