-
Notifications
You must be signed in to change notification settings - Fork 264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LEAK suppressions vs. POSSIBLE LEAK suppressions #273
Comments
From bruen...@google.com on January 19, 2011 10:27:24 If an app has a set of heap objects allocated at one particular call site for which it only stores a pointer to the middle (for whatever purpose, and that doesn't match Dr. Memory's standard possible leak heuristics), it would want to suppress any possible leaks reported for that call site. However, the app wants to know when it has a real leak for that call site, so it does NOT want to suppress definitely lost leaks. If you find yourself often suppressing both maybe a new type of suppression should be added that matches both: but it seems that specifying just possible leaks is valuable, and I would imagine is the most common type of leak suppression. What kind of scenario are you thinking of that produces both possible and definite leaks from the same call site where you want to suppress both types? In general when you suppress definite leaks, are you suppressing b/c you're unable or unwilling to fix but you acknowledge they're leaks, or b/c they're false positives? |
From timurrrr@google.com on January 21, 2011 05:04:47
In Chromium, the following scenario is usual: It's very often the case when the memory sheriff is not familiar at all with the code with errors so he can't fix it as soon as the dev can.
1 0x7c809a7f LocalAlloc KERNEL32.dll... 23:57:36 drmemory_analyze.py [ERROR] 1 0x3f525711 DrvEnableDriver mxdwdrv.dll... I'm not sure if leak+possible_leak are often though. To address your argument, maybe we can do something like this: What do you think? |
From bruen...@google.com on January 21, 2011 07:43:24 the DC example involves a real leak and a possible leak that may be a false positive so keeping them separate seems the right thing: we don't want to mask the true positive just b/c we're trying to suppress the false positive having LEAK match POSSIBLE LEAK does seem reasonable |
From timurrrr@google.com on April 13, 2011 10:30:57 Should be fixed by r250 Status: Fixed |
From timurrrr@google.com on January 19, 2011 12:45:51
Derek,
can you please explain the background of the decision to use two types of suppressions for leaks?
I think this is a bit too strict.
I think in some cases it requires the user to have two different suppressions for related leaks with similar stacktraces
(though I'm not sure I can imagine an example now)
Memcheck has only "Memcheck:Leak" suppression type for leaks which matches both definitely lost memory and possibly lost.
Original issue: http://code.google.com/p/drmemory/issues/detail?id=273
The text was updated successfully, but these errors were encountered: