BUG #16348: Memory leak when parsing config

Поиск
Список
Период
Сортировка
От PG Bug reporting form
Тема BUG #16348: Memory leak when parsing config
Дата
Msg-id 16348-018c10b6fd16ebcc@postgresql.org
обсуждение исходный текст
Ответы Re: BUG #16348: Memory leak when parsing config  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
The following bug has been logged on the website:

Bug reference:      16348
Logged by:          Hugh Wang
Email address:      hghwng@gmail.com
PostgreSQL version: 12.2
Operating system:   Arch Linux
Description:

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

ANALYSIS:
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  libc.so:strdup directly.


В списке pgsql-bugs по дате отправления:

Предыдущее
От: PG Bug reporting form
Дата:
Сообщение: BUG #16347: pgbadger is missing in the repo
Следующее
От: Masahiko Sawada
Дата:
Сообщение: Re: [bug] Wrong bool value parameter