report just leak errors (detect just leak errors in result.txt)

28 views
Skip to first unread message

Juaneme

unread,
Jun 3, 2020, 2:30:49 PM6/3/20
to Dr. Memory Users

Hi,

I would like just report leak errors in the result file, I tested with : 
drmemory -leaks_only --myapp.exe

But not working, reports all errors, any suggestions

Regards

Derek Bruening

unread,
Jun 3, 2020, 4:55:50 PM6/3/20
to drmemor...@googlegroups.com
Please clarify what "reports all errors" means: provide actual output.  -leaks_only does still report warnings, invalid heap arguments, leaks, and possible leaks, if that is what you mean.  It does not report unaddressable accesses or uninitalized reads.

--

---
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/4e5cf0fa-f138-474e-9b19-17a43a70705d%40googlegroups.com.
Message has been deleted

Juaneme

unread,
Jun 4, 2020, 7:40:02 AM6/4/20
to Dr. Memory Users

Ah ok, actually I would not report errors (invalid heap arguments) in the report
ERRORS FOUND:
      0 unique,     0 total unaddressable access(es)
      8 unique,     8 total uninitialized access(es)
     28 unique,    35 total invalid heap argument(s)
      0 unique,     0 total GDI usage error(s)
      0 unique,     0 total handle leak(s)
      0 unique,     0 total warning(s)
     35 unique,    35 total,    280 byte(s) of leak(s)
      0 unique,     0 total,      0 byte(s) of possible leak(s)

Is there any way to report only (leaks) errors without (invalid heap arguments) errors ?

Derek Bruening

unread,
Jun 4, 2020, 11:09:46 AM6/4/20
to drmemor...@googlegroups.com
It might require a series of options being disabled: on Windows maybe sthg like -no_check_invalid_frees -no_check_delete_mismatch -no_check_heap_mismatch -no_check_gdi?  Look through the option list and turn off any error reports you are not interested in.

--

---
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.

Juaneme

unread,
Jun 4, 2020, 5:29:35 PM6/4/20
to Dr. Memory Users

Thanks, I tried to use : 
drmemory -no_check_invalid_frees -- myapp.exe


I get the result :
ERRORS FOUND:
      0 unique,     0 total unaddressable access(es)
      1 unique,     1 total uninitialized access(es)
      0 unique,     0 total GDI usage error(s)
      0 unique,     0 total handle leak(s)
      0 unique,     0 total warning(s)
     22 unique,    22 total,    176 byte(s) of leak(s)
      0 unique,     0 total,      0 byte(s) of possible leak(s)

seems fine, but still report errors (invalid heap arguments) in the result.txt
Error #13: INVALID HEAP ARGUMENT to free 0x00000000070627f0
# 0 replace_operator_delete_nothrow                                            [d:\drmemory_package\common\alloc_replace.c:2975]
My aim is to have a min report that contains only the errors (leaks), I want to eliminate (invalid heap arguments) errors because they are a lot

Thanks

On Wednesday, June 3, 2020 at 7:30:49 PM UTC+1, Juaneme wrote:
Reply all
Reply to author
Forward
0 new messages