Possible problem with shm_mq spin lock - Mailing list pgsql-hackers

From Haribabu Kommi
Subject Possible problem with shm_mq spin lock
Date
Msg-id CAJrrPGfc0Rd7_UuKYFfaG2wkfWB_KJ11MytTN3-O9GOCCWimXw@mail.gmail.com
Whole thread Raw
Responses Re: Possible problem with shm_mq spin lock
List pgsql-hackers
Hi Hackers,

I am thinking of a possible problem with shm_mq structure spin lock.
This is used for protecting the shm_mq structure.

During the processing of any code under the spin lock, if the process
receives SIGQUIT signal then it is leading to a dead lock situation.

SIGQUIT->proc_exit->shm_mq_detach->try to acquire spin lock. The spin
lock is already took by the process.

It is very dificult to reproduce the problem as because the code under
the lock is very minimal.
Please let me know if I missed anything.

Regards,
Hari Babu
Fujitsu Australia



pgsql-hackers by date:

Previous
From: Thom Brown
Date:
Subject: Re: [PATCH] Support for Array ELEMENT Foreign Keys
Next
From: Steve Singer
Date:
Subject: "snapshot too large" error when initializing logical replication (9.4)