suppress results.txt after run

44 views
Skip to first unread message

Joe Martin

unread,
May 11, 2023, 4:09:41 AM5/11/23
to Dr. Memory Users
hello everyone.

how can i suppress the results.txt from appearing after a run.

i am iterating through a list of inputs
========================================
for /f "tokens=* delims=" %i in (permutations.txt) do (I:\DrMemory\bin\drmemory c_program.exe %i >> output.txt)  
I:\.cprogs\permutations>for /f "tokens=* delims=" %i in (permutations.txt) do (I:\DrMemory\bin\drmemory c_program.exe %i >> output.txt)

I:\.cprogs\permutations>(I:\DrMemory\bin\drmemory c_program.exe 1 2 3 4 5  1>>output.txt )
~~Dr.M~~ Dr. Memory version 2.5.0
~~Dr.M~~ Running "c_program.exe 1 2 3 4 5"
~~Dr.M~~ Using system call file I:\DrMemory\drmemory\logs\symcache\syscalls_wow64.txt
~~Dr.M~~
~~Dr.M~~ Error #1: INVALID HEAP ARGUMENT to free 0x016906b0
~~Dr.M~~ # 0 replace_RtlFreeHeap                     [d:\a\drmemory\drmemory\common\alloc_replace.c:3852]
~~Dr.M~~ # 1 aswhook.dll!?                          +0x0      (0x74b9aa1f <aswhook.dll+0xaa1f>)
~~Dr.M~~ # 2 aswhook.dll!?                          +0x0      (0x74b9ac7b <aswhook.dll+0xac7b>)
~~Dr.M~~ # 3 ntdll.dll!LdrxCallInitRoutine
~~Dr.M~~ # 4 ntdll.dll!LdrpCallInitRoutine
~~Dr.M~~ # 5 ntdll.dll!LdrShutdownProcess
~~Dr.M~~ # 6 ntdll.dll!RtlExitUserProcess
~~Dr.M~~ # 7 KERNEL32.dll!ExitProcessImplementation
~~Dr.M~~ # 8 ucrtbase.dll!exit                      +0xe3     (0x76c53074 <ucrtbase.dll+0x43074>)
~~Dr.M~~ # 9 ucrtbase.dll!exit                      +0x10     (0x76c52fa1 <ucrtbase.dll+0x42fa1>)
~~Dr.M~~ #10 __tmainCRTStartup
~~Dr.M~~ #11 mainCRTStartup
~~Dr.M~~ #12 KERNEL32.dll!BaseThreadInitThunk
~~Dr.M~~ Note: @0:00:00.874 in thread 2460
~~Dr.M~~
~~Dr.M~~ ERRORS FOUND:
~~Dr.M~~       0 unique,     0 total unaddressable access(es)
~~Dr.M~~       0 unique,     0 total uninitialized access(es)
~~Dr.M~~       1 unique,     1 total invalid heap argument(s)
~~Dr.M~~       0 unique,     0 total GDI usage error(s)
~~Dr.M~~       0 unique,     0 total handle leak(s)
~~Dr.M~~       0 unique,     0 total warning(s)
~~Dr.M~~       0 unique,     0 total,      0 byte(s) of leak(s)
~~Dr.M~~       0 unique,     0 total,      0 byte(s) of possible leak(s)
~~Dr.M~~ ERRORS IGNORED:
~~Dr.M~~      16 unique,    21 total,  10137 byte(s) of still-reachable allocation(s)
~~Dr.M~~          (re-run with "-show_reachable" for details)
~~Dr.M~~ Details: I:\DrMemory\drmemory\logs\DrMemory-c_program.exe.6120.000\results.txt

I:\.cprogs\permutations>(I:\DrMemory\bin\drmemory c_program.exe 5 4 3 2 1  1>>output.txt )
The process cannot access the file because it is being used by another process.

I:\.cprogs\permutations>(I:\DrMemory\bin\drmemory c_program.exe 2 3 4 5 1  1>>output.txt )
The process cannot access the file because it is being used by another process.

I:\.cprogs\permutations>(I:\DrMemory\bin\drmemory c_program.exe 3 4 5 1 2  1>>output.txt )
The process cannot access the file because it is being used by another process.

I:\.cprogs\permutations>

===========================================
but the process is blocked by the generation of the results.txt file
after the first run

thanks


Derek Bruening

unread,
May 11, 2023, 2:21:00 PM5/11/23
to drmemor...@googlegroups.com
IIRC the -batch option avoids popping up notepad with results.txt.  This is documented here: https://drmemory.org/page_running.html#sec_results and here: https://drmemory.org/page_options.html

--

---
You received this message because you are subscribed to the Google Groups "Dr. Memory Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drmemory-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drmemory-users/dbbe41b6-a727-41a2-aef7-15b00ead6cf1n%40googlegroups.com.

Joe Martin

unread,
May 11, 2023, 7:25:43 PM5/11/23
to Dr. Memory Users
thank you very much Derek. 
Reply all
Reply to author
Forward
0 new messages