Bug 730580
Summary: | Optimization causes memory leak | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Susi Lehtola <susi.lehtola> |
Component: | cppcheck | Assignee: | Susi Lehtola <susi.lehtola> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 15 | CC: | jakub, susi.lehtola, ville.skytta |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2011-09-18 16:36:10 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Susi Lehtola
2011-08-14 15:57:54 UTC
Before pointing fingers at gcc you should really try to debug the code. This is clearly a bug in Preprocessor::getcode in preprocessor.cpp. matching_ifdef and matched_ifdef lists there are initially empty, and if #elif ! or #elif is seen, it will happily use matching_ifdef.back() and/or matched_ifdef.back() even if matching_ifdef.empty() or matched_ifdef.empty(), but in those cases the read of that returns garbage and stores to the reference returned by back() clobber some memory around. I do not know why I was added to the list for this bug. Perhaps the problem is occurring while running the tests for the cppad package (which I maintain). If so, can someone point me to the build.log file for a failed build of cppad ? (In reply to comment #2) > I do not know why I was added to the list for this bug. Perhaps the problem is > occurring while running the tests for the cppad package (which I maintain). If > so, can someone point me to the build.log file for a failed build of cppad ? Sorry, I just mistakenly selected cppad instead of cppcheck component. It is now corrected, just feel free to remove yourself from CC. Thanks Jakub. I'll be wiser next time. |