Re: Dereference before NULL check (src/backend/storage/ipc/latch.c)

Thomas Munro <thomas.munro@gmail.com>

From: Thomas Munro <thomas.munro@gmail.com>
To: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Cc: Ranier Vilela <ranier.vf@gmail.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2020-11-03T07:44:23Z
Lists: pgsql-hackers
On Tue, Nov 3, 2020 at 12:50 AM Kyotaro Horiguchi
<horikyota.ntt@gmail.com> wrote:
> With the fix patch, it changes to:
>
> [16632] LOG:  FALSE LATCH: 0000000000000000

Nice repo.  But is it OK to not reset the Win32 event in this case?
Does it still work correctly if you wait on the latch after that
happened, and perhaps after the PG latch is reset?



Commits

  1. Fix WaitLatch(NULL) on Windows.