Thread
Commits
-
Free memory allocated for unrecognized_protocol_options
- 311a851436cb 19 (unreleased) landed
-
libpq: Grease the protocol by default
- 4966bd3ed95e 19 (unreleased) cited
-
[PATCH] Silence a new Valgrind warning
Aleksander Alekseev <aleksander@tigerdata.com> — 2026-03-12T12:56:26Z
Hi, Commit 4966bd3ed95e revealed a non-critical memory leak in ProcessStartupPacket() which Valgrind is very much upset about: ``` 63 (32 direct, 31 indirect) bytes in 1 blocks are definitely lost in loss record 355 of 800 at 0x9D260C: palloc (mcxt.c:1411) by 0x54B3D2: new_list (list.c:137) by 0x54B8CC: lappend (list.c:344) by 0x78B41A: ProcessStartupPacket (backend_startup.c:786) by 0x78A411: BackendInitialize (backend_startup.c:295) by 0x789F2F: BackendMain (backend_startup.c:110) by 0x67EEED: postmaster_child_launch (launch_backend.c:268) by 0x685D50: BackendStartup (postmaster.c:3606) by 0x6830CF: ServerLoop (postmaster.c:1713) by 0x682982: PostmasterMain (postmaster.c:1403) by 0x547DFE: main (main.c:231) ``` The proposed patch silences the warnings. -- Best regards, Aleksander Alekseev
-
Re: [PATCH] Silence a new Valgrind warning
Heikki Linnakangas <hlinnaka@iki.fi> — 2026-03-13T15:33:09Z
On 12/03/2026 14:56, Aleksander Alekseev wrote: > Commit 4966bd3ed95e revealed a non-critical memory leak in > ProcessStartupPacket() which Valgrind is very much upset about: > > ``` > 63 (32 direct, 31 indirect) bytes in 1 blocks are definitely lost in > loss record 355 of 800 > at 0x9D260C: palloc (mcxt.c:1411) > by 0x54B3D2: new_list (list.c:137) > by 0x54B8CC: lappend (list.c:344) > by 0x78B41A: ProcessStartupPacket (backend_startup.c:786) > by 0x78A411: BackendInitialize (backend_startup.c:295) > by 0x789F2F: BackendMain (backend_startup.c:110) > by 0x67EEED: postmaster_child_launch (launch_backend.c:268) > by 0x685D50: BackendStartup (postmaster.c:3606) > by 0x6830CF: ServerLoop (postmaster.c:1713) > by 0x682982: PostmasterMain (postmaster.c:1403) > by 0x547DFE: main (main.c:231) > ``` > > The proposed patch silences the warnings. I don't see that warning. What valgrind options did you use? The patch looks good to me. - Heikki
-
Re: [PATCH] Silence a new Valgrind warning
Aleksander Alekseev <aleksander@tigerdata.com> — 2026-03-13T17:30:41Z
Hi Heikki, > I don't see that warning. What valgrind options did you use? > > The patch looks good to me. Here is the script I'm using: https://github.com/afiskon/pgscripts/blob/master/valgrind-meson.sh -- Best regards, Aleksander Alekseev
-
Re: [PATCH] Silence a new Valgrind warning
Peter Geoghegan <pg@bowt.ie> — 2026-03-13T17:33:01Z
On Fri, Mar 13, 2026 at 11:33 AM Heikki Linnakangas <hlinnaka@iki.fi> wrote: > > The proposed patch silences the warnings. > > I don't see that warning. What valgrind options did you use? I have seen this one, though only when --leak-check=yes is passed to Valgrind. -- Peter Geoghegan
-
Re: [PATCH] Silence a new Valgrind warning
Heikki Linnakangas <hlinnaka@iki.fi> — 2026-03-13T21:57:38Z
On 13/03/2026 19:33, Peter Geoghegan wrote: > On Fri, Mar 13, 2026 at 11:33 AM Heikki Linnakangas <hlinnaka@iki.fi> wrote: >>> The proposed patch silences the warnings. >> >> I don't see that warning. What valgrind options did you use? > > I have seen this one, though only when --leak-check=yes is passed to Valgrind. Ok now I see it. Not sure what I was doing wrong earlier. Pushed, thanks Aleksander! - Heikki