php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17172 highload system got error:
Submitted: 2002-05-13 02:51 UTC Modified: 2002-09-11 11:05 UTC
Votes:8
Avg. Score:4.8 ± 0.7
Reproduced:7 of 7 (100.0%)
Same Version:2 (28.6%)
Same OS:4 (57.1%)
From: sunjh at 163 dot net Assigned:
Status: No Feedback Package: Semaphore related
PHP Version: 4.1.2 OS: redhat
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: sunjh at 163 dot net
New email:
PHP Version: OS:

 

 [2002-05-13 02:51 UTC] sunjh at 163 dot net
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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-13 03:04 UTC] sunjh at 163 dot net
please run this scripts 10 clone at BG.
 [2002-06-04 04:21 UTC] mfischer@php.net
Please try CVS HEAD, there has been a bit of work on this lately.
 [2002-09-11 11:05 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 22:01:29 2024 UTC