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

            Bug ID: 471936
           Summary: Do not generate (or more likely unlink) log files
                    associated with --trace-children-skip
    Classification: Developer tools
           Product: valgrind
           Version: 3.22 GIT
          Platform: Other
                OS: Other
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: memcheck
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Consider this small example:

/* system.c */
#include <stdlib.h>

int main(void)
{
   system("ls");
}

If I run this under memcheck with
valgrind --trace-children=yes --log-file=mc.%p.log ./system

Then I get two files, one for 'system' and one for 'ls'

If I add --trace-children-skip=*/ls then I still get two files.

Now the second one is that created after the fork() done by system() so it is
also for 'system', but since we're not tracing children Valgrind directly calls
'execve()' causing the file to be truncated (when we do trace children this
stub would be overwritten by the log file for "ls").

I find these files pretty useless and annoying. It would be nice to find a way
to remove them.

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

Reply via email to