Thank you for the feedback. Setting -gen-suppressions to all helped resolve
the issues.

On Fri, Jul 14, 2017 at 12:22 PM, Paul Floyd <pa...@free.fr> wrote:

>
> On 14 Jul 2017, at 21:10, Nathan Bahr wrote:
>
> > Hi,
> >
> > I made a simple Qt5 application with a single menu item and valgrind is
> configured to print suppression code.
> >
> > If I open and close a menu, valgrind holds onto the QMenu object and
> prompts to print supression code. This causes the whole setup to hang where
> I cannot interact with the application or command line interface. I can
> force-quit the application, which exits out of the command line. The
> application does not hang if gen-suppressions=no.
> >
> > Is there any way to set valgrind to automatically generate suppression
> code instead of prompting? Or to make it from the following trace?
>
> Hi
>
> You can use the option
>
>     --gen-suppressions=no|yes|all    print suppressions for errors? [no]
>
> This will generate a suppression block after the usual stacktrace,
> something like this:
>
> {
>    <insert_a_suppression_name_here>
>    Memcheck:Leak
>    match-leak-kinds: reachable
>    fun:malloc
>    fun:main
> }
>
> If you do reuse the generated suppressions then you will need to generate
> some sort of unique name.
>
> A+
> Paul
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Valgrind-users mailing list
> Valgrind-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/valgrind-users
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to