From: screen at brainkrash dot com
Operating system: Win32
PHP version: 5CVS-2006-01-13 (snap)
PHP Bug Type: Scripting Engine problem
Bug description: Unknown persistent list entry type in module shutdown
Description:
------------
A problem on win32 in plist_entry_destructor when running sockets as a
shared library (php_sockets.dll). Tested on all php versions from 4.4.1
forward to CVS snapshot version php5.1-win32-200601111130.
Reproduce code:
---------------
start apache
execute:
<?php
$sock = pfsockopen('127.0.0.1', 3306, $errno, $errstr);
?>
stop apache
Expected result:
----------------
Normal clean apache shutdown.
Actual result:
--------------
First-chance exception in Apache.exe (NTDLL.DLL): 0xC0000005: Access
Violation.
NTDLL! 7c9105f8()
_emalloc(unsigned int 7507988) line 182 + 29 bytes
_erealloc(void * 0x007e5dc8, unsigned int 0, int 79) line 339 + 10 bytes
xbuf_format_converter(smart_str * 0x0006fdac, const char * 0x009a0458
`string', char * 0x0006fe44) line 212 + 69 bytes
vspprintf(char * * 0x0006fde4, unsigned int 0, const char * 0x009a0458
`string', char * 0x0006fe44) line 727
php_error_cb(int 7482400, const char * 0x00000002, const unsigned int
10033100, const char * 0x00000000, char * 0x009a0458 `string') line 659
zend_error(int 8159293, const char * 0x00000002) line 950 + 23 bytes
plist_entry_destructor(void * 0x0102de68) line 216 + 16 bytes
zend_hash_apply_deleter(_hashtable * 0x007bad73, bucket * 0x01009e28) line
574 + 6 bytes
zend_hash_graceful_reverse_destroy(_hashtable * 0x01009e28) line 641
zend_destroy_rsrc_list(_hashtable * 0x01009e28, void * * * 0x00fcb288)
line 239 + 10 bytes
executor_globals_dtor(_zend_executor_globals * 0x01009c58, void * * *
0x00fcb288) line 506 + 7 bytes
tsrm_shutdown() line 180 + 4 bytes
php_apache_server_shutdown(void * 0x00000000) line 335
run_cleanups(cleanup_t * * 0x0026ad70) line 1953
apr_pool_destroy(apr_pool_t * 0x0040183d) line 734
destroy_and_exit_process(process_rec * 0x00268de8, int 0) line 210
main(int 4201858, const char * const * 0x00000005) line 625 + 8 bytes
APACHE! mainCRTStartup + 227 bytes
KERNEL32! 7c816d4f()
--
Edit bug report at http://bugs.php.net/?id=35988&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=35988&r=trysnapshot44
Try a CVS snapshot (PHP 5.1):
http://bugs.php.net/fix.php?id=35988&r=trysnapshot51
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=35988&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=35988&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=35988&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=35988&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=35988&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=35988&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=35988&r=support
Expected behavior: http://bugs.php.net/fix.php?id=35988&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=35988&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=35988&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=35988&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35988&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=35988&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=35988&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=35988&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=35988&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=35988&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=35988&r=mysqlcfg