Re: 9.4.1 segfault while creating hash index on temporary table

From: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Artem Ignatyev <cryo28(at)gmail(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: 9.4.1 segfault while creating hash index on temporary table
Date: 2015-05-13 07:18:01
Message-ID: 5552FAA9.3050303@iki.fi
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On 05/13/2015 08:09 AM, Tom Lane wrote:
> Artem Ignatyev <cryo28(at)gmail(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Mark Lilback 2015-05-13 20:09:47 long delay with binary data on ubuntu and 9.4.1
Previous Message Tom Lane 2015-05-13 05:09:02 Re: 9.4.1 segfault while creating hash index on temporary table