http://bugs.winehq.org/show_bug.cgi?id=26102
Summary: pdh/pdh tests shows a couple valgrind warnings Product: Wine Version: 1.3.13 Platform: x86 OS/Version: Linux Status: NEW Keywords: download, source, testcase Severity: minor Priority: P2 Component: pdh AssignedTo: wine-bugs@winehq.org ReportedBy: austinenglish@gmail.com
Invalid read of size 4 at PdhCloseQuery (pdh_main.c:395) by test_PdhOpenQueryA (pdh.c:83) by func_pdh (pdh.c:968) by run_test (test.h:556) by main (test.h:624) Address 0x7f005930 is 0 bytes inside a block of size 32 free'd at notify_free (heap.c:262) by RtlFreeHeap (heap.c:1747) by heap_free (pdh_main.c:62) by destroy_query (pdh_main.c:174) by PdhCloseQuery (pdh_main.c:428) by test_PdhOpenQueryA (pdh.c:80) by func_pdh (pdh.c:968) by run_test (test.h:556) by main (test.h:624)
...
Invalid read of size 4 at PdhCloseQuery (pdh_main.c:395) by test_PdhOpenQueryW (pdh.c:107) by func_pdh (pdh.c:969) by run_test (test.h:556) by main (test.h:624) Address 0x7f005960 is 0 bytes inside a block of size 32 free'd at notify_free (heap.c:262) by RtlFreeHeap (heap.c:1747) by heap_free (pdh_main.c:62) by destroy_query (pdh_main.c:174) by PdhCloseQuery (pdh_main.c:428) by test_PdhOpenQueryW (pdh.c:104) by func_pdh (pdh.c:969) by run_test (test.h:556) by main (test.h:624)
Though, looking at the code, these warnings are caused by: ret = PdhCloseQuery( query ); ok(ret == PDH_INVALID_HANDLE, "PdhCloseQuery failed 0x%08x\n", ret);
e.g., these invalid reads are expected.
Filing a bug so I have something to reference in the valgrind suppression file.
http://bugs.winehq.org/show_bug.cgi?id=26102
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX
--- Comment #1 from Austin English austinenglish@gmail.com 2011-02-14 17:11:17 CST --- WONTFIX, intended behavior.
http://bugs.winehq.org/show_bug.cgi?id=26102
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #2 from Austin English austinenglish@gmail.com 2011-02-14 17:11:23 CST --- Closing.