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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
22 + 44 = ?
Subscribe to this entry?

 
 [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 05:01:33 2024 UTC