From: Heikki Linnakangas <hlinnaka@iki.fi>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: Artem Ignatyev <cryo28@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: 9.4.1 segfault while creating hash index on temporary table
Date: Wed, 13 May 2015 10:18:01 +0300
Message-ID: <5552FAA9.3050303@iki.fi> (raw)
In-Reply-To: <9927.1431493742@sss.pgh.pa.us>
References: <CABHFwMgYWrMyCFwX0vuG2dmWoQJiRrenxtdOLVEqGvHSVQ7G0g@mail.gmail.com>
<9927.1431493742@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On 05/13/2015 08:09 AM, Tom Lane wrote:
> Artem Ignatyev <cryo28@gmail.com> writes:
>> I am seeing this bug on my CentOS 6.6 PostgreSQL 9.4.1 db server
>> (installed from rpms of yum.postgresql.org), as well as on postgresql
>> 9.4.1 from Ubuntu 15.04 repository on my personal laptop.
>
> It's crashing because it's trying to acquire the content_lock on a
> local buffer, which of course doesn't have one. This appears to have
> been broken in 8fc23a9e. Oddly, HEAD does not have the problem because
> it looks like
>
> if ((mode == RBM_ZERO_AND_LOCK || mode == RBM_ZERO_AND_CLEANUP_LOCK) &&
> !isLocalBuf)
> {
> LWLockAcquire(bufHdr->content_lock, LW_EXCLUSIVE);
> }
>
> but the back branches are missing the isLocalBuf bit.
Odd indeed. I must've added that at the last minute to the
master-version, but forgot the other branches.
Fixed now, thanks for the report and analysis.
- Heikki
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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-bugs@postgresql.org
Cc: hlinnaka@iki.fi, tgl@sss.pgh.pa.us, cryo28@gmail.com
Subject: Re: 9.4.1 segfault while creating hash index on temporary table
In-Reply-To: <5552FAA9.3050303@iki.fi>
References: <CABHFwMgYWrMyCFwX0vuG2dmWoQJiRrenxtdOLVEqGvHSVQ7G0g@mail.gmail.com> <9927.1431493742@sss.pgh.pa.us> <5552FAA9.3050303@iki.fi>
* 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