Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ubIN8-00GHdH-Lz for pgsql-bugs@arkaria.postgresql.org; Mon, 14 Jul 2025 12:33:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1ubIN6-007EvB-AO for pgsql-bugs@arkaria.postgresql.org; Mon, 14 Jul 2025 12:33:28 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ubIN5-007Ev3-Ox for pgsql-bugs@lists.postgresql.org; Mon, 14 Jul 2025 12:33:28 +0000 Received: from mail.postgrespro.ru ([93.174.132.70]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1ubIN3-007bGM-0M for pgsql-bugs@lists.postgresql.org; Mon, 14 Jul 2025 12:33:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mx2023; t=1752496403; bh=GnjsN35wUFgojYGHe6Zh9MLpD6VkNqQm6ipbKYyKY+0=; h=Message-ID:Date:User-Agent:Subject:To:References:From:In-Reply-To: From; b=aex3W9kU3UGxOVLPgZMdg8h1rzuh1fqZ8N2A0K77PcFDKFzJE+2+L/xKC3XKVCC2R eJZxCrBLB0vO+7vUEzGAarhUSKmcknQY3PMBZ26XFlyIXBuOUM9h/YKTuIxxRGrzA3 xoKxmk71IBfjJCDBdthzqWA2Um+ibyTNIRDP0EPBdrgxhRqmtMBUVu43G5c5zWAxI+ AwDKAMGh7wXH8mhswKvf7ZIMAjgnSzAGZ50bE/2rxxNwWa8DetIgM3hSCXC/eNFjU3 Fy/N8WNfQh5PhMyKLtIXkDcEm0t4cytPJGwPS4qxDxkUKI5n8BvGe+4Sa7DQuJFxt6 ZHNjCTHu3m2Gw== Received: from [172.30.48.58] (unknown [93.174.131.138]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: d.kovalenko@postgrespro.ru) by mail.postgrespro.ru (Postfix/465) with ESMTPSA id 106436026A for ; Mon, 14 Jul 2025 15:33:23 +0300 (MSK) Message-ID: Date: Mon, 14 Jul 2025 15:33:23 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: BUG #18983: Problems with Postgres "make check" under ASAN To: pgsql-bugs@lists.postgresql.org References: <18983-92ece795f4630781@postgresql.org> Content-Language: ru From: Dmitry Kovalenko In-Reply-To: <18983-92ece795f4630781@postgresql.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-KSMG-AntiPhishing: NotDetected, bases: 2025/07/14 11:27:00 X-KSMG-AntiSpam-Interceptor-Info: not scanned X-KSMG-AntiSpam-Status: not scanned, disabled by settings X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 2.1.0.7854, bases: 2025/07/14 10:31:00 #27639943 X-KSMG-AntiVirus-Status: NotDetected, skipped X-KSMG-LinksScanning: not scanned, disabled by settings X-KSMG-Message-Action: skipped X-KSMG-Rule-ID: 1 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello, This is a flat list of problems (memory leaks): --------------------------- (1.1) backend.main -> save_ps_display_args Leaks of malloc. https://github.com/postgres/postgres/blob/ed26c4e25a444fcdd8a9120d4fe4b5a08d2b262b/src/backend/utils/misc/ps_status.c#L192 Direct leak of 552 byte(s) in 1 object(s) allocated from:     #0 0x5a6fd925b76f in __interceptor_malloc (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTas ks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/postgres+0x344876f) (BuildId: 11244cf09fb880f4c1e1ed11ac039b3246818fa5)     #1 0x5a6fdb46df3c in save_ps_display_args /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/backend/utils/misc/ps_status.c:192     #2 0x5a6fda17850e in main /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/backend/main/main.c:104     #3 0x7a120762a1c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58     #4 0x7a120762a28a in __libc_start_main_impl ../csu/libc-start.c:360     #5 0x5a6fd91a3694 in _start (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGR ES/2025_06_17__001--mem_leaks/n002/work01/install/bin/postgres+0x3390694) (BuildId: 11244cf09fb880f4c1e1ed11ac039b3246818fa5) SUMMARY: AddressSanitizer: 552 byte(s) leaked in 1 allocation(s). --------------------------- (2.1) initdb.setup_schema It does not release memory from escape_quotes. https://github.com/postgres/postgres/blob/ed26c4e25a444fcdd8a9120d4fe4b5a08d2b262b/src/bin/initdb/initdb.c#L1981-L1985 Direct leak of 445 byte(s) in 1 object(s) allocated from:     #0 0x59704d0adeff in __interceptor_malloc (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/initdb+0x135eff) (BuildId: 32be4430a5ca7f8257c0d4648227da61568d3e1d)     #1 0x59704d14c5d4 in escape_single_quotes_ascii /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/port/quotes.c:38     #2 0x59704d10860f in escape_quotes /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/initdb/initdb.c:408   > #3 0x59704d10f66d in setup_schema /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/initdb/initdb.c:1981     #4 0x59704d113586 in initialize_data_directory /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/initdb/initdb.c:3140     #5 0x59704d114f20 in main /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/initdb/initdb.c:3506     #6 0x76e5f822a1c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58     #7 0x76e5f822a28a in __libc_start_main_impl ../csu/libc-start.c:360     #8 0x59704cff5e24 in _start (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/initdb+0x7de24) (BuildId: 32be4430a5ca7f8257c0d4648227da61568d3e1d) --------------------------- (2.2) initdb.setup_config It does not release result of getaddrinfo. https://github.com/postgres/postgres/blob/ed26c4e25a444fcdd8a9120d4fe4b5a08d2b262b/src/bin/initdb/initdb.c#L1497 Direct leak of 76 byte(s) in 1 object(s) allocated from:     #0 0x59704d0adeff in __interceptor_malloc (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/initdb+0x135eff) (BuildId: 32be4430a5ca7f8257c0d4648227da61568d3e1d)     #1 0x76e5f835ae49 in generate_addrinfo nss/getaddrinfo.c:1081     #2 0x76e5f835ae49 in gaih_inet nss/getaddrinfo.c:1199     #3 0x76e5f835ae49 in __GI_getaddrinfo nss/getaddrinfo.c:2391     #4 0x59704d087874 in __interceptor_getaddrinfo.part.0 (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/initdb+0x10f874) (BuildId: 32be4430a5ca7f8257c0d4648227da61568d3e1d)   > #5 0x59704d10d5b6 in setup_config /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/initdb/initdb.c:1497     #6 0x59704d11339d in initialize_data_directory /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/initdb/initdb.c:3094     #7 0x59704d114f20 in main /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/initdb/initdb.c:3506     #8 0x76e5f822a1c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58     #9 0x76e5f822a28a in __libc_start_main_impl ../csu/libc-start.c:360     #10 0x59704cff5e24 in _start (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/initdb+0x7de24) (BuildId: 32be4430a5ca7f8257c0d4648227da61568d3e1d) --------------------------- (2.3) initdb.replace_guc_value It does not release result of escape_quotes. https://github.com/postgres/postgres/blob/ed26c4e25a444fcdd8a9120d4fe4b5a08d2b262b/src/bin/initdb/initdb.c#L540 Direct leak of 37 byte(s) in 1 object(s) allocated from:     #0 0x59704d0adeff in __interceptor_malloc (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/initdb+0x135eff) (BuildId: 32be4430a5ca7f8257c0d4648227da61568d3e1d)     #1 0x59704d14c5d4 in escape_single_quotes_ascii /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/port/quotes.c:38     #2 0x59704d10860f in escape_quotes /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/initdb/initdb.c:408   > #3 0x59704d10927f in replace_guc_value /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/initdb/initdb.c:540     #4 0x59704d10cb8b in setup_config /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/initdb/initdb.c:1345     #5 0x59704d11339d in initialize_data_directory /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/initdb/initdb.c:3094     #6 0x59704d114f20 in main /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/initdb/initdb.c:3506     #7 0x76e5f822a1c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58     #8 0x76e5f822a28a in __libc_start_main_impl ../csu/libc-start.c:360     #9 0x59704cff5e24 in _start (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/initdb+0x7de24) (BuildId: 32be4430a5ca7f8257c0d4648227da61568d3e1d) --------------------------- (2.4) initdb.setup_config It does not release result of pretty_wal_size. https://github.com/postgres/postgres/blob/ed26c4e25a444fcdd8a9120d4fe4b5a08d2b262b/src/bin/initdb/initdb.c#L1364 Direct leak of 14 byte(s) in 1 object(s) allocated from:     #0 0x59704d0adeff in __interceptor_malloc (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/initdb+0x135eff) (BuildId: 32be4430a5ca7f8257c0d4648227da61568d3e1d)     #1 0x59704d145b73 in pg_malloc_internal /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/fe_memutils.c:30     #2 0x59704d145d43 in pg_malloc /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/fe_memutils.c:49     #3 0x59704d10c6a9 in pretty_wal_size /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/initdb/initdb.c:1269 >   #4 0x59704d10cc52 in setup_config /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/initdb/initdb.c:1364     #5 0x59704d11339d in initialize_data_directory /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/initdb/initdb.c:3094     #6 0x59704d114f20 in main /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/initdb/initdb.c:3506     #7 0x76e5f822a1c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58     #8 0x76e5f822a28a in __libc_start_main_impl ../csu/libc-start.c:360     #9 0x59704cff5e24 in _start (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/initdb+0x7de24) (BuildId: 32be4430a5ca7f8257c0d4648227da61568d3e1d) --------------------------- (2.5) initdb.setup_config It does not release result of pretty_wal_size. https://github.com/postgres/postgres/blob/ed26c4e25a444fcdd8a9120d4fe4b5a08d2b262b/src/bin/initdb/initdb.c#L1361 Direct leak of 14 byte(s) in 1 object(s) allocated from:     #0 0x59704d0adeff in __interceptor_malloc (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/initdb+0x135eff) (BuildId: 32be4430a5ca7f8257c0d4648227da61568d3e1d)     #1 0x59704d145b73 in pg_malloc_internal /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/fe_memutils.c:30     #2 0x59704d145d43 in pg_malloc /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/fe_memutils.c:49     #3 0x59704d10c6a9 in pretty_wal_size /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/initdb/initdb.c:1269   > #4 0x59704d10cc23 in setup_config /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/initdb/initdb.c:1361     #5 0x59704d11339d in initialize_data_directory /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/initdb/initdb.c:3094     #6 0x59704d114f20 in main /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/initdb/initdb.c:3506     #7 0x76e5f822a1c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58     #8 0x76e5f822a28a in __libc_start_main_impl ../csu/libc-start.c:360     #9 0x59704cff5e24 in _start (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/initdb+0x7de24) (BuildId: 32be4430a5ca7f8257c0d4648227da61568d3e1d) --------------------------- (2.5) initdb.bootstrap_template1 It does not release result of escape_quotes_bki. https://github.com/postgres/postgres/blob/ed26c4e25a444fcdd8a9120d4fe4b5a08d2b262b/src/bin/initdb/initdb.c#L1596 Direct leak of 10 byte(s) in 1 object(s) allocated from:     #0 0x59704d0adeff in __interceptor_malloc (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/initdb+0x135eff) (BuildId: 32be4430a5ca7f8257c0d4648227da61568d3e1d)     #1 0x59704d145b73 in pg_malloc_internal /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/fe_memutils.c:30     #2 0x59704d145d43 in pg_malloc /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/fe_memutils.c:49     #3 0x59704d108685 in escape_quotes_bki /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/initdb/initdb.c:429   > #4 0x59704d10dccb in bootstrap_template1 /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/initdb/initdb.c:1596     #5 0x59704d1133a2 in initialize_data_directory /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/initdb/initdb.c:3097     #6 0x59704d114f20 in main /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/initdb/initdb.c:3506     #7 0x76e5f822a1c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58     #8 0x76e5f822a28a in __libc_start_main_impl ../csu/libc-start.c:360     #9 0x59704cff5e24 in _start (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/initdb+0x7de24) (BuildId: 32be4430a5ca7f8257c0d4648227da61568d3e1d) --------------------------- (2.6) initdb. bootstrap_template1 It does not release result of escape_quotes_bki. https://github.com/postgres/postgres/blob/ed26c4e25a444fcdd8a9120d4fe4b5a08d2b262b/src/bin/initdb/initdb.c#L1593 Direct leak of 10 byte(s) in 1 object(s) allocated from:     #0 0x59704d0adeff in __interceptor_malloc (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/initdb+0x135eff) (BuildId: 32be4430a5ca7f8257c0d4648227da61568d3e1d)     #1 0x59704d145b73 in pg_malloc_internal /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/fe_memutils.c:30     #2 0x59704d145d43 in pg_malloc /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/fe_memutils.c:49     #3 0x59704d108685 in escape_quotes_bki /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/initdb/initdb.c:429   > #4 0x59704d10dc99 in bootstrap_template1 /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/initdb/initdb.c:1593     #5 0x59704d1133a2 in initialize_data_directory /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/initdb/initdb.c:3097     #6 0x59704d114f20 in main /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/initdb/initdb.c:3506     #7 0x76e5f822a1c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58     #8 0x76e5f822a28a in __libc_start_main_impl ../csu/libc-start.c:360     #9 0x59704cff5e24 in _start (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/initdb+0x7de24) (BuildId: 32be4430a5ca7f8257c0d4648227da61568d3e1d) --------------------------- (2.7) initdb.setup_privileges It does not release result of escape_quotes. https://github.com/postgres/postgres/blob/ed26c4e25a444fcdd8a9120d4fe4b5a08d2b262b/src/bin/initdb/initdb.c#L1806-L1817 Direct leak of 9 byte(s) in 1 object(s) allocated from:     #0 0x59704d0adeff in __interceptor_malloc (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/initdb+0x135eff) (BuildId: 32be4430a5ca7f8257c0d4648227da61568d3e1d)     #1 0x59704d14c5d4 in escape_single_quotes_ascii /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/port/quotes.c:38     #2 0x59704d10860f in escape_quotes /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/initdb/initdb.c:408   > #3 0x59704d10eae3 in setup_privileges /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/initdb/initdb.c:1806     #4 0x59704d113577 in initialize_data_directory /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/initdb/initdb.c:3138     #5 0x59704d114f20 in main /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/initdb/initdb.c:3506     #6 0x76e5f822a1c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58     #7 0x76e5f822a28a in __libc_start_main_impl ../csu/libc-start.c:360     #8 0x59704cff5e24 in _start (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/initdb+0x7de24) (BuildId: 32be4430a5ca7f8257c0d4648227da61568d3e1d) --------------------------- (2.8) initdb.setup_config.set_info_version It does not release result of pg_strdup. https://github.com/postgres/postgres/blob/ed26c4e25a444fcdd8a9120d4fe4b5a08d2b262b/src/bin/initdb/initdb.c#L1952 Direct leak of 8 byte(s) in 1 object(s) allocated from:     #0 0x59704d053d98 in strdup (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/initdb+0xdbd98) (BuildId: 32be4430a5ca7f8257c0d4648227da61568d3e1d)     #1 0x59704d145ea1 in pg_strdup /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/fe_memutils.c:95   > #2 0x59704d10f239 in set_info_version /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/initdb/initdb.c:1952     #3 0x59704d114de3 in main /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/initdb/initdb.c:3486     #4 0x76e5f822a1c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58     #5 0x76e5f822a28a in __libc_start_main_impl ../csu/libc-start.c:360     #6 0x59704cff5e24 in _start (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/initdb+0x7de24) (BuildId: 32be4430a5ca7f8257c0d4648227da61568d3e1d) --------------------------- (2.9) initdb.bootstrap_template1 It does not release result of escape_quotes_bki. https://github.com/postgres/postgres/blob/ed26c4e25a444fcdd8a9120d4fe4b5a08d2b262b/src/bin/initdb/initdb.c#L1587 Direct leak of 7 byte(s) in 1 object(s) allocated from:     #0 0x59704d0adeff in __interceptor_malloc (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/initdb+0x135eff) (BuildId: 32be4430a5ca7f8257c0d4648227da61568d3e1d)     #1 0x59704d145b73 in pg_malloc_internal /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/fe_memutils.c:30     #2 0x59704d145d43 in pg_malloc /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/fe_memutils.c:49     #3 0x59704d108685 in escape_quotes_bki /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/initdb/initdb.c:429   > #4 0x59704d10dc37 in bootstrap_template1 /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/initdb/initdb.c:1587     #5 0x59704d1133a2 in initialize_data_directory /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/initdb/initdb.c:3097     #6 0x59704d114f20 in main /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/initdb/initdb.c:3506     #7 0x76e5f822a1c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58     #8 0x76e5f822a28a in __libc_start_main_impl ../csu/libc-start.c:360     #9 0x59704cff5e24 in _start (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/initdb+0x7de24) (BuildId: 32be4430a5ca7f8257c0d4648227da61568d3e1d) --------------------------- (2.10) initdb.bootstrap_template1 It does not release result of encodingid_to_string. https://github.com/postgres/postgres/blob/ed26c4e25a444fcdd8a9120d4fe4b5a08d2b262b/src/bin/initdb/initdb.c#L1590 Direct leak of 2 byte(s) in 1 object(s) allocated from:     #0 0x59704d053d98 in strdup (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/initdb+0xdbd98) (BuildId: 32be4430a5ca7f8257c0d4648227da61568d3e1d)     #1 0x59704d145ea1 in pg_strdup /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/fe_memutils.c:95     #2 0x59704d10addc in encodingid_to_string /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/initdb/initdb.c:839   > #3 0x59704d10dc67 in bootstrap_template1 /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/initdb/initdb.c:1590     #4 0x59704d1133a2 in initialize_data_directory /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/initdb/initdb.c:3097     #5 0x59704d114f20 in main /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/initdb/initdb.c:3506     #6 0x76e5f822a1c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58     #7 0x76e5f822a28a in __libc_start_main_impl ../csu/libc-start.c:360     #8 0x59704cff5e24 in _start (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/initdb+0x7de24) (BuildId: 32be4430a5ca7f8257c0d4648227da61568d3e1d) --------------------------- (2.11) initdb.main It does not release result of pg_strdup. https://github.com/postgres/postgres/blob/ed26c4e25a444fcdd8a9120d4fe4b5a08d2b262b/src/bin/initdb/initdb.c#L3335 Direct leak of 2 byte(s) in 1 object(s) allocated from:     #0 0x59704d053d98 in strdup (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/initdb+0xdbd98) (BuildId: 32be4430a5ca7f8257c0d4648227da61568d3e1d)     #1 0x59704d145ea1 in pg_strdup /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/fe_memutils.c:95   > #2 0x59704d1140d7 in main /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/initdb/initdb.c:3335     #3 0x76e5f822a1c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58     #4 0x76e5f822a28a in __libc_start_main_impl ../csu/libc-start.c:360     #5 0x59704cff5e24 in _start (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/initdb+0x7de24) (BuildId: 32be4430a5ca7f8257c0d4648227da61568d3e1d) --------------------------- (3.1) pg_config -> get_configdata It does not release result of palloc. https://github.com/postgres/postgres/blob/ed26c4e25a444fcdd8a9120d4fe4b5a08d2b262b/src/common/config_info.c#L42 Direct leak of 368 byte(s) in 1 object(s) allocated from:     #0 0x5ad2d038987f in __interceptor_malloc (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/pg_config+0xdb87f) (BuildId: dcd746e7ef89d2fea0b0baee1b2664214b33b014)     #1 0x5ad2d03e7fad in pg_malloc_internal /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/fe_memutils.c:30     #2 0x5ad2d03e837d in palloc /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/fe_memutils.c:117   > #3 0x5ad2d03e1ba3 in get_configdata /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/config_info.c:42     #4 0x5ad2d03e117e in main /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/pg_config/pg_config.c:157     #5 0x7f139142a1c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58     #6 0x7f139142a28a in __libc_start_main_impl ../csu/libc-start.c:360     #7 0x5ad2d02d17a4 in _start (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/pg_config+0x237a4) (BuildId: dcd746e7ef89d2fea0b0baee1b2664214b33b014) --------------------------- (3.2) pg_config -> get_configdata It does not release result of pstrdup. https://github.com/postgres/postgres/blob/ed26c4e25a444fcdd8a9120d4fe4b5a08d2b262b/src/common/config_info.c#L127 Indirect leak of 478 byte(s) in 1 object(s) allocated from:     #0 0x5ad2d032f718 in strdup (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/pg_config+0x81718) (BuildId: dcd746e7ef89d2fea0b0baee1b2664214b33b014)     #1 0x5ad2d03e82db in pg_strdup /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/fe_memutils.c:95     #2 0x5ad2d03e8403 in pstrdup /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/fe_memutils.c:141   > #3 0x5ad2d03e316d in get_configdata /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/config_info.c:127     #4 0x5ad2d03e117e in main /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/pg_config/pg_config.c:157     #5 0x7f139142a1c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58     #6 0x7f139142a28a in __libc_start_main_impl ../csu/libc-start.c:360     #7 0x5ad2d02d17a4 in _start (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/pg_config+0x237a4) (BuildId: dcd746e7ef89d2fea0b0baee1b2664214b33b014) https://github.com/postgres/postgres/blob/ed26c4e25a444fcdd8a9120d4fe4b5a08d2b262b/src/common/config_info.c#L148 Indirect leak of 329 byte(s) in 1 object(s) allocated from:     #0 0x5ad2d032f718 in strdup (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/pg_config+0x81718) (BuildId: dcd746e7ef89d2fea0b0baee1b2664214b33b014)     #1 0x5ad2d03e82db in pg_strdup /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/fe_memutils.c:95     #2 0x5ad2d03e8403 in pstrdup /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/fe_memutils.c:141   > #3 0x5ad2d03e3599 in get_configdata /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/config_info.c:148     #4 0x5ad2d03e117e in main /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/pg_config/pg_config.c:157     #5 0x7f139142a1c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58     #6 0x7f139142a28a in __libc_start_main_impl ../csu/libc-start.c:360     #7 0x5ad2d02d17a4 in _start (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/pg_config+0x237a4) (BuildId: dcd746e7ef89d2fea0b0baee1b2664214b33b014) https://github.com/postgres/postgres/blob/ed26c4e25a444fcdd8a9120d4fe4b5a08d2b262b/src/common/config_info.c#L123 Indirect leak of 231 byte(s) in 1 object(s) allocated from:     #0 0x5ad2d032f718 in strdup (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/pg_config+0x81718) (BuildId: dcd746e7ef89d2fea0b0baee1b2664214b33b014)     #1 0x5ad2d03e82db in pg_strdup /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/fe_memutils.c:95     #2 0x5ad2d03e8403 in pstrdup /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/fe_memutils.c:141   > #3 0x5ad2d03e3009 in get_configdata /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/config_info.c:123     #4 0x5ad2d03e117e in main /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/pg_config/pg_config.c:157     #5 0x7f139142a1c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58     #6 0x7f139142a28a in __libc_start_main_impl ../csu/libc-start.c:360     #7 0x5ad2d02d17a4 in _start (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/pg_config+0x237a4) (BuildId: dcd746e7ef89d2fea0b0baee1b2664214b33b014) https://github.com/postgres/postgres/blob/ed26c4e25a444fcdd8a9120d4fe4b5a08d2b262b/src/common/config_info.c#L80 Indirect leak of 215 byte(s) in 1 object(s) allocated from:     #0 0x5ad2d032f718 in strdup (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/pg_config+0x81718) (BuildId: dcd746e7ef89d2fea0b0baee1b2664214b33b014)     #1 0x5ad2d03e82db in pg_strdup /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/fe_memutils.c:95     #2 0x5ad2d03e8403 in pstrdup /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/fe_memutils.c:141   > #3 0x5ad2d03e2517 in get_configdata /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/config_info.c:80     #4 0x5ad2d03e117e in main /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/pg_config/pg_config.c:157     #5 0x7f139142a1c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58     #6 0x7f139142a28a in __libc_start_main_impl ../csu/libc-start.c:360     #7 0x5ad2d02d17a4 in _start (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/pg_config+0x237a4) (BuildId: dcd746e7ef89d2fea0b0baee1b2664214b33b014) https://github.com/postgres/postgres/blob/ed26c4e25a444fcdd8a9120d4fe4b5a08d2b262b/src/common/config_info.c#L62 Indirect leak of 210 byte(s) in 1 object(s) allocated from:     #0 0x5ad2d032f718 in strdup (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/pg_config+0x81718) (BuildId: dcd746e7ef89d2fea0b0baee1b2664214b33b014)     #1 0x5ad2d03e82db in pg_strdup /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/fe_memutils.c:95     #2 0x5ad2d03e8403 in pstrdup /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/fe_memutils.c:141   > #3 0x5ad2d03e2073 in get_configdata /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/config_info.c:62     #4 0x5ad2d03e117e in main /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/pg_config/pg_config.c:157     #5 0x7f139142a1c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58     #6 0x7f139142a28a in __libc_start_main_impl ../csu/libc-start.c:360     #7 0x5ad2d02d17a4 in _start (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/pg_config+0x237a4) (BuildId: dcd746e7ef89d2fea0b0baee1b2664214b33b014) https://github.com/postgres/postgres/blob/ed26c4e25a444fcdd8a9120d4fe4b5a08d2b262b/src/common/config_info.c#L56 Indirect leak of 210 byte(s) in 1 object(s) allocated from:     #0 0x5ad2d032f718 in strdup (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/pg_config+0x81718) (BuildId: dcd746e7ef89d2fea0b0baee1b2664214b33b014)     #1 0x5ad2d03e82db in pg_strdup /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/fe_memutils.c:95     #2 0x5ad2d03e8403 in pstrdup /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/fe_memutils.c:141   > #3 0x5ad2d03e1ee7 in get_configdata /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/config_info.c:56     #4 0x5ad2d03e117e in main /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/pg_config/pg_config.c:157     #5 0x7f139142a1c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58     #6 0x7f139142a28a in __libc_start_main_impl ../csu/libc-start.c:360     #7 0x5ad2d02d17a4 in _start (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/pg_config+0x237a4) (BuildId: dcd746e7ef89d2fea0b0baee1b2664214b33b014) https://github.com/postgres/postgres/blob/ed26c4e25a444fcdd8a9120d4fe4b5a08d2b262b/src/common/config_info.c#L74 Indirect leak of 208 byte(s) in 1 object(s) allocated from:     #0 0x5ad2d032f718 in strdup (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/pg_config+0x81718) (BuildId: dcd746e7ef89d2fea0b0baee1b2664214b33b014)     #1 0x5ad2d03e82db in pg_strdup /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/fe_memutils.c:95     #2 0x5ad2d03e8403 in pstrdup /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/fe_memutils.c:141   > #3 0x5ad2d03e238b in get_configdata /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/config_info.c:74     #4 0x5ad2d03e117e in main /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/pg_config/pg_config.c:157     #5 0x7f139142a1c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58     #6 0x7f139142a28a in __libc_start_main_impl ../csu/libc-start.c:360     #7 0x5ad2d02d17a4 in _start (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/pg_config+0x237a4) (BuildId: dcd746e7ef89d2fea0b0baee1b2664214b33b014) https://github.com/postgres/postgres/blob/ed26c4e25a444fcdd8a9120d4fe4b5a08d2b262b/src/common/config_info.c#L110 Indirect leak of 206 byte(s) in 1 object(s) allocated from:     #0 0x5ad2d032f718 in strdup (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/pg_config+0x81718) (BuildId: dcd746e7ef89d2fea0b0baee1b2664214b33b014)     #1 0x5ad2d03e82db in pg_strdup /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/fe_memutils.c:95     #2 0x5ad2d03e8403 in pstrdup /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/fe_memutils.c:141   > #3 0x5ad2d03e2cd3 in get_configdata /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/config_info.c:110     #4 0x5ad2d03e117e in main /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/pg_config/pg_config.c:157     #5 0x7f139142a1c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58     #6 0x7f139142a28a in __libc_start_main_impl ../csu/libc-start.c:360     #7 0x5ad2d02d17a4 in _start (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/pg_config+0x237a4) (BuildId: dcd746e7ef89d2fea0b0baee1b2664214b33b014) https://github.com/postgres/postgres/blob/ed26c4e25a444fcdd8a9120d4fe4b5a08d2b262b/src/common/config_info.c#L116 Indirect leak of 204 byte(s) in 1 object(s) allocated from:     #0 0x5ad2d032f718 in strdup (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/pg_config+0x81718) (BuildId: dcd746e7ef89d2fea0b0baee1b2664214b33b014)     #1 0x5ad2d03e82db in pg_strdup /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/fe_memutils.c:95     #2 0x5ad2d03e8403 in pstrdup /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/fe_memutils.c:141   > #3 0x5ad2d03e2e5f in get_configdata /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/config_info.c:116     #4 0x5ad2d03e117e in main /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/pg_config/pg_config.c:157     #5 0x7f139142a1c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58     #6 0x7f139142a28a in __libc_start_main_impl ../csu/libc-start.c:360     #7 0x5ad2d02d17a4 in _start (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/pg_config+0x237a4) (BuildId: dcd746e7ef89d2fea0b0baee1b2664214b33b014) https://github.com/postgres/postgres/blob/ed26c4e25a444fcdd8a9120d4fe4b5a08d2b262b/src/common/config_info.c#L92 Indirect leak of 204 byte(s) in 1 object(s) allocated from:     #0 0x5ad2d032f718 in strdup (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/pg_config+0x81718) (BuildId: dcd746e7ef89d2fea0b0baee1b2664214b33b014)     #1 0x5ad2d03e82db in pg_strdup /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/fe_memutils.c:95     #2 0x5ad2d03e8403 in pstrdup /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/fe_memutils.c:141   > #3 0x5ad2d03e282f in get_configdata /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/config_info.c:92     #4 0x5ad2d03e117e in main /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/pg_config/pg_config.c:157     #5 0x7f139142a1c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58     #6 0x7f139142a28a in __libc_start_main_impl ../csu/libc-start.c:360     #7 0x5ad2d02d17a4 in _start (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/pg_config+0x237a4) (BuildId: dcd746e7ef89d2fea0b0baee1b2664214b33b014) ETC ... (total count: 46) --------------------------- (4.1) psql It does not release result of pg_malloc. https://github.com/postgres/postgres/blob/ed26c4e25a444fcdd8a9120d4fe4b5a08d2b262b/src/bin/psql/startup.c#L758 Direct leak of 24 byte(s) in 1 object(s) allocated from:     #0 0x58452dd6a8ff in malloc (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/psql+0x20d8ff) (BuildId: 7cb809265d82755a1adf0338adbb9e229227fcfb)     #1 0x58452dea2c89 in pg_malloc_internal /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/fe_memutils.c:30     #2 0x58452dea2e59 in pg_malloc /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/fe_memutils.c:49   > #3 0x58452de44109 in simple_action_list_append /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/psql/startup.c:758     #4 0x58452de42df0 in parse_psql_options /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/psql/startup.c:556     #5 0x58452de40eb8 in main /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/psql/startup.c:213     #6 0x7a466822a1c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58     #7 0x7a466822a28a in __libc_start_main_impl ../csu/libc-start.c:360     #8 0x58452dcb2824 in _start (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/psql+0x155824) (BuildId: 7cb809265d82755a1adf0338adbb9e229227fcfb) --------------------------- (4.2) psql It does not release result of pg_strdup. https://github.com/postgres/postgres/blob/ed26c4e25a444fcdd8a9120d4fe4b5a08d2b262b/src/bin/psql/startup.c#L763 Indirect leak of 48 byte(s) in 1 object(s) allocated from:     #0 0x58452dd10798 in strdup (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/psql+0x1b3798) (BuildId: 7cb809265d82755a1adf0338adbb9e229227fcfb)     #1 0x58452dea2fb7 in pg_strdup /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/fe_memutils.c:95   > #2 0x58452de441e7 in simple_action_list_append /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/psql/startup.c:763     #3 0x58452de42df0 in parse_psql_options /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/psql/startup.c:556     #4 0x58452de40eb8 in main /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/psql/startup.c:213     #5 0x7a466822a1c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58     #6 0x7a466822a28a in __libc_start_main_impl ../csu/libc-start.c:360     #7 0x58452dcb2824 in _start (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/psql+0x155824) (BuildId: 7cb809265d82755a1adf0338adbb9e229227fcfb) --------------------------- (4.2) psql It does not release result of pg_strdup https://github.com/postgres/postgres/blob/ed26c4e25a444fcdd8a9120d4fe4b5a08d2b262b/src/bin/psql/startup.c#L561 Direct leak of 50 byte(s) in 1 object(s) allocated from:     #0 0x647817464798 in strdup (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01a/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01a/install/bin/psql+0x1b3798) (BuildId: c8799811ec0ce32628e1a856b94d22b97a17723d)     #1 0x6478175f6fb7 in pg_strdup /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01a/src/common/fe_memutils.c:95   > #2 0x647817596e28 in parse_psql_options /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01a/src/bin/psql/startup.c:561     #3 0x647817594eb8 in main /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01a/src/bin/psql/startup.c:213     #4 0x7239a7a2a1c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58     #5 0x7239a7a2a28a in __libc_start_main_impl ../csu/libc-start.c:360     #6 0x647817406824 in _start (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01a/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01a/install/bin/psql+0x155824) (BuildId: c8799811ec0ce32628e1a856b94d22b97a17723d) --------------------------- (4.3) psql It does not release result of pg_strdup. https://github.com/postgres/postgres/blob/ed26c4e25a444fcdd8a9120d4fe4b5a08d2b262b/src/bin/psql/describe.c#L1749 +Direct leak of 5 byte(s) in 1 object(s) allocated from: +    #0 0x5ebdf183c798 in strdup (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/psql+0x1b4798) (BuildId: 1b71880cdf2d5034b061d45e5a8069835b994e8a) +    #1 0x5ebdf19cfd3f in pg_strdup /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/fe_memutils.c:95 +  > #2 0x5ebdf1929479 in describeOneTableDetails /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/psql/describe.c:1749 +    #3 0x5ebdf1928271 in describeTableDetails /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/psql/describe.c:1547 +    #4 0x5ebdf18f15be in exec_command_d /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/psql/command.c:1035 +    #5 0x5ebdf18ee091 in exec_command /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/psql/command.c:344 +    #6 0x5ebdf18edae1 in HandleSlashCmds /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/psql/command.c:241 +    #7 0x5ebdf194d8ee in MainLoop /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/psql/mainloop.c:496 +    #8 0x5ebdf1900aa3 in process_file /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/psql/command.c:4878 +    #9 0x5ebdf196e936 in main /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/psql/startup.c:460 +    #10 0x7a662702a1c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58 +    #11 0x7a662702a28a in __libc_start_main_impl ../csu/libc-start.c:360 +    #12 0x5ebdf17de824 in _start (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/psql+0x156824) (BuildId: 1b71880cdf2d5034b061d45e5a8069835b994e8a) --------------------------- (4.4) psql It does not release result of pg_strdup. https://github.com/postgres/postgres/blob/ed26c4e25a444fcdd8a9120d4fe4b5a08d2b262b/src/bin/psql/describe.c#L1740 +Direct leak of 1 byte(s) in 1 object(s) allocated from: +    #0 0x5ebdf183c798 in strdup (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/psql+0x1b4798) (BuildId: 1b71880cdf2d5034b061d45e5a8069835b994e8a) +    #1 0x5ebdf19cfd3f in pg_strdup /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/fe_memutils.c:95 +  > #2 0x5ebdf1929090 in describeOneTableDetails /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/psql/describe.c:1740 +    #3 0x5ebdf1928271 in describeTableDetails /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/psql/describe.c:1547 +    #4 0x5ebdf18f15be in exec_command_d /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/psql/command.c:1035 +    #5 0x5ebdf18ee091 in exec_command /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/psql/command.c:344 +    #6 0x5ebdf18edae1 in HandleSlashCmds /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/psql/command.c:241 +    #7 0x5ebdf194d8ee in MainLoop /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/psql/mainloop.c:496 +    #8 0x5ebdf1900aa3 in process_file /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/psql/command.c:4878 +    #9 0x5ebdf196e936 in main /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/psql/startup.c:460 +    #10 0x7a662702a1c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58 +    #11 0x7a662702a28a in __libc_start_main_impl ../csu/libc-start.c:360 +    #12 0x5ebdf17de824 in _start (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/psql+0x156824) (BuildId: 1b71880cdf2d5034b061d45e5a8069835b994e8a) --------------------------- (4.5) psql It does not release result of pg_strdup. https://github.com/postgres/postgres/blob/ed26c4e25a444fcdd8a9120d4fe4b5a08d2b262b/src/bin/psql/describe.c#L1743 +Direct leak of 60 byte(s) in 5 object(s) allocated from: +    #0 0x5c6c23c96798 in strdup (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/psql+0x1b4798) (BuildId: 1b71880cdf2d5034b061d45e5a8069835b994e8a) +    #1 0x5c6c23e29d3f in pg_strdup /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/fe_memutils.c:95 +  > #2 0x5c6c23d831c1 in describeOneTableDetails /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/psql/describe.c:1743 +    #3 0x5c6c23d82271 in describeTableDetails /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/psql/describe.c:1547 +    #4 0x5c6c23d4b5be in exec_command_d /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/psql/command.c:1035 +    #5 0x5c6c23d48091 in exec_command /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/psql/command.c:344 +    #6 0x5c6c23d47ae1 in HandleSlashCmds /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/psql/command.c:241 +    #7 0x5c6c23da78ee in MainLoop /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/psql/mainloop.c:496 +    #8 0x5c6c23d5aaa3 in process_file /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/psql/command.c:4878 +    #9 0x5c6c23dc8936 in main /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/psql/startup.c:460 +    #10 0x71a7ae82a1c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58 +    #11 0x71a7ae82a28a in __libc_start_main_impl ../csu/libc-start.c:360 +    #12 0x5c6c23c38824 in _start (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/psql+0x156824) (BuildId: 1b71880cdf2d5034b061d45e5a8069835b994e8a) --------------------------- (4.6) psql It does not release result of malloc. https://github.com/postgres/postgres/blob/ed26c4e25a444fcdd8a9120d4fe4b5a08d2b262b/src/bin/psql/command.c#L1919 +Direct leak of 3072 byte(s) in 12 object(s) allocated from: +    #0 0x60a3698848ff in malloc (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/psql+0x20e8ff) (BuildId: 1b71880cdf2d5034b061d45e5a8069835b994e8a) +    #1 0x7bf4f45c0829 in initPQExpBuffer /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/interfaces/libpq/pqexpbuffer.c:92 +    #2 0x60a36995226a in psql_scan_slash_option /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/psql/psqlscanslash.l:558 +  > #3 0x60a3698e2ab0 in exec_command_getresults /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/psql/command.c:1919 +    #4 0x60a3698dc49c in exec_command /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/psql/command.c:380 +    #5 0x60a3698dbae1 in HandleSlashCmds /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/psql/command.c:241 +    #6 0x60a36993b8ee in MainLoop /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/psql/mainloop.c:496 +    #7 0x60a3698eeaa3 in process_file /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/psql/command.c:4878 +    #8 0x60a36995c936 in main /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/psql/startup.c:460 +    #9 0x7bf4f382a1c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58 +    #10 0x7bf4f382a28a in __libc_start_main_impl ../csu/libc-start.c:360 +    #11 0x60a3697cc824 in _start (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/psql+0x156824) (BuildId: 1b71880cdf2d5034b061d45e5a8069835b994e8a) --------------------------- (4.7) psql https://github.com/postgres/postgres/blob/ed26c4e25a444fcdd8a9120d4fe4b5a08d2b262b/src/bin/psql/command.c#L1973 +Direct leak of 256 byte(s) in 1 object(s) allocated from: +    #0 0x60a3698848ff in malloc (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/psql+0x20e8ff) (BuildId: 1b71880cdf2d5034b061d45e5a8069835b994e8a) +    #1 0x7bf4f45c0829 in initPQExpBuffer /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/interfaces/libpq/pqexpbuffer.c:92 +    #2 0x60a36995226a in psql_scan_slash_option /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/psql/psqlscanslash.l:558 +  > #3 0x60a3698e2d3f in exec_command_gset /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/psql/command.c:1973 +    #4 0x60a3698dc504 in exec_command /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/psql/command.c:384 +    #5 0x60a3698dbae1 in HandleSlashCmds /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/psql/command.c:241 +    #6 0x60a36993b8ee in MainLoop /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/psql/mainloop.c:496 +    #7 0x60a3698eeaa3 in process_file /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/psql/command.c:4878 +    #8 0x60a36995c936 in main /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/psql/startup.c:460 +    #9 0x7bf4f382a1c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58 +    #10 0x7bf4f382a28a in __libc_start_main_impl ../csu/libc-start.c:360 +    #11 0x60a3697cc824 in _start (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/psql+0x156824) (BuildId: 1b71880cdf2d5034b061d45e5a8069835b994e8a) --------------------------- (5.1) pg_controldata https://github.com/postgres/postgres/blob/ed26c4e25a444fcdd8a9120d4fe4b5a08d2b262b/src/common/controldata_utils.c#L81 # Direct leak of 296 byte(s) in 1 object(s) allocated from: #     #0 0x64457075493f in __interceptor_malloc (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/pg_controldata+0xde93f) (BuildId: 96961b7edccfdb66a13f3fb897924e75edfd40fa) #     #1 0x6445707b3daa in pg_malloc_internal /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/fe_memutils.c:30 #     #2 0x6445707b417a in palloc /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/fe_memutils.c:117 #   > #3 0x6445707aef63 in get_controlfile_by_exact_path /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/controldata_utils.c:81 #     #4 0x6445707aeea8 in get_controlfile /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/controldata_utils.c:58 #     #5 0x6445707ac4bf in main /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/pg_controldata/pg_controldata.c:169 #     #6 0x72b7bec2a1c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58 #     #7 0x72b7bec2a28a in __libc_start_main_impl ../csu/libc-start.c:360 #     #8 0x64457069c864 in _start (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/pg_controldata+0x26864) (BuildId: 96961b7edccfdb66a13f3fb897924e75edfd40fa) --------------------------- (5.2) pg_controldata https://github.com/postgres/postgres/blob/88a658a42e1b3e6b1a6d4e8322d731ddc3fe9b97/src/bin/pg_controldata/pg_controldata.c#L113 # Direct leak of 15 byte(s) in 1 object(s) allocated from: #     #0 0x6445706fa7d8 in strdup (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/pg_controldata+0x847d8) (BuildId: 96961b7edccfdb66a13f3fb897924e75edfd40fa) #     #1 0x6445707b7728 in get_progname /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/port/path.c:667 #   > #2 0x6445707abed8 in main /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/bin/pg_controldata/pg_controldata.c:113 #     #3 0x72b7bec2a1c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58 #     #4 0x72b7bec2a28a in __libc_start_main_impl ../csu/libc-start.c:360 #     #5 0x64457069c864 in _start (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/tmp_install/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/install/bin/pg_controldata+0x26864) (BuildId: 96961b7edccfdb66a13f3fb897924e75edfd40fa) --------------------------- (6.1) pg_regress https://github.com/postgres/postgres/blob/ed26c4e25a444fcdd8a9120d4fe4b5a08d2b262b/src/test/regress/pg_regress.c#L2201 Direct leak of 2 byte(s) in 1 object(s) allocated from:     #0 0x64dc461a89d8 in strdup (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/test/regress/pg_regress+0x8e9d8) (BuildId: 05c9a6179b03b0b71d31f188cc7fdb4de921814e)     #1 0x64dc4626a91a in pg_strdup /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/fe_memutils.c:95   > #2 0x64dc46263238 in regression_main /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/test/regress/pg_regress.c:2201     #3 0x64dc4626591d in main /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/test/regress/pg_regress_main.c:113     #4 0x77a076a2a1c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58     #5 0x77a076a2a28a in __libc_start_main_impl ../csu/libc-start.c:360     #6 0x64dc4614aa64 in _start (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/test/regress/pg_regress+0x30a64) (BuildId: 05c9a6179b03b0b71d31f188cc7fdb4de921814e) --------------------------- (6.2) pg_regress https://github.com/postgres/postgres/blob/ed26c4e25a444fcdd8a9120d4fe4b5a08d2b262b/src/test/regress/pg_regress.c#L2163 Direct leak of 2 byte(s) in 1 object(s) allocated from:     #0 0x64dc461a89d8 in strdup (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/test/regress/pg_regress+0x8e9d8) (BuildId: 05c9a6179b03b0b71d31f188cc7fdb4de921814e)     #1 0x64dc4626a91a in pg_strdup /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/common/fe_memutils.c:95   > #2 0x64dc46262f22 in regression_main /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/test/regress/pg_regress.c:2163     #3 0x64dc4626591d in main /home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/test/regress/pg_regress_main.c:113     #4 0x77a076a2a1c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58     #5 0x77a076a2a28a in __libc_start_main_impl ../csu/libc-start.c:360     #6 0x64dc4614aa64 in _start (/home/dima/MY/Work/CurrentTasks/2025/POSTGRES/2025_06_17__001--mem_leaks/n002/work01/src/test/regress/pg_regress+0x30a64) (BuildId: 05c9a6179b03b0b71d31f188cc7fdb4de921814e) --------- Thanks&Regards, Dmitry Kovalenko