Re: BUG #17126: Server crashes on dropping user while enumerating owned objects that are droppped concurrently - Mailing list pgsql-bugs

From Alexander Lakhin
Subject Re: BUG #17126: Server crashes on dropping user while enumerating owned objects that are droppped concurrently
Date
Msg-id 07fc0336-1b28-8269-d7cc-c34d50c650ce@gmail.com
Whole thread Raw
In response to Re: BUG #17126: Server crashes on dropping user while enumerating owned objects that are droppped concurrently  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Responses Re: BUG #17126: Server crashes on dropping user while enumerating owned objects that are droppped concurrently  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
List pgsql-bugs
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



pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: Unexpected behavior from using default config value
Next
From: Peter Eisentraut
Date:
Subject: Re: BUG #17158: Distinct ROW fails with Postgres 14