From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: David Rowley <dgrowleyml@gmail.com>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: Getting better results from valgrind leak tracking
Date: Tue, 16 Mar 2021 23:23:42 -0400
Message-ID: <3480636.1615951422@sss.pgh.pa.us> (raw)
In-Reply-To: <20210317023101.anvejcfotwka6gaa@alap3.anarazel.de>
References: <3471359.1615937770@sss.pgh.pa.us>
<20210317023101.anvejcfotwka6gaa@alap3.anarazel.de>
Andres Freund <andres@anarazel.de> writes:
> Hm. For me the number of leaks seem to stay the same with or without
> your changes related to this. Is this a USE_VALGRIND build?
Not sure how you arrived at that answer. I attach two logs of individual
backends running with
--leak-check=full --track-origins=yes --read-var-info=yes --error-exitcode=0
The test scenario in both cases was just start up, run "select 2+2;",
quit. The first one is before I'd made any of the changes shown
before, the second is after.
regards, tom lane
Attachments:
initialrun.log (text/plain, 142.3K) downloadsomefixes.log (text/plain, 20.4K) download
==00:00:00:26.571 3467011== Memcheck, a memory error detector
==00:00:00:26.571 3467011== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==00:00:00:26.571 3467011== Using Valgrind-3.16.0 and LibVEX; rerun with -h for copyright info
==00:00:00:26.571 3467011== Command: postmaster -i -F
==00:00:00:26.571 3467011== Parent PID: 3466975
==00:00:00:26.571 3467011==
--00:00:00:27.867 3467011-- warning: evaluate_Dwarf3_Expr: unhandled DW_OP_ 0xf3
--00:00:00:27.867 3467011-- warning: evaluate_Dwarf3_Expr: unhandled DW_OP_ 0xf3
--00:00:00:27.867 3467011-- warning: evaluate_Dwarf3_Expr: unhandled DW_OP_ 0xf3
--00:00:00:27.867 3467011-- warning: evaluate_Dwarf3_Expr: unhandled DW_OP_ 0xf3
--00:00:00:27.867 3467011-- warning: evaluate_Dwarf3_Expr: unhandled DW_OP_ 0xf3
--00:00:00:27.867 3467011-- warning: evaluate_Dwarf3_Expr: unhandled DW_OP_ 0xf3
--00:00:00:27.867 3467011-- warning: evaluate_Dwarf3_Expr: unhandled DW_OP_ 0xf3
--00:00:00:27.867 3467011-- warning: evaluate_Dwarf3_Expr: unhandled DW_OP_ 0xf3
--00:00:00:27.867 3467011-- warning: evaluate_Dwarf3_Expr: unhandled DW_OP_ 0xf3
--00:00:00:27.867 3467011-- warning: evaluate_Dwarf3_Expr: unhandled DW_OP_ 0xf3
--00:00:00:27.868 3467011-- warning: evaluate_Dwarf3_Expr: unhandled DW_OP_ 0xf3
--00:00:00:27.868 3467011-- warning: evaluate_Dwarf3_Expr: unhandled DW_OP_ 0xf3
--00:00:00:27.868 3467011-- warning: evaluate_Dwarf3_Expr: unhandled DW_OP_ 0xf3
--00:00:00:27.868 3467011-- warning: evaluate_Dwarf3_Expr: unhandled DW_OP_ 0xf3
--00:00:00:27.868 3467011-- warning: evaluate_Dwarf3_Expr: unhandled DW_OP_ 0xf3
--00:00:00:27.868 3467011-- warning: evaluate_Dwarf3_Expr: unhandled DW_OP_ 0xf3
--00:00:00:27.874 3467011-- warning: evaluate_Dwarf3_Expr: unhandled DW_OP_ 0xf3
--00:00:00:27.877 3467011-- warning: evaluate_Dwarf3_Expr: unhandled DW_OP_ 0xf3
--00:00:00:27.880 3467011-- warning: evaluate_Dwarf3_Expr: unhandled DW_OP_ 0xf3
--00:00:00:34.625 3467011-- warning: evaluate_Dwarf3_Expr: unhandled DW_OP_ 0xf3
--00:00:00:34.625 3467011-- warning: evaluate_Dwarf3_Expr: unhandled DW_OP_ 0xf3
--00:00:00:34.625 3467011-- warning: evaluate_Dwarf3_Expr: unhandled DW_OP_ 0xf3
--00:00:00:34.625 3467011-- warning: evaluate_Dwarf3_Expr: unhandled DW_OP_ 0xf3
--00:00:00:34.625 3467011-- warning: evaluate_Dwarf3_Expr: unhandled DW_OP_ 0xf3
--00:00:00:34.625 3467011-- warning: evaluate_Dwarf3_Expr: unhandled DW_OP_ 0xf3
--00:00:00:34.625 3467011-- warning: evaluate_Dwarf3_Expr: unhandled DW_OP_ 0xf3
--00:00:00:34.625 3467011-- warning: evaluate_Dwarf3_Expr: unhandled DW_OP_ 0xf3
==00:00:00:34.749 3467011==
==00:00:00:34.749 3467011== HEAP SUMMARY:
==00:00:00:34.749 3467011== in use at exit: 1,685,872 bytes in 405 blocks
==00:00:00:34.749 3467011== total heap usage: 10,323 allocs, 740 frees, 28,247,597 bytes allocated
==00:00:00:34.749 3467011==
==00:00:00:35.142 3467011== 19 bytes in 1 blocks are definitely lost in loss record 119 of 555
==00:00:00:35.142 3467011== at 0x950650: MemoryContextAlloc (mcxt.c:827)
==00:00:00:35.142 3467011== by 0x951710: MemoryContextStrdup (mcxt.c:1179)
==00:00:00:35.142 3467011== by 0x91C86E: RelationInitIndexAccessInfo (relcache.c:1444)
==00:00:00:35.142 3467011== by 0x91DA9C: RelationBuildDesc (relcache.c:1200)
==00:00:00:35.142 3467011== by 0x91F41D: load_critical_index (relcache.c:4170)
==00:00:00:35.142 3467011== by 0x91FDB2: RelationCacheInitializePhase3 (relcache.c:3944)
==00:00:00:35.142 3467011== by 0x9350C7: InitPostgres (postinit.c:1025)
==00:00:00:35.142 3467011== by 0x81CB84: PostgresMain (postgres.c:4010)
==00:00:00:35.142 3467011== by 0x7975B1: BackendRun (postmaster.c:4465)
==00:00:00:35.142 3467011== by 0x7975B1: BackendStartup (postmaster.c:4187)
==00:00:00:35.142 3467011== by 0x7975B1: ServerLoop (postmaster.c:1736)
==00:00:00:35.142 3467011== by 0x798406: PostmasterMain (postmaster.c:1408)
==00:00:00:35.142 3467011== by 0x502CF8: main (main.c:209)
==00:00:00:35.142 3467011==
==00:00:00:35.142 3467011== 20 bytes in 1 blocks are definitely lost in loss record 127 of 555
==00:00:00:35.142 3467011== at 0x950650: MemoryContextAlloc (mcxt.c:827)
==00:00:00:35.142 3467011== by 0x951710: MemoryContextStrdup (mcxt.c:1179)
==00:00:00:35.142 3467011== by 0x91C86E: RelationInitIndexAccessInfo (relcache.c:1444)
==00:00:00:35.142 3467011== by 0x91DA9C: RelationBuildDesc (relcache.c:1200)
==00:00:00:35.142 3467011== by 0x91F41D: load_critical_index (relcache.c:4170)
==00:00:00:35.142 3467011== by 0x91FD79: RelationCacheInitializePhase3 (relcache.c:3984)
==00:00:00:35.142 3467011== by 0x9350C7: InitPostgres (postinit.c:1025)
==00:00:00:35.142 3467011== by 0x81CB84: PostgresMain (postgres.c:4010)
==00:00:00:35.142 3467011== by 0x7975B1: BackendRun (postmaster.c:4465)
==00:00:00:35.142 3467011== by 0x7975B1: BackendStartup (postmaster.c:4187)
==00:00:00:35.142 3467011== by 0x7975B1: ServerLoop (postmaster.c:1736)
==00:00:00:35.142 3467011== by 0x798406: PostmasterMain (postmaster.c:1408)
==00:00:00:35.142 3467011== by 0x502CF8: main (main.c:209)
==00:00:00:35.142 3467011==
==00:00:00:35.142 3467011== 21 bytes in 1 blocks are definitely lost in loss record 128 of 555
==00:00:00:35.142 3467011== at 0x950650: MemoryContextAlloc (mcxt.c:827)
==00:00:00:35.142 3467011== by 0x951710: MemoryContextStrdup (mcxt.c:1179)
==00:00:00:35.142 3467011== by 0x91C86E: RelationInitIndexAccessInfo (relcache.c:1444)
==00:00:00:35.142 3467011== by 0x91DA9C: RelationBuildDesc (relcache.c:1200)
==00:00:00:35.142 3467011== by 0x91F41D: load_critical_index (relcache.c:4170)
==00:00:00:35.142 3467011== by 0x91FDDF: RelationCacheInitializePhase3 (relcache.c:3950)
==00:00:00:35.142 3467011== by 0x9350C7: InitPostgres (postinit.c:1025)
==00:00:00:35.142 3467011== by 0x81CB84: PostgresMain (postgres.c:4010)
==00:00:00:35.142 3467011== by 0x7975B1: BackendRun (postmaster.c:4465)
==00:00:00:35.142 3467011== by 0x7975B1: BackendStartup (postmaster.c:4187)
==00:00:00:35.142 3467011== by 0x7975B1: ServerLoop (postmaster.c:1736)
==00:00:00:35.143 3467011== by 0x798406: PostmasterMain (postmaster.c:1408)
==00:00:00:35.143 3467011== by 0x502CF8: main (main.c:209)
==00:00:00:35.143 3467011==
==00:00:00:35.143 3467011== 22 bytes in 1 blocks are definitely lost in loss record 130 of 555
==00:00:00:35.143 3467011== at 0x950650: MemoryContextAlloc (mcxt.c:827)
==00:00:00:35.143 3467011== by 0x951710: MemoryContextStrdup (mcxt.c:1179)
==00:00:00:35.143 3467011== by 0x91C86E: RelationInitIndexAccessInfo (relcache.c:1444)
==00:00:00:35.143 3467011== by 0x91DA9C: RelationBuildDesc (relcache.c:1200)
==00:00:00:35.143 3467011== by 0x91F41D: load_critical_index (relcache.c:4170)
==00:00:00:35.143 3467011== by 0x91FD5B: RelationCacheInitializePhase3 (relcache.c:3980)
==00:00:00:35.143 3467011== by 0x9350C7: InitPostgres (postinit.c:1025)
==00:00:00:35.143 3467011== by 0x81CB84: PostgresMain (postgres.c:4010)
==00:00:00:35.143 3467011== by 0x7975B1: BackendRun (postmaster.c:4465)
==00:00:00:35.143 3467011== by 0x7975B1: BackendStartup (postmaster.c:4187)
==00:00:00:35.143 3467011== by 0x7975B1: ServerLoop (postmaster.c:1736)
==00:00:00:35.143 3467011== by 0x798406: PostmasterMain (postmaster.c:1408)
==00:00:00:35.143 3467011== by 0x502CF8: main (main.c:209)
==00:00:00:35.143 3467011==
==00:00:00:35.143 3467011== 24 bytes in 1 blocks are definitely lost in loss record 139 of 555
==00:00:00:35.143 3467011== at 0x950650: MemoryContextAlloc (mcxt.c:827)
==00:00:00:35.143 3467011== by 0x951710: MemoryContextStrdup (mcxt.c:1179)
==00:00:00:35.143 3467011== by 0x91C86E: RelationInitIndexAccessInfo (relcache.c:1444)
==00:00:00:35.143 3467011== by 0x91DA9C: RelationBuildDesc (relcache.c:1200)
==00:00:00:35.143 3467011== by 0x91F41D: load_critical_index (relcache.c:4170)
==00:00:00:35.143 3467011== by 0x91FD6A: RelationCacheInitializePhase3 (relcache.c:3982)
==00:00:00:35.143 3467011== by 0x9350C7: InitPostgres (postinit.c:1025)
==00:00:00:35.143 3467011== by 0x81CB84: PostgresMain (postgres.c:4010)
==00:00:00:35.143 3467011== by 0x7975B1: BackendRun (postmaster.c:4465)
==00:00:00:35.143 3467011== by 0x7975B1: BackendStartup (postmaster.c:4187)
==00:00:00:35.143 3467011== by 0x7975B1: ServerLoop (postmaster.c:1736)
==00:00:00:35.143 3467011== by 0x798406: PostmasterMain (postmaster.c:1408)
==00:00:00:35.143 3467011== by 0x502CF8: main (main.c:209)
==00:00:00:35.143 3467011==
==00:00:00:35.143 3467011== 25 bytes in 1 blocks are definitely lost in loss record 140 of 555
==00:00:00:35.143 3467011== at 0x950650: MemoryContextAlloc (mcxt.c:827)
==00:00:00:35.143 3467011== by 0x951710: MemoryContextStrdup (mcxt.c:1179)
==00:00:00:35.143 3467011== by 0x91C86E: RelationInitIndexAccessInfo (relcache.c:1444)
==00:00:00:35.143 3467011== by 0x91DA9C: RelationBuildDesc (relcache.c:1200)
==00:00:00:35.143 3467011== by 0x91F41D: load_critical_index (relcache.c:4170)
==00:00:00:35.143 3467011== by 0x91FDEE: RelationCacheInitializePhase3 (relcache.c:3952)
==00:00:00:35.143 3467011== by 0x9350C7: InitPostgres (postinit.c:1025)
==00:00:00:35.143 3467011== by 0x81CB84: PostgresMain (postgres.c:4010)
==00:00:00:35.143 3467011== by 0x7975B1: BackendRun (postmaster.c:4465)
==00:00:00:35.143 3467011== by 0x7975B1: BackendStartup (postmaster.c:4187)
==00:00:00:35.143 3467011== by 0x7975B1: ServerLoop (postmaster.c:1736)
==00:00:00:35.143 3467011== by 0x798406: PostmasterMain (postmaster.c:1408)
==00:00:00:35.143 3467011== by 0x502CF8: main (main.c:209)
==00:00:00:35.143 3467011==
==00:00:00:35.143 3467011== 26 bytes in 1 blocks are definitely lost in loss record 141 of 555
==00:00:00:35.143 3467011== at 0x950650: MemoryContextAlloc (mcxt.c:827)
==00:00:00:35.143 3467011== by 0x951710: MemoryContextStrdup (mcxt.c:1179)
==00:00:00:35.143 3467011== by 0x91C86E: RelationInitIndexAccessInfo (relcache.c:1444)
==00:00:00:35.143 3467011== by 0x91DA9C: RelationBuildDesc (relcache.c:1200)
==00:00:00:35.143 3467011== by 0x91F41D: load_critical_index (relcache.c:4170)
==00:00:00:35.143 3467011== by 0x91FDD0: RelationCacheInitializePhase3 (relcache.c:3948)
==00:00:00:35.143 3467011== by 0x9350C7: InitPostgres (postinit.c:1025)
==00:00:00:35.143 3467011== by 0x81CB84: PostgresMain (postgres.c:4010)
==00:00:00:35.143 3467011== by 0x7975B1: BackendRun (postmaster.c:4465)
==00:00:00:35.143 3467011== by 0x7975B1: BackendStartup (postmaster.c:4187)
==00:00:00:35.143 3467011== by 0x7975B1: ServerLoop (postmaster.c:1736)
==00:00:00:35.143 3467011== by 0x798406: PostmasterMain (postmaster.c:1408)
==00:00:00:35.143 3467011== by 0x502CF8: main (main.c:209)
==00:00:00:35.143 3467011==
==00:00:00:35.143 3467011== 26 bytes in 1 blocks are definitely lost in loss record 142 of 555
==00:00:00:35.143 3467011== at 0x950650: MemoryContextAlloc (mcxt.c:827)
==00:00:00:35.143 3467011== by 0x951710: MemoryContextStrdup (mcxt.c:1179)
==00:00:00:35.143 3467011== by 0x91C86E: RelationInitIndexAccessInfo (relcache.c:1444)
==00:00:00:35.143 3467011== by 0x91DA9C: RelationBuildDesc (relcache.c:1200)
==00:00:00:35.143 3467011== by 0x91F41D: load_critical_index (relcache.c:4170)
==00:00:00:35.143 3467011== by 0x91FD4C: RelationCacheInitializePhase3 (relcache.c:3978)
==00:00:00:35.143 3467011== by 0x9350C7: InitPostgres (postinit.c:1025)
==00:00:00:35.143 3467011== by 0x81CB84: PostgresMain (postgres.c:4010)
==00:00:00:35.143 3467011== by 0x7975B1: BackendRun (postmaster.c:4465)
==00:00:00:35.143 3467011== by 0x7975B1: BackendStartup (postmaster.c:4187)
==00:00:00:35.143 3467011== by 0x7975B1: ServerLoop (postmaster.c:1736)
==00:00:00:35.143 3467011== by 0x798406: PostmasterMain (postmaster.c:1408)
==00:00:00:35.143 3467011== by 0x502CF8: main (main.c:209)
==00:00:00:35.143 3467011==
==00:00:00:35.143 3467011== 27 bytes in 1 blocks are definitely lost in loss record 143 of 555
==00:00:00:35.143 3467011== at 0x950650: MemoryContextAlloc (mcxt.c:827)
==00:00:00:35.143 3467011== by 0x951710: MemoryContextStrdup (mcxt.c:1179)
==00:00:00:35.143 3467011== by 0x91C86E: RelationInitIndexAccessInfo (relcache.c:1444)
==00:00:00:35.143 3467011== by 0x91DA9C: RelationBuildDesc (relcache.c:1200)
==00:00:00:35.143 3467011== by 0x91F41D: load_critical_index (relcache.c:4170)
==00:00:00:35.143 3467011== by 0x91FD97: RelationCacheInitializePhase3 (relcache.c:3988)
==00:00:00:35.143 3467011== by 0x9350C7: InitPostgres (postinit.c:1025)
==00:00:00:35.143 3467011== by 0x81CB84: PostgresMain (postgres.c:4010)
==00:00:00:35.143 3467011== by 0x7975B1: BackendRun (postmaster.c:4465)
==00:00:00:35.143 3467011== by 0x7975B1: BackendStartup (postmaster.c:4187)
==00:00:00:35.143 3467011== by 0x7975B1: ServerLoop (postmaster.c:1736)
==00:00:00:35.143 3467011== by 0x798406: PostmasterMain (postmaster.c:1408)
==00:00:00:35.143 3467011== by 0x502CF8: main (main.c:209)
==00:00:00:35.143 3467011==
==00:00:00:35.143 3467011== 30 bytes in 1 blocks are definitely lost in loss record 144 of 555
==00:00:00:35.143 3467011== at 0x950650: MemoryContextAlloc (mcxt.c:827)
==00:00:00:35.143 3467011== by 0x951710: MemoryContextStrdup (mcxt.c:1179)
==00:00:00:35.143 3467011== by 0x91C86E: RelationInitIndexAccessInfo (relcache.c:1444)
==00:00:00:35.143 3467011== by 0x91DA9C: RelationBuildDesc (relcache.c:1200)
==00:00:00:35.143 3467011== by 0x91F41D: load_critical_index (relcache.c:4170)
==00:00:00:35.143 3467011== by 0x91FDFD: RelationCacheInitializePhase3 (relcache.c:3954)
==00:00:00:35.143 3467011== by 0x9350C7: InitPostgres (postinit.c:1025)
==00:00:00:35.143 3467011== by 0x81CB84: PostgresMain (postgres.c:4010)
==00:00:00:35.143 3467011== by 0x7975B1: BackendRun (postmaster.c:4465)
==00:00:00:35.143 3467011== by 0x7975B1: BackendStartup (postmaster.c:4187)
==00:00:00:35.143 3467011== by 0x7975B1: ServerLoop (postmaster.c:1736)
==00:00:00:35.143 3467011== by 0x798406: PostmasterMain (postmaster.c:1408)
==00:00:00:35.143 3467011== by 0x502CF8: main (main.c:209)
==00:00:00:35.143 3467011==
==00:00:00:35.143 3467011== 32 bytes in 1 blocks are definitely lost in loss record 201 of 555
==00:00:00:35.143 3467011== at 0x950650: MemoryContextAlloc (mcxt.c:827)
==00:00:00:35.143 3467011== by 0x951710: MemoryContextStrdup (mcxt.c:1179)
==00:00:00:35.143 3467011== by 0x91C86E: RelationInitIndexAccessInfo (relcache.c:1444)
==00:00:00:35.143 3467011== by 0x91DA9C: RelationBuildDesc (relcache.c:1200)
==00:00:00:35.143 3467011== by 0x91F41D: load_critical_index (relcache.c:4170)
==00:00:00:35.143 3467011== by 0x91FDC1: RelationCacheInitializePhase3 (relcache.c:3946)
==00:00:00:35.143 3467011== by 0x9350C7: InitPostgres (postinit.c:1025)
==00:00:00:35.143 3467011== by 0x81CB84: PostgresMain (postgres.c:4010)
==00:00:00:35.143 3467011== by 0x7975B1: BackendRun (postmaster.c:4465)
==00:00:00:35.143 3467011== by 0x7975B1: BackendStartup (postmaster.c:4187)
==00:00:00:35.143 3467011== by 0x7975B1: ServerLoop (postmaster.c:1736)
==00:00:00:35.143 3467011== by 0x798406: PostmasterMain (postmaster.c:1408)
==00:00:00:35.143 3467011== by 0x502CF8: main (main.c:209)
==00:00:00:35.143 3467011==
==00:00:00:35.143 3467011== 32 bytes in 1 blocks are definitely lost in loss record 202 of 555
==00:00:00:35.143 3467011== at 0x950650: MemoryContextAlloc (mcxt.c:827)
==00:00:00:35.143 3467011== by 0x951710: MemoryContextStrdup (mcxt.c:1179)
==00:00:00:35.143 3467011== by 0x91C86E: RelationInitIndexAccessInfo (relcache.c:1444)
==00:00:00:35.143 3467011== by 0x91DA9C: RelationBuildDesc (relcache.c:1200)
==00:00:00:35.143 3467011== by 0x91F41D: load_critical_index (relcache.c:4170)
==00:00:00:35.143 3467011== by 0x91FE0C: RelationCacheInitializePhase3 (relcache.c:3956)
==00:00:00:35.143 3467011== by 0x9350C7: InitPostgres (postinit.c:1025)
==00:00:00:35.143 3467011== by 0x81CB84: PostgresMain (postgres.c:4010)
==00:00:00:35.143 3467011== by 0x7975B1: BackendRun (postmaster.c:4465)
==00:00:00:35.143 3467011== by 0x7975B1: BackendStartup (postmaster.c:4187)
==00:00:00:35.143 3467011== by 0x7975B1: ServerLoop (postmaster.c:1736)
==00:00:00:35.143 3467011== by 0x798406: PostmasterMain (postmaster.c:1408)
==00:00:00:35.143 3467011== by 0x502CF8: main (main.c:209)
==00:00:00:35.143 3467011==
==00:00:00:35.143 3467011== 34 bytes in 1 blocks are definitely lost in loss record 204 of 555
==00:00:00:35.143 3467011== at 0x950650: MemoryContextAlloc (mcxt.c:827)
==00:00:00:35.143 3467011== by 0x951710: MemoryContextStrdup (mcxt.c:1179)
==00:00:00:35.143 3467011== by 0x91C86E: RelationInitIndexAccessInfo (relcache.c:1444)
==00:00:00:35.143 3467011== by 0x91DA9C: RelationBuildDesc (relcache.c:1200)
==00:00:00:35.143 3467011== by 0x91F41D: load_critical_index (relcache.c:4170)
==00:00:00:35.143 3467011== by 0x91FD88: RelationCacheInitializePhase3 (relcache.c:3986)
==00:00:00:35.143 3467011== by 0x9350C7: InitPostgres (postinit.c:1025)
==00:00:00:35.143 3467011== by 0x81CB84: PostgresMain (postgres.c:4010)
==00:00:00:35.143 3467011== by 0x7975B1: BackendRun (postmaster.c:4465)
==00:00:00:35.143 3467011== by 0x7975B1: BackendStartup (postmaster.c:4187)
==00:00:00:35.143 3467011== by 0x7975B1: ServerLoop (postmaster.c:1736)
==00:00:00:35.144 3467011== by 0x798406: PostmasterMain (postmaster.c:1408)
==00:00:00:35.144 3467011== by 0x502CF8: main (main.c:209)
==00:00:00:35.144 3467011==
==00:00:00:35.144 3467011== 40 bytes in 1 blocks are definitely lost in loss record 225 of 555
==00:00:00:35.144 3467011== at 0x950650: MemoryContextAlloc (mcxt.c:827)
==00:00:00:35.144 3467011== by 0x951710: MemoryContextStrdup (mcxt.c:1179)
==00:00:00:35.144 3467011== by 0x91C86E: RelationInitIndexAccessInfo (relcache.c:1444)
==00:00:00:35.144 3467011== by 0x91DA9C: RelationBuildDesc (relcache.c:1200)
==00:00:00:35.144 3467011== by 0x91F165: RelationIdGetRelation (relcache.c:2070)
==00:00:00:35.144 3467011== by 0x511233: relation_open (relation.c:59)
==00:00:00:35.144 3467011== by 0x569935: index_open (indexam.c:136)
==00:00:00:35.144 3467011== by 0x5692D9: systable_beginscan (genam.c:395)
==00:00:00:35.144 3467011== by 0x5E7060: ApplySetting (pg_db_role_setting.c:238)
==00:00:00:35.144 3467011== by 0x9353CD: process_settings (postinit.c:1161)
==00:00:00:35.144 3467011== by 0x9353CD: InitPostgres (postinit.c:1048)
==00:00:00:35.144 3467011== by 0x81CB84: PostgresMain (postgres.c:4010)
==00:00:00:35.144 3467011== by 0x7975B1: BackendRun (postmaster.c:4465)
==00:00:00:35.144 3467011== by 0x7975B1: BackendStartup (postmaster.c:4187)
==00:00:00:35.144 3467011== by 0x7975B1: ServerLoop (postmaster.c:1736)
==00:00:00:35.144 3467011==
==00:00:00:35.145 3467011== 1,861 bytes in 67 blocks are definitely lost in loss record 489 of 555
==00:00:00:35.145 3467011== at 0x950650: MemoryContextAlloc (mcxt.c:827)
==00:00:00:35.145 3467011== by 0x951710: MemoryContextStrdup (mcxt.c:1179)
==00:00:00:35.145 3467011== by 0x91C86E: RelationInitIndexAccessInfo (relcache.c:1444)
==00:00:00:35.145 3467011== by 0x91DA9C: RelationBuildDesc (relcache.c:1200)
==00:00:00:35.145 3467011== by 0x91F165: RelationIdGetRelation (relcache.c:2070)
==00:00:00:35.145 3467011== by 0x511233: relation_open (relation.c:59)
==00:00:00:35.145 3467011== by 0x569935: index_open (indexam.c:136)
==00:00:00:35.145 3467011== by 0x90F747: InitCatCachePhase2 (catcache.c:1050)
==00:00:00:35.145 3467011== by 0x921A00: InitCatalogCachePhase2 (syscache.c:1093)
==00:00:00:35.145 3467011== by 0x91FE2A: RelationCacheInitializePhase3 (relcache.c:4143)
==00:00:00:35.145 3467011== by 0x9350C7: InitPostgres (postinit.c:1025)
==00:00:00:35.145 3467011== by 0x81CB84: PostgresMain (postgres.c:4010)
==00:00:00:35.145 3467011==
==00:00:00:35.145 3467011== LEAK SUMMARY:
==00:00:00:35.145 3467011== definitely lost: 2,239 bytes in 81 blocks
==00:00:00:35.145 3467011== indirectly lost: 0 bytes in 0 blocks
==00:00:00:35.145 3467011== possibly lost: 0 bytes in 0 blocks
==00:00:00:35.145 3467011== still reachable: 842,752 bytes in 2,307 blocks
==00:00:00:35.145 3467011== suppressed: 0 bytes in 0 blocks
==00:00:00:35.145 3467011== Reachable blocks (those to which a pointer was found) are not shown.
==00:00:00:35.145 3467011== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==00:00:00:35.145 3467011==
==00:00:00:35.145 3467011== For lists of detected and suppressed errors, rerun with: -s
==00:00:00:35.145 3467011== ERROR SUMMARY: 15 errors from 15 contexts (suppressed: 45 from 6)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, andres@anarazel.de, dgrowleyml@gmail.com
Subject: Re: Getting better results from valgrind leak tracking
In-Reply-To: <3480636.1615951422@sss.pgh.pa.us>
References: <3471359.1615937770@sss.pgh.pa.us> <20210317023101.anvejcfotwka6gaa@alap3.anarazel.de> <3480636.1615951422@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox