pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix crash when reporting CREATE INDEX progress
Date: Wed, 16 Oct 2019 12:53:22 +0000
Message-ID: <E1iKinq-0004Eb-L1@gemulon.postgresql.org> (raw)

Fix crash when reporting CREATE INDEX progress

A race condition can make us try to dereference a NULL pointer to the
PGPROC struct of a process that's already finished.  That results in
crashes during REINDEX CONCURRENTLY and CREATE INDEX CONCURRENTLY.

This was introduced in ab0dfc961b6a, so backpatch to pg12.

Reported by: Justin Pryzby
Reviewed-by: Michaƫl Paquier
Discussion: https://postgr.es/m/20191012004446.GT10470@telsasoft.com

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/1cd5bc3ccf92a511b087629b2c914dffa9151fce

Modified Files
--------------
src/backend/commands/indexcmds.c |  6 ++++--
src/backend/storage/lmgr/lmgr.c  | 10 ++++------
2 files changed, 8 insertions(+), 8 deletions(-)



view thread (2+ messages)

Message-ID: <E1iKinq-0004Eb-L1@gemulon.postgresql.org>
Permalink:  ../E1iKinq-0004Eb-L1@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1iKinq-0004Eb-L1@gemulon.postgresql.org

 · 

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-committers@postgresql.org
  Cc: alvherre@alvh.no-ip.org
  Subject: Re: pgsql: Fix crash when reporting CREATE INDEX progress
  In-Reply-To: <E1iKinq-0004Eb-L1@gemulon.postgresql.org>
  References: <E1iKinq-0004Eb-L1@gemulon.postgresql.org>

* 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