Crash in virtual file descriptor FDDEBUG code

From: Greg Nancarrow <gregn4422(at)gmail(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Crash in virtual file descriptor FDDEBUG code
Date: 2020-11-17 00:11:22
Message-ID: CAJcOf-cUDgm9qYtC_B6XrC6MktMPNRby2p61EtSGZKnfotMArw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Hackers,

While investigating a possible file-descriptor issue, I enabled the
FDDEBUG code in src/backend/storage/file/fd.c, only to find that it
resulted in a crash as soon as it was invoked.
It turns out the crash was in some logging code that was being passed
a NULL fileName.
I've attached a small patch that corrects the issue.

Regards,
Greg Nancarrow
Fujitsu Australia

Attachment Content-Type Size
v1-0001-Fix-crash-in-virtual-file-descriptor-FDDEBUG-code.patch application/octet-stream 1.3 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2020-11-17 00:23:41 Re: remove spurious CREATE INDEX CONCURRENTLY wait
Previous Message Alvaro Herrera 2020-11-17 00:08:32 Re: remove spurious CREATE INDEX CONCURRENTLY wait