![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
FATAL: semctl(167894456, 4, SETVAL, 0) failed: A non-blocking socket operation could not be completed immediately. |
#3
| |||
| |||
|
|
-----Original Message----- From: pgsql-bugs-owner (AT) postgresql (DOT) org [mailto gsql-bugs-owner (AT) postgresql (DOT) org] On Behalf Of Qingqing Zhou Sent: Wednesday, April 05, 2006 6:33 AM To: pgsql-bugs (AT) postgresql (DOT) org Subject: Re: [BUGS] BUG #2371: database crashes with semctl failed error ""Brock Peabody"" <brock.peabody (AT) npcinternational (DOT) com> wrote FATAL: semctl(167894456, 4, SETVAL, 0) failed: A non-blocking socket operation could not be completed immediately. Can you reliablly reproduce the problem? If so, we may come up with a testing patch to it. We encounter similar problems before but it is hard to reproduce. Magnus? As Bruce suggested, we can plug in a check-EINTR-loop here in semctl(): /* Quickly lock/unlock the semaphore (if we can) */ if (semop(semId, &sops, 1) < 0) return -1; Regards, Qingqing ---------------------------(end of broadcast)--------------------------- TIP 2: Don't 'kill -9' the postmaster |
#4
| |||
| |||
|
|
-----Original Message----- From: pgsql-bugs-owner (AT) postgresql (DOT) org [mailto gsql-bugs-owner (AT) postgresql (DOT) org] On Behalf Of Qingqing Zhou Sent: Wednesday, April 05, 2006 6:33 AM To: pgsql-bugs (AT) postgresql (DOT) org Subject: Re: [BUGS] BUG #2371: database crashes with semctl failed error Can you reliablly reproduce the problem? |
. I'm trying to figure out a way for someone to repeat it|
If so, we may come up with a testing patch to it. We encounter similar problems before but it is hard to reproduce. |
#5
| |||
| |||
|
|
Can you reliablly reproduce the problem? I can here . I'm trying to figure out a way for someone to repeat itoutside my environment but I'm afraid it's got something to do with timing. I have 50 threads that are collecting data. If I give each one its own connection to the database the problem happens quickly. If they all share one connection the problem does not happen. |
#6
| |||
| |||
|
|
On Behalf Of Tom Lane Perhaps you could whittle down your app into a testbed that just sends dummy data with about the same timing as the real app? |
#7
| |||
| |||
|
|
I'm afraid we're in the same category as everyone else with no good way to reproduce the bug, but is there anything else we could do if this happens again? |
![]() |
| Thread Tools | |
| Display Modes | |
| |