Crash in virtual file descriptor FDDEBUG code
Greg Nancarrow <gregn4422@gmail.com>
From: Greg Nancarrow <gregn4422@gmail.com>
To: PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2020-11-17T00:11:22Z
Lists: pgsql-hackers
Attachments
- v1-0001-Fix-crash-in-virtual-file-descriptor-FDDEBUG-code.patch (application/octet-stream) patch v1-0001
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
Commits
-
Don't Insert() a VFD entry until it's fully built.
- 2bd49b493a52 14.0 landed
- d726e44fb9c0 9.6.21 landed
- d02dbbadb7cc 9.5.25 landed
- 95d39547d839 13.2 landed
- 6b8235d03565 11.11 landed
- 4097a79069be 12.6 landed
- 214f22823f20 10.16 landed