Re: How to handle waitingForLock in LockWaitCancel() - Mailing list pgsql-hackers

From Tom Lane
Subject Re: How to handle waitingForLock in LockWaitCancel()
Date
Msg-id 3607.983845517@sss.pgh.pa.us
Whole thread Raw
In response to Re: How to handle waitingForLock in LockWaitCancel()  (Hiroshi Inoue <Inoue@tpf.co.jp>)
List pgsql-hackers
Hiroshi Inoue <Inoue@tpf.co.jp> writes:
>> I suspect you will find that these crashes occur during the window just
>> after

> Sorry what does 'just after' mean ?
> Isn't it during the semop() ?

>> the semop() call in IpcSemaphoreLock() --- see the comment

If an interrupt during the semop led to a crash, it would be easy to
reproduce.  I suspect that the crash condition arises only when the
interrupt occurs in a narrow time window ... such as the few
instructions just before or just after the semop call.  It's just a
hunch though.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Lamar Owen
Date:
Subject: Re: How to shoot yourself in the foot: kill -9 postmaster
Next
From: Tom Lane
Date:
Subject: Re: How to shoot yourself in the foot: kill -9 postmaster