DynamoRIO / DynamoRIO/drmemory
Missing potential error for handle test
- Dominant language
- C
- Stars
- 2.7k
- Forks
- 290
- PR merge metrics
- No merged PRs in 30d
Description
_From [zhao...@google.com](https://code.google.com/u/106321947286816917100/) on November 21, 2013 15:34:35_
Running a trimmed version of handle test where only keep
hFind = FindFirstFile(buf, &ffd);
and
FindClose(hFind);
$ ./bin/drmemory.exe -debug -- ./tests/handle.exe
WARNING: using debug DynamoRIO since release not found
~~Dr.M~~ Dr. Memory version 1.6.1628
~~Dr.M~~ Running "./tests/handle.exe"
~~Dr.M~~
~~Dr.M~~ NO ERRORS FOUND:
~~Dr.M~~ 0 unique, 0 total unaddressable access(es)
~~Dr.M~~ 0 unique, 0 total uninitialized access(es)
~~Dr.M~~ 0 unique, 0 total invalid heap argument(s)
~~Dr.M~~ 0 unique, 0 total GDI usage error(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~~ 1 potential leak(s) (suspected false positives)
~~Dr.M~~ (details: D:\src\cygwin\home\zhaoqin\Workspace\DrMemory\builds\build_x86_drm_dbg.git\logs\DrMemory-handle.exe.9344.000\potential_errors.txt)
~~Dr.M~~ 0 unique, 0 total, 0 byte(s) of still-reachable allocation(s)
~~Dr.M~~ (re-run with "-show_reachable" for details)
~~Dr.M~~ Details: D:\src\cygwin\home\zhaoqin\Workspace\DrMemory\builds\build_x86_drm_dbg.git\logs\DrMemory-handle.exe.9344.000\results.txt
It says there is a potential leak, but it is not in the potential_errors.txt
$ cat logs/DrMemory-handle.exe.9344.000/potential_errors.txt
Dr. Memory version 1.6.1628 build 1 built on Nov 21 2013 16:54:53
Dr. Memory errors that are likely to be false positives, for pid 9344: "handle.exe"
These errors matched the blacklist 'C:\Windows*.d??' for 4 frames.
Run with -lib_blacklist_frames 0 to treat these as regular errors.
If these are all false positives and your focus is unaddressable errors, consider running with -light to skip all uninitialized reads and leaks for higher performance.
DUPLICATE POTENTIAL ERROR COUNTS:
NO POTENTIAL ERRORS FOUND:
0 unique, 0 total potential unaddressable access(es)
0 unique, 0 total potential uninitialized access(es)
0 unique, 0 total potential invalid heap argument(s)
0 unique, 0 total potential GDI usage error(s)
0 unique, 0 total potential warning(s)
0 unique, 0 total, 0 byte(s) of potential leak(s)
0 unique, 0 total, 0 byte(s) of potential possible leak(s)
Details: D:\src\cygwin\home\zhaoqin\Workspace\DrMemory\builds\build_x86_drm_dbg.git\logs\DrMemory-handle.exe.9344.000\potential_errors.txt
_Original issue: http://code.google.com/p/drmemory/issues/detail?id=1388_
Contributor guide
Assessment
This issue has not been assessed yet.