|  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
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:
Solve the problem:
12 + 34 = ?
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>";
      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: Tue Jan 18 10:03:20 2022 UTC