From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: pgsql-hackers@postgreSQL.org
Subject: Re: Our "fallback" atomics implementation doesn't actually work
Date: Wed, 05 Oct 2016 14:17:45 -0400
Message-ID: <22366.1475691465@sss.pgh.pa.us> (raw)
In-Reply-To: <20161005180510.qopm4lbm7d7zzllt@alap3.anarazel.de>
References: <14947.1475690465@sss.pgh.pa.us>
<20161005180510.qopm4lbm7d7zzllt@alap3.anarazel.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
Andres Freund <andres@anarazel.de> writes:
> On 2016-10-05 14:01:05 -0400, Tom Lane wrote:
>> I think what is happening is that there are circular assumptions that end
>> up trying to implement a spinlock in terms of a spinlock, or otherwise
>> somehow recursively use the process's semaphore. It's a bit hard to tell
>> though because the atomics code is such an underdocumented rat's nest of
>> #ifdefs.
> I don't think that should be the case, but I'll look into it. How long
> did it take for you to reproduce the issue?
It hangs up within 10 or 20 seconds for me. I didn't try hard to get a
census of where, but at least some of the callers are trying to acquire
buffer partition locks.
regards, tom lane
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, andres@anarazel.de
Subject: Re: Our "fallback" atomics implementation doesn't actually work
In-Reply-To: <22366.1475691465@sss.pgh.pa.us>
References: <14947.1475690465@sss.pgh.pa.us> <20161005180510.qopm4lbm7d7zzllt@alap3.anarazel.de> <22366.1475691465@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox