|  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
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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
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>";
      if ( !sem_acquire( $semid ) ) {
         echo "mem.mem: Can't acquire semaphore<BR>";
      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


Add a Patch

Pull Requests

Add a Pull Request


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]
Please try CVS HEAD, there has been a bit of work on this lately.
 [2002-09-11 11:05 UTC]
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-2022 The PHP Group
All rights reserved.
Last updated: Sat Jan 22 16:03:35 2022 UTC