pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Artem Ignatyev <cryo28@gmail.com>
Cc: pgsql-bugs@postgresql.org
Cc: Heikki Linnakangas <hlinnaka@iki.fi>
Subject: Re: 9.4.1 segfault while creating hash index on temporary table
Date: Wed, 13 May 2015 01:09:02 -0400
Message-ID: <9927.1431493742@sss.pgh.pa.us> (raw)
In-Reply-To: <CABHFwMgYWrMyCFwX0vuG2dmWoQJiRrenxtdOLVEqGvHSVQ7G0g@mail.gmail.com>
References: <CABHFwMgYWrMyCFwX0vuG2dmWoQJiRrenxtdOLVEqGvHSVQ7G0g@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (3+ messages)  latest in thread

Message-ID: <9927.1431493742@sss.pgh.pa.us>
Permalink:  ../9927.1431493742@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/9927.1431493742@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, cryo28@gmail.com, hlinnaka@iki.fi
  Subject: Re: 9.4.1 segfault while creating hash index on temporary table
  In-Reply-To: <9927.1431493742@sss.pgh.pa.us>
  References: <CABHFwMgYWrMyCFwX0vuG2dmWoQJiRrenxtdOLVEqGvHSVQ7G0g@mail.gmail.com> <9927.1431493742@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