Hi - I'm new to valgrind. I'm using valgrind 3.5 and gdb 7.01. When I run a program with stderr to the screen and stdio to a file, valgrind and gdb work fine. But when I run the same program with stderr and stdio to the same file, gdb can't attach to the process (which results in a defunct process.) Here is the command: valgrind --tool=memcheck --leak-check=full --show-reachable=yes --db-attach=yes Any help would be greatly appreciated. -- Cinaed |
|
From: tom f. <tf...@al...> - 2010-02-03 05:34:30
|
Kenneth Simpson <cinaed@Altos-DA.COM> writes: > When I run a program with stderr to the screen and stdio to a file, valgrind > and gdb work fine. > > But when I run the same program with stderr and stdio to the same file, gdb c > an't attach to the process (which results in a defunct process.) > > Here is the command: > > valgrind --tool=memcheck --leak-check=full --show-reachable=yes --db-attac > h=yes Does using "tee" instead of a simple redirect help? -tom |