Summary: | overhead for huge blocks exhausts space too soon | ||
---|---|---|---|
Product: | [Developer tools] valgrind | Reporter: | John Reiser <jreiser> |
Component: | memcheck | Assignee: | Julian Seward <jseward> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 3.6.0 | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | corrected test program |
Description
John Reiser
2011-04-01 17:24:08 UTC
For additional usability, give a warning the first time that realloc() fails: Warning: realloc(%p, %lu) returns NULL This warning is appropriate especially because memcheck forces realloc() into the worst case, in order to maximize error detection. The underlying cause probably is https://bugs.kde.org/show_bug.cgi?id=250101 which contains a patch to fix. Still it would be nice to get the hint about --freelist-vol when huge blocks are involved. *** This bug has been marked as a duplicate of bug 250101 *** (In reply to comment #0) > If nothing else, then when the first huge block is detected give a warning: > huge block detected (%lu bytes); consider adjusting --freelist-vol Of course this warning should be upon calling free() for a huge block, including the forced free() that memcheck employs inside realloc(). |