Possible problem with shm_mq spin lock

From: Haribabu Kommi <kommi(dot)haribabu(at)gmail(dot)com>
To: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Possible problem with shm_mq spin lock
Date: 2014-10-25 21:52:42
Message-ID: CAJrrPGfc0Rd7_UuKYFfaG2wkfWB_KJ11MytTN3-O9GOCCWimXw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Steve Singer 2014-10-25 22:09:36 "snapshot too large" error when initializing logical replication (9.4)
Previous Message Thom Brown 2014-10-25 21:10:28 Re: [PATCH] Support for Array ELEMENT Foreign Keys