ID:               17172
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Open
 Bug Type:         Semaphore related
 Operating System: redhat
 PHP Version:      4.1.2
 New Comment:

please run this scripts 10 clone at BG.


Previous Comments:
------------------------------------------------------------------------

[2002-05-13 02:51:57] [EMAIL PROTECTED]

highload system:
when I run this script:
for($i = 0; $i < 20000; $i++){
      $semid = sem_get (  0xf01, 1, 0666 );
          
      if ( !$semid ) {
         echo "mem.mem: Can't get semaphore<BR>";
         return;
      }
      if ( !sem_acquire( $semid ) ) {
         echo "mem.mem: Can't acquire semaphore<BR>";
         return;
      }
      if( !sem_release( $semid ) ) {
         echo "mem: Can't release semaphore";
      }
}

shell is return:

semop() failed acquiring SYSVSEM_SETVAL for key 0xf01: Numerical result
out of range



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=17172&edit=1

Reply via email to