From: khagiya1 at yahoo dot co dot jp Operating system: Windows Xp Professional Ver2002 PHP version: 4.3.5 PHP Bug Type: Reproducible crash Bug description: It crashes at the last of cgi_main.
Description: ------------ Please let me know. I downloaded "PHP 4.3.5 (tar.gz) [4,706Kb]-26 March 2004." from "http://www.php.net/downloads.php" It is used building it personally. It crash, although only built. Reproduce code: --------------- The example of a code to generate [c:/hello.csp] <?php echo 'hello!!'; ?> [php.ini] zend_extension_ts = c:/ioncube_loader.dll EThe following is performed on a console. c:/php.exe -f c:/hello.csp It is displayed on a screen as "hello!!". Crash occurs together with it. This is generated only when module(zend_extension_ts) is loaded. It does not generate in module(extension). When the code was seen, it had generated in the following places. The following change went into TSRM/TSRM.c by php-4.3.4 to php-4.3.5. *** TSRM/TSRM.c Tue Nov 11 14:17:17 2003 <-- 4.3.4 --- TSRM/TSRM.c Wed Dec 17 04:59:58 2003 <-- 4.3.5 *************** *** 157,163 **** int j; next_p = p->next; ! for (j=0; j<id_count; j++) { free(p->storage[j]); } free(p->storage); --- 157,166 ---- int j; next_p = p->next; ! for (j=0; j<p->count; j++) { ! if (resource_types_table && resource_types_table[j].dtor) { ! resource_types_table[j].dtor(p->storage[j], &p->storage); <-- cause the problem!! ! } free(p->storage[j]); } free(p->storage); sapi/cgi/cgi_main.c: line 1787 - 1792 ------------------------------------------------------------------ php_module_shutdown(TSRMLS_C); HLOG_LOG( HLOG_NOTICE, "php_module_shutdown" ); #ifdef ZTS tsrm_shutdown(); #endif ------------------------------------------------------------------ show callstack. 1. php_module_shutdown 2. zend_shutdown 3. zend_shutdown_extensions 4. zend_llist_destroy 5. zend_extension_dtor 6. DL_UNLOAD <-- module(by zend_extension_ts) is unload here. 7. tsrm_shutdown <-- dtor can't be called. -- Edit bug report at http://bugs.php.net/?id=27772&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27772&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27772&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27772&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27772&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27772&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27772&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27772&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27772&r=support Expected behavior: http://bugs.php.net/fix.php?id=27772&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27772&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27772&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27772&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27772&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27772&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27772&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27772&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27772&r=float