Re: Fix some memory leaks in ecpg.addons

2023-11-29 Thread Andres Freund
Hi, On 2023-11-08 22:00:00 +0300, Alexander Lakhin wrote: > Hello Tristan, > > 08.11.2023 20:37, Tristan Partin wrote: > > Are people using some suppression file or setting ASAN_OPTIONS to something? > > > > I use the following: > ASAN_OPTIONS=detect_leaks=0:abort_on_error=1:print_stacktrace=1:\

Re: Fix some memory leaks in ecpg.addons

2023-11-29 Thread Andres Freund
Hi, On 2023-11-08 11:37:46 -0600, Tristan Partin wrote: > On Wed Nov 8, 2023 at 11:18 AM CST, Michael Meskes wrote: > > Am Mittwoch, dem 08.11.2023 um 12:07 -0500 schrieb Tom Lane: > > > "Tristan Partin" writes: > > > > clang and gcc both now support -fsanitize=address,undefined. These > > > >

Re: Fix some memory leaks in ecpg.addons

2023-11-15 Thread Tristan Partin
On Wed Nov 8, 2023 at 11:52 AM CST, Tom Lane wrote: "Tristan Partin" writes: > On Wed Nov 8, 2023 at 11:18 AM CST, Michael Meskes wrote: >> Agreed, it's not exactly uncommon for tools like ecpg to not worry >> about memory. After all it gets freed when the program ends. > In the default

Re: Fix some memory leaks in ecpg.addons

2023-11-08 Thread Alexander Lakhin
Hello Tristan, 08.11.2023 20:37, Tristan Partin wrote: Are people using some suppression file or setting ASAN_OPTIONS to something? I use the following: ASAN_OPTIONS=detect_leaks=0:abort_on_error=1:print_stacktrace=1:\ disable_coredump=0:strict_string_checks=1:check_initialization_order=1:\

Re: Fix some memory leaks in ecpg.addons

2023-11-08 Thread Tom Lane
"Tristan Partin" writes: > On Wed Nov 8, 2023 at 11:18 AM CST, Michael Meskes wrote: >> Agreed, it's not exactly uncommon for tools like ecpg to not worry >> about memory. After all it gets freed when the program ends. > In the default configuration of AddressSanitizer, I can't even complete >

Re: Fix some memory leaks in ecpg.addons

2023-11-08 Thread Tristan Partin
On Wed Nov 8, 2023 at 11:18 AM CST, Michael Meskes wrote: Am Mittwoch, dem 08.11.2023 um 12:07 -0500 schrieb Tom Lane: > "Tristan Partin" writes: > > clang and gcc both now support -fsanitize=address,undefined. These > > are > > really useful to me personally when trying to debug issues. > >

Re: Fix some memory leaks in ecpg.addons

2023-11-08 Thread Michael Meskes
Am Mittwoch, dem 08.11.2023 um 12:07 -0500 schrieb Tom Lane: > "Tristan Partin" writes: > > clang and gcc both now support -fsanitize=address,undefined. These > > are > > really useful to me personally when trying to debug issues. > > Unfortunately ecpg code has a ton of memory leaks, which

Re: Fix some memory leaks in ecpg.addons

2023-11-08 Thread Tom Lane
"Tristan Partin" writes: > clang and gcc both now support -fsanitize=address,undefined. These are > really useful to me personally when trying to debug issues. > Unfortunately ecpg code has a ton of memory leaks, which makes builds > really painful. It would be great to fix all of them, but I

Fix some memory leaks in ecpg.addons

2023-11-08 Thread Tristan Partin
clang and gcc both now support -fsanitize=address,undefined. These are really useful to me personally when trying to debug issues. Unfortunately ecpg code has a ton of memory leaks, which makes builds really painful. It would be great to fix all of them, but I don't have the patience to try to