pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexander Lakhin <exclusion@gmail.com>
To: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #17126: Server crashes on dropping user while enumerating owned objects that are droppped concurrently
Date: Thu, 2 Sep 2021 07:00:01 +0300
Message-ID: <07fc0336-1b28-8269-d7cc-c34d50c650ce@gmail.com> (raw)
In-Reply-To: <202107282001.rfd75lew2c33@alvherre.pgsql>
References: <202107282001.rfd75lew2c33@alvherre.pgsql>

Hello Alvaro,
28.07.2021 23:01, Alvaro Herrera wrote:
> On 2021-Jul-28, PG Bug reporting form wrote:
>
>> Dropping a user that owns a number of procedures, while some of them are
>> being dropped, can cause the server crash:
>> There's many places that deal correctly with the possibility that
>> getObjectDescription() would return NULL, but I found two places that
>> don't.
I've found another one in dependency.c:

        else if (behavior == DROP_RESTRICT)
        {
            char       *otherDesc = getObjectDescription(&extra->dependee,
                                                         false);
...
            pfree(otherDesc);
I couldn't trigger a failure at this place yet, but maybe it's worth to
fix here too.

Best regards,
Alexander





view thread (4+ messages)  latest in thread

Message-ID: <07fc0336-1b28-8269-d7cc-c34d50c650ce@gmail.com>
Permalink:  ../07fc0336-1b28-8269-d7cc-c34d50c650ce@gmail.com/
Also on:    postgresql.org/message-id/07fc0336-1b28-8269-d7cc-c34d50c650ce@gmail.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: exclusion@gmail.com, alvherre@alvh.no-ip.org, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #17126: Server crashes on dropping user while enumerating owned objects that are droppped concurrently
  In-Reply-To: <07fc0336-1b28-8269-d7cc-c34d50c650ce@gmail.com>

* 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