On vendredi 14 juillet 2017 21:10:50 CEST 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.

This is probably due to QMenu grabbing keyboard/mouse on X11?
You can disable this by passing -nograb to the application.

> Is there any way to set valgrind to automatically generate suppression code
> instead of prompting? 

Yes, --gen-suppressions=all

-- 
David Faure, fa...@kde.org, http://www.davidfaure.fr
Working on KDE Frameworks 5


------------------------------------------------------------------------------
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