From: [EMAIL PROTECTED] Operating system: Linux 2.2.x (Debian) PHP version: 4.0CVS-2002-04-24 PHP Bug Type: Semaphore related Bug description: sem_remove(...) segfaults
sem_remove causes a segfault with the following script: ***** <?php // create the semaphore: $sem = sem_get($parentPID); // delete the semaphore: sem_remove($sem); ?> ***** Here's my terminal log: sean@adnagaporp:~/dev/sock$ php4-dev -v 4.3.0-dev sean@adnagaporp:~/dev/sock$ php4-dev -q sem.php [Wed Apr 24 14:21:56 2002] Script: 'sem.php' --------------------------------------- /home/sean/cvs/php/php4/Zend/zend_execute.h(62) : Block 0x08231DF0 status: Beginning: Overrun (magic=0x00000000, expected=0x7312F8DC) End: Unknown --------------------------------------- Segmentation fault ***** And my php configuration: System Linux adnagaporp 2.2.19pre17 #1 Tue Mar 13 22:37:59 EST 2001 i686 Build Date Apr 24 2002 14:12:20 Configure Command './configure' '--enable-sockets' '--enable-pcntl' '--enable-shmop' '--enable-sysvsem' '--enable-debug' Server API CGI Virtual Directory Support disabled Configuration File (php.ini) Path /usr/local/lib Debug Build yes Thread Safety disabled PHP Streams enabled ***** S -- Edit bug report at http://bugs.php.net/?id=16805&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=16805&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=16805&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=16805&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=16805&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=16805&r=support Expected behavior: http://bugs.php.net/fix.php?id=16805&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=16805&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=16805&r=submittedtwice