Scuri,

Thanks for the file which suppressed some of the messages but not most
of them. It looks like I need to find or create my own suppression
files to match the versions of GTK and friends that I am using.
Valgrind seems to be reporting real memory leaks which increase in
size slightly when iupopen and iupclose are called repeatedly within a
long running program. It would appear the GTK folk have assumed that a
program will shut down after the GUI has shut down and therefore they
don't need to bother freeing all of the memory they used. At least the
leaked memory seems to get largely reused when reopening although I
have not tested thoroughly.

It is clearly a GTK issue that IUP can do nothing about. Shifting to
another platform when checking for memory leaks in my own code may be
the easiest way round it. Thanks again for your help,

regards,

Andy.

On Fri, 22 Feb 2019 at 12:09, Antonio Scuri <antonio.sc...@gmail.com> wrote:
>
>   We use the following:
>
> export VALGRIND_OPTS="--tool=memcheck -v --leak-check=full 
> --show-reachable=yes --num-callers=30 --leak-resolution=high --error-limit=no 
> --suppressions=gtk.supp --track-origins=yes"
>
>   The gtk.supp suppression file is attached.
>
> Best,
> Scuri
>
>
> Em qui, 21 de fev de 2019 às 16:42, Honest Guvnor <honestguv...@gmail.com> 
> escreveu:
>>
>> Scuri,
>>
>> Many thanks for the link and diagnosing the problem. I can confirm the
>> valgrind messages do look to be referring to GTK. Unfortunately trying
>> various combinations of flags suggested on the linked page and a few
>> others has not fixed the problem. If it is not too much trouble can
>> you please let me have the combination of flags that works for you,
>>
>> regards,
>>
>> Andy.
>>
>> On Thu, 21 Feb 2019 at 16:29, Antonio Scuri <antonio.sc...@gmail.com> wrote:
>> >
>> >   Hi,
>> >
>> >   No problem. Valgrind has some issues with GTK. We use it here too. 
>> > Please take a look at this page:
>> >
>> > https://wiki.gnome.org/Valgrind
>> >
>> > Best,
>> > Scuri
>> >
>> >
>> > Em qui, 21 de fev de 2019 às 11:17, Honest Guvnor <honestguv...@gmail.com> 
>> > escreveu:
>> >>
>> >> Hi,
>> >>
>> >> Ubuntu 16.04.5 LTS 64-bit
>> >> IUP 3.21 built from sources.
>> >> valgrind 3.11.0
>> >>
>> >> When running the small hello world example valgrind is reporting less
>> >> than 40% of the memory allocated being freed by IupClose(). Is this
>> >> expected behaviour? Is valgrind confused or is the memory genuinely
>> >> not being freed? Has iup and/or valgrind been fixed in later versions
>> >> of the software?
>> >>
>> >> I am getting on nicely with iup and so apologies for the somewhat
>> >> negative opening post,
>> >>
>> >> regards,
>> >>
>> >> Andy.
>> >>
>> >>
>> >> _______________________________________________
>> >> Iup-users mailing list
>> >> Iup-users@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/iup-users
>> >
>> > _______________________________________________
>> > Iup-users mailing list
>> > Iup-users@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/iup-users
>>
>>
>> _______________________________________________
>> Iup-users mailing list
>> Iup-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/iup-users
>
> _______________________________________________
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users


_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to