https://bugs.kde.org/show_bug.cgi?id=485778

--- Comment #2 from Mark Wielaard <m...@klomp.org> ---
Created attachment 168679
  --> https://bugs.kde.org/attachment.cgi?id=168679&action=edit
core errors gensuppressions support

Initial implementation for --gen-suppressions support for core errors

With this the testcase ../../vg-in-place --track-fds=all --tool=none
--gen-suppressions=all ./fdleak_creat produces:

==381147== Bad option: --gen-suppressions=yes
==381147== Can't use --gen-suppressions= with Nulgrind
==381147== because it doesn't generate errors.
==381147== Use --help for more information or consult the user manual.
==381147== Nulgrind, the minimal Valgrind tool
==381147== Copyright (C) 2002-2017, and GNU GPL'd, by Nicholas Nethercote.
==381147== Using Valgrind-3.23.0.GIT and LibVEX; rerun with -h for copyright
info
==381147== Command: ./fdleak_creat
==381147== 
==381147== 
==381147== FILE DESCRIPTORS: 4 open (3 std) at exit.
==381147== Open file descriptor 3: /tmp/file.381147
==381147==    at 0x495B9C4: creat (creat64.c:28)
==381147==    by 0x401249: main (fdleak_creat.c:13)
==381147== 
{
   <insert_a_suppression_name_here>
   CoreError:FdNotClosed
   fun:creat
   fun:main
}
==381147== Open file descriptor 2: /dev/pts/4
==381147==    <inherited from parent>
==381147== 
==381147== (No origin, error cannot be suppressed)
==381147== Open file descriptor 1: /dev/pts/4
==381147==    <inherited from parent>
==381147== 
==381147== (No origin, error cannot be suppressed)
==381147== Open file descriptor 0: /dev/pts/4
==381147==    <inherited from parent>
==381147== 
==381147== (No origin, error cannot be suppressed)
==381147==

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to