PostgreSQL Bugs

Collected from the PG bugs email list.

Bug ID16348
PG Version12.2
OSArch Linux
Opened2020-04-07 13:36:20+00
Reported byHugh Wang

Body of first available message related to this bug follows.

The following bug has been logged on the website:

Bug reference:      16348
Logged by:          Hugh Wang
Email address:      (redacted)
PostgreSQL version: 12.2
Operating system:   Arch Linux

Memory leaked by gui-file.l:ProcessConfig accumulates across repeated SIGHUP

When parsing config file, gui-file.l:ProcessConfig sets up memory context.
It invokes guc-file.l:ProcessConfigFileInternal, which is expected to leak
memory. It's okay because the leaked memory will be freed when cleaning up
the context. Next, guc-file.l:ProcessConfigFileInternal associates each
config item with filename by calling guc.c:set_config_option, which calls
guc.c:guc_strdup. However, guc.c:guc_strdup is not aware of the memory
context, and invokes directly.


2020-04-07 13:36:20+00PG Bug reporting formBUG #16348: Memory leak when parsing config
2020-04-07 15:22:28+00Tom LaneRe: BUG #16348: Memory leak when parsing config
2020-04-08 06:51:14+00Hugh WangRe: BUG #16348: Memory leak when parsing config
2020-04-08 19:25:49+00Tom LaneRe: BUG #16348: Memory leak when parsing config