|
From: Paul F. <pa...@fr...> - 2017-07-14 19:22:41
|
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
|