ID: 16144 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Feedback +Status: Open Bug Type: Reproducible crash Operating System: Linux 2.4.17 mdk PHP Version: 4.1.1 New Comment:
gdb bt is: #0 0x40074c5d in zend_hash_del_key_or_index () from /usr/lib/libphp_common-4.0.6.so.0 #1 0x40071856 in module_destructor () from /usr/lib/libphp_common-4.0.6.so.0 #2 0x40075848 in zend_hash_destroy () from /usr/lib/libphp_common-4.0.6.so.0 #3 0x4006fe86 in zend_shutdown () from /usr/lib/libphp_common-4.0.6.so.0 #4 0x4007cc1b in php_module_shutdown () from /usr/lib/libphp_common-4.0.6.so.0 #5 0x0804a4d7 in main () #6 0x40220370 in __libc_start_main () from /lib/libc.so.6 Is libphp_common-4.0.6.so.o the right lib for PHP 4.1.1? This was in rpm php-common-4.1.1-3mdk. I guess it could be a mistake of deleting a key where an index is excepted or the other way around (zend_hash_del_key_or_index). Frerk Previous Comments: ------------------------------------------------------------------------ [2002-03-19 04:22:48] [EMAIL PROTECTED] To properly diagnose this bug, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php Once you have generated a backtrace, please submit it to this bug report and change the status back to "Open". ------------------------------------------------------------------------ [2002-03-18 09:48:01] [EMAIL PROTECTED] The Bug #10044 in shm_remove seems to have happened in sem_remove too. An automatic clean up after a request in php 4.1.1 of all acquired semphores does succeed. An explicit clean up with sem_remove() in php as a standalone script fails with a core dump. <?php // semaphore remove bug in standalone php only $channel_id=crc32("This is a test"); $sem_id = sem_get($channel_id,1,0600); print "$sem_id got<br>\n"; sem_acquire($sem_id); print "$sem_id acquired<br>\n"; sem_release($sem_id); print "$sem_id released<br>\n"; sem_remove($sem_id); print "$sem_id removed<br>\n"; //request cleanup dumps core if semaphore is removed ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=16144&edit=1
