On Thu, 22 Nov 2001, Edin Kadribasic wrote: > Test case: > > $key=0x5432; > $id=shm_attach($key, 4096); > shm_remove($key);
Your script is buggy, this should be the script: $key = 0x5432; $id = shm_attach ($key, 4096); shm_remove ($id); // Not $key However, this should not crash. The fix is easy though. Already on it. Derick > > Backtrace: > > Program received signal SIGSEGV, Segmentation fault. > 0x80ac569 in zif_shm_remove (ht=1, return_value=0x814f164, this_ptr=0x0, > return_value_used=0) at sysvshm.c:211 > 211 if(shmctl(shm_list_ptr->id,IPC_RMID,NULL)<0) { > (gdb) bt > #0 0x80ac569 in zif_shm_remove (ht=1, return_value=0x814f164, this_ptr=0x0, > return_value_used=0) at sysvshm.c:211 > #1 0x80ea2d1 in execute (op_array=0x814f234) at ./zend_execute.c:1590 > #2 0x80c6fdc in zend_execute_scripts (type=8, retval=0x0, file_count=3) at > zend.c:814 > #3 0x805b42e in php_execute_script (primary_file=0x7ffff910) at main.c:1309 > #4 0x8058eea in main (argc=3, argv=0x7ffff984) at cgi_main.c:738 > > Configure: > > ./configure --without-pear --disable-short-tags --without-pcre-regex --disa > ble-posix --disable-session --disable-xml --disable-wddx --without-mysql --e > nable-sysvshm --enable-debug > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]