Bug #16144 Updated: sem_remove() crashes in php 4.1.1 standalone
| From: | sander@php.net | Date: | Tue, 19 Mar 2002 09:22:49 +0000 |
| Subject: | Bug #16144 Updated: sem_remove() crashes in php 4.1.1 standalone | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-2846@lists.php.net to get a copy of this message | ||
ID: 16144
Updated by: sander@php.net
Reported By: frerk@meychern.de
-Status: Open
+Status: Feedback
Bug Type: Reproducible crash
Operating System: Linux 2.4.17 mdk
PHP Version: 4.1.1
New Comment:
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".
Previous Comments:
------------------------------------------------------------------------
[2002-03-18 09:48:01] frerk@meychern.de
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