Comments (8)
I have contacts at Intel so I can pass it along. Does it happen even if the DLL is unloaded? I take it there is no uninitialize function?
Avoiding resource leaks at shutdown is a hassle and sometimes not worth the trouble, but I can report it.
from uiforetw.
Does it happen even if the DLL is unloaded?
Eh, you mean not loaded? No, I don't think so.
I take it there is no uninitialize function?
Nope, no documented function, and no exported function.
Reporting would be nice :)
from uiforetw.
I meant does it happen even if the DLL is loaded and then unloaded.
If you want the Intel developers to investigate you probably need to create a minimal repro (preferably a single source file or a very small project) and precise instructions on how to repro the problem. For instance, specifying where to get App verifier, how to use it, and having something simpler than all of UIforETW to reproduce the problem.
from uiforetw.
I meant does it happen even if the DLL is loaded and then unloaded.
No, if I do a LoadLibrary
followed only by a FreeLibrary
, then there's no leak.
If you want the Intel developers to investigate you probably need to create a minimal repro (preferably a single source file or a very small project) and precise instructions on how to repro the problem. For instance, specifying where to get App verifier, how to use it, and having something simpler than all of UIforETW to reproduce the problem.
Good idea, seems obvious in retrospect (duh on my part!). I've got a really simple minimal repro already thrown together. Shall I simply paste it into a comment?
from uiforetw.
Pasting into a comment could work, but might be unwieldy by the time you have repro instructions and the necessary build commands. A .zip file with instructions and .vcxproj/.sln files would be one good option, or a github repo to allow tweaking it (I can test the instructions to make sure they work and provide feedback).
Be aware that a handle leak may be by design or at least not treated as high priority. Perfect cleanliness during shutdown is often pointless or not practical (see for example crbug.com/490716 which explicitly recommends calling TerminateProcess rather than paying the cost for a theoretically ideal but sometimes expensive shutdown).
from uiforetw.
Be aware that a handle leak may be by design or at least not treated as high priority. Perfect cleanliness during shutdown is often pointless or not practical (see for example crbug.com/490716 which explicitly recommends calling TerminateProcess rather than paying the cost for a theoretically ideal but sometimes expensive shutdown).
Oh I totally agree, for application-level code, that is. The Intel Power Gadget API is third party code, and this is nowhere documented. If a program loads the library, initializes it, and frees it, then it's dealing with a mystery leak. It's quite easy to make my repro trigger this problem. Here it is leaking 6,730 handles:
6,730
, next to Normal
is Task Manager's Handles
column.
...and all it took was:
const size_t maxEnergyLib = 10000u;
for ( size_t i = 0u; i < maxEnergyLib; ++i ) {
doEnergyLib( );
}
By leaking thousands of handles, we don't need Application Verifier to demonstrate the presence of a leak, but using Application Verifier will (of course) point to the offending HANDLE
's allocation stack.
from uiforetw.
Here's a repo: https://github.com/ariccio/EnergyLibLeak
from uiforetw.
Thanks. I've passed it along. Good work.
from uiforetw.
Related Issues (20)
- Could UIForETW help in a case of getting only the necessary CPU/Process data? HOT 3
- Do you know how to simulate win10 `perfmon.exe` to monitor the disk operation of a process? HOT 3
- No data and empty presets in new WPA even after 'Copy Startup Profiles' HOT 2
- Broken File I/O recording? HOT 7
- Feature Request for Remote start/stop HOT 2
- UIforETW shortcut doesn't launch from within a folder named 'UI for ETW' HOT 5
- -stackwalk: Unknown flag 'HandleCreate' HOT 3
- Cannot fine exe file HOT 5
- UI for ETW version 1.56 - Locks up when I choose to Start Tracing. HOT 2
- Security Policy violation Binary Artifacts HOT 26
- 需要翻译!need translation! HOT 1
- Windows Performance Analyzer stops at 99%
- This not maybe issue, but I'm asking for help, someone who know how read results from UIforETW HOT 1
- UIforETW does not start if windows 10 sdk is not in default path HOT 15
- Record CPU Core Frequency HOT 1
- ETW Only showing 1 process HOT 4
- VirusTotal reports some detections in etwpackage1.58.zip HOT 7
- Need help! HOT 4
- App is currently showing a spurious update notification HOT 1
- Chrome special keyword flags are outdated
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uiforetw.