trying to figure out how to blacklist things

83 views
Skip to first unread message

Bart Vandewoestyne

unread,
Feb 12, 2018, 6:00:20 AM2/12/18
to Dr. Memory Users
Hello all,

I am currently trying out drmemory.  When running it on our application, I see a lot of errors that I think are either false positives, or are errors in libraries we use, but not in our own code.  I am trying to figure out how to blacklist these.  I came across http://drmemory.org/docs/page_running.html#sec_potential_errors and this is the command line I'm currently using (slightly simplified for convenience):

drmemory -lib_blacklist "D:\path\to\dlls\we\do\not\want\to\see\errors\of\*.dll","f:\dd\vctools\crt\vcstartup\src\startup\dll_dllmain.*" -lib_blacklist_frames 13 -- OurApplication.exe

But I still see Errors reported like

~~Dr.M~~ Error #450: INVALID HEAP ARGUMENT to free 0x00418498
~~Dr.M~~ # 0 replace_free                                    [d:\drmemory_package\common\alloc_replace.c:2706]
~~Dr.M~~ # 1 ucrtbased.dll!initterm_e                       +0x566    (0x00628357 <ucrtbased.dll+0xb8357>)
~~Dr.M~~ # 2 ucrtbased.dll!initterm_e                       +0x152    (0x00627f43 <ucrtbased.dll+0xb7f43>)
~~Dr.M~~ # 3 ucrtbased.dll!initterm_e                       +0x202    (0x00627ff3 <ucrtbased.dll+0xb7ff3>)
~~Dr.M~~ # 4 ucrtbased.dll!execute_onexit_table             +0x19     (0x0062840a <ucrtbased.dll+0xb840a>)
~~Dr.M~~ # 5 QtXmlPatternsd4.dll!__scrt_dllmain_uninitialize_c [f:\dd\vctools\crt\vcstartup\src\utility\utility.cpp:395]
~~Dr.M~~ # 6 QtXmlPatternsd4.dll!dllmain_crt_process_detach  [f:\dd\vctools\crt\vcstartup\src\startup\dll_dllmain.cpp:107]
~~Dr.M~~ # 7 QtXmlPatternsd4.dll!dllmain_crt_dispatch        [f:\dd\vctools\crt\vcstartup\src\startup\dll_dllmain.cpp:134]
~~Dr.M~~ # 8 QtXmlPatternsd4.dll!dllmain_dispatch            [f:\dd\vctools\crt\vcstartup\src\startup\dll_dllmain.cpp:207]
~~Dr.M~~ # 9 QtXmlPatternsd4.dll!_DllMainCRTStartup          [f:\dd\vctools\crt\vcstartup\src\startup\dll_dllmain.cpp:248]
~~Dr.M~~ #10 ntdll.dll!RtlQueryEnvironmentVariable          +0x244    (0x77d29344 <ntdll.dll+0x39344>)
~~Dr.M~~ #11 ntdll.dll!LdrShutdownProcess                   +0x140    (0x77d48f08 <ntdll.dll+0x58f08>)
~~Dr.M~~ #12 ntdll.dll!RtlExitUserProcess                   +0x73     (0x77d48daa <ntdll.dll+0x58daa>)
~~Dr.M~~ #13 KERNEL32.dll!ExitProcess                       +0x14     (0x776b79c5 <KERNEL32.dll+0x179c5>)
~~Dr.M~~ #14 ucrtbased.dll!wassert                          +0x397    (0x00627af8 <ucrtbased.dll+0xb7af8>)
~~Dr.M~~ #15 ucrtbased.dll!wassert                          +0x32e    (0x00627a8f <ucrtbased.dll+0xb7a8f>)
~~Dr.M~~ #16 ucrtbased.dll!Exit                             +0x11     (0x00627c92 <ucrtbased.dll+0xb7c92>)
~~Dr.M~~ #17 ucrtbased.dll!abort                            +0x69     (0x00622bda <ucrtbased.dll+0xb2bda>)
~~Dr.M~~ #18 ucrtbased.dll!terminate                        +0x7f     (0x00622010 <ucrtbased.dll+0xb2010>)
~~Dr.M~~ #19 __scrt_unhandled_exception_filter               [f:\dd\vctools\crt\vcstartup\src\utility\utility_desktop.cpp:75]
~~Dr.M~~ Note: @0:00:09.085 in thread 10820
~~Dr.M~~ Note: next higher malloc: 0x004188c0-0x004188e0

which I think are either false positives or errors in QtXMLPatternsd4.dll that I don't want to see because that's a library that we use and I don't want to see errors coming from the libraries we use.

How can I blacklist the above?  I thought that specifying "f:\dd\vctools\crt\vcstartup\src\startup\dll_dllmain.*" would work, but it doesn't?

Kind regards,
Bart

Derek Bruening

unread,
Feb 14, 2018, 12:00:16 AM2/14/18
to drmemor...@googlegroups.com
The lib_blacklist matches against the dll path, not the source file path.

--

---
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-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages