DynamoRIO / DynamoRIO/drmemory

Uninits and leaks below WINMM.dll!waveOutGetNumDevs

Open
#454 2 comments 0 reactions 0 assignees View on GitHub
Bug-FalsePositive Migrated OpSys-Windows Priority-Low
Dominant language
C
Stars
2.7k
Forks
290
PR merge metrics
No merged PRs in 30d

Description

_From [timurrrr@google.com](https://code.google.com/u/timurrrr@google.com/) on June 10, 2011 11:48:18_

Happens on Chromium media_unittests http://build.chromium.org/p/chromium.fyi/builders/Windows%20Tests%20%28DrMemory%29/builds/4125/steps/memory%20test%3A%20media/logs/stdio Repro:
#

#include
#include

#pragma comment(lib, "winmm.lib")

#include

int main() {
printf("Audio devices are %spresent\n", (::waveOutGetNumDevs() != 0) ? "" : "not ");
return 0;
}
#

w/o symbols they look like this:
Error `#1`: UNINITIALIZED READ: reading register eax
@0:00:04.387 in thread 1732
0x76b464d2 WINMM.dll!waveOutMessage
0x76b463de WINMM.dll!waveOutMessage
0x76b46487 WINMM.dll!waveOutMessage
0x76b45fbb WINMM.dll!waveOutGetNumDevs
0x0040132d test.exe!main
test.cpp:9
...

...
Error `#87`: LEAK 228 direct bytes 0x00157928-0x00157a0c + 32 indirect bytes
0x77e781f9 RPCRT4.dll!I_RpcBCacheFree
0x77e781d0 RPCRT4.dll!I_RpcBCacheFree
0x77e87685 RPCRT4.dll!I_RpcBindingIsClientLocal
0x77e87651 RPCRT4.dll!I_RpcBindingIsClientLocal
0x77e7e959 RPCRT4.dll!RpcBindingFromStringBindingW
0x76b46a1c WINMM.dll!waveOutMessage
0x76b46835 WINMM.dll!waveOutMessage
0x76b45fbb WINMM.dll!waveOutGetNumDevs
0x0040132d test.exe!main
test.cpp:9

With symbols they look like this:
Error `#1`: UNINITIALIZED READ: reading register eax
@0:00:02.451 in thread 1528
0x76b464d2 WINMM.dll!winmmGetPnpInfo
0x76b463de WINMM.dll!ClientPnpChange
0x76b46487 WINMM.dll!ClientUpdatePnpInfo
0x76b45fbb WINMM.dll!waveOutGetNumDevs
0x0040132d test.exe!main
test.cpp:9
...

...
Error `#92`: LEAK 228 direct bytes 0x00157920-0x00157a04 + 32 indirect bytes
0x77e781f9 RPCRT4.dll!AllocWrapper
0x77e781d0 RPCRT4.dll!operator new
0x77e87685 RPCRT4.dll!LrpcCreateBindingHandle
0x77e87651 RPCRT4.dll!DCE_BINDING::CreateBindingHandle
0x77e7e959 RPCRT4.dll!RpcBindingFromStringBindingW
0x76b46a1c WINMM.dll!AudioSrvBinding
0x76b46835 WINMM.dll!ClientUpdatePnpInfo
0x76b45fbb WINMM.dll!waveOutGetNumDevs
0x0040132d test.exe!main
test.cpp:9

_Original issue: http://code.google.com/p/drmemory/issues/detail?id=454_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.