|
From: Aaron S. <gng...@gm...> - 2012-01-16 07:08:36
|
Hey All, quick question, I'm using valgrind as part of a build process and need the output from valgrind to go to a file, unfortunately the --log-file option doesn't seem to do what I'm looking for and can't figure out which options will put output to a file: Here's a sample of what i run: /usr/local/bin/valgrind --leak-check=full --track-origins=yes --show-reachable=yes --dsymutil=yes --suppressions=test/valgrind.suppress test/test_gwser --log-file=test/test_gwser.valgrind.out I immediately start seeing output instead of it going to a file: ==57811== Memcheck, a memory error detector ==57811== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al. ==57811== Using Valgrind-3.8.0.SVN and LibVEX; rerun with -h for copyright info ==57811== Command: test/test_gwser --log-file=test/test_gwser.valgrind.out Is there anyway to make valgrind write to a file (without using shell redirects?) Thanks! |
|
From: Steve F. <sp...@gm...> - 2012-01-16 08:05:15
|
You seem to be passing the --log-file option to your executable, not valgrind. Put the executable and its options last on the command line. On Sun, Jan 15, 2012 at 11:08 PM, Aaron Smith <gng...@gm...> wrote: > Hey All, > > quick question, I'm using valgrind as part of a build process and need the > output from valgrind to go to a file, unfortunately the --log-file option > doesn't seem to do what I'm looking for and can't figure out which options > will put output to a file: > > Here's a sample of what i run: > > /usr/local/bin/valgrind --leak-check=full --track-origins=yes > --show-reachable=yes --dsymutil=yes --suppressions=test/valgrind.suppress > test/test_gwser --log-file=test/test_gwser.valgrind.out > > I immediately start seeing output instead of it going to a file: > > ==57811== Memcheck, a memory error detector > ==57811== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al. > ==57811== Using Valgrind-3.8.0.SVN and LibVEX; rerun with -h for copyright > info > ==57811== Command: test/test_gwser --log-file=test/test_gwser.valgrind.out > > Is there anyway to make valgrind write to a file (without using shell > redirects?) > > Thanks! > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Mar 27 - Feb 2 > Save $400 by Jan. 27 > Register now! > http://p.sf.net/sfu/rsa-sfdev2dev2 > _______________________________________________ > Valgrind-users mailing list > Val...@li... > https://lists.sourceforge.net/lists/listinfo/valgrind-users > |