#17172 [Com]: highload system got error:

From: Date: Wed, 30 Jul 2003 14:09:49 +0000
Subject: #17172 [Com]: highload system got error:
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-45057@lists.php.net to get a copy of this message
ID: 17172 Comment by: matt at sbi dot co dot nz Reported By: sunjh at 163 dot net Status: No Feedback Bug Type: Semaphore related Operating System: redhat PHP Version: 4.1.2 New Comment: I'm getting semaphore lockups in live code under heavy load, and if I run the example code above and push the loop to 100,000 I get the same error using 4.2.3 on a debian stable/unstable mix. Any word on whether this is fixed in 4.3? Previous Comments: ------------------------------------------------------------------------ [2003-04-25 14:31:19] jleelim at hotmail dot com I got the same error message on Redhat 9.0 on PHP 4.2.2. The problem only happens if I increase the loop count to greater than 30,000. ------------------------------------------------------------------------ [2002-09-11 11:05:48] 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. ------------------------------------------------------------------------ [2002-06-04 04:21:32] mfischer@php.net Please try CVS HEAD, there has been a bit of work on this lately. ------------------------------------------------------------------------ [2002-05-13 03:04:18] sunjh at 163 dot net please run this scripts 10 clone at BG. ------------------------------------------------------------------------ [2002-05-13 02:51:57] 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17172&edit=1

« previous php.bugs (#45057) next »