Bug 809284
Summary: | Bugs found in python-ZODB3-3.10.5-2.fc17 using gcc-with-cpychecker static analyzer | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Dave Malcolm <dmalcolm> |
Component: | python-ZODB3 | Assignee: | Jerry James <loganjerry> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 19 | CC: | loganjerry, robinlee.sysu |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
URL: | http://fedorapeople.org/~dmalcolm/gcc-python-plugin/2012-04-02/python-ZODB3-3.10.5-2.fc17/ | ||
Whiteboard: | |||
Fixed In Version: | python-ZODB3-3.11.0-1.fc21 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-11-01 16:31:46 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: | |||
Bug Depends On: | |||
Bug Blocks: | 789472 |
Description
Dave Malcolm
2012-04-03 00:33:21 UTC
(In reply to comment #0) > Within the category "Unclassified errors" the 1 issue reported > src/BTrees/BucketTemplate.c:bucket_repr:returning pointer to deallocated > memory > appears to be a true crasher, in that "r" gets DECREFed (and probably > deallocated) in that path: it looks like the "return r" should have been a > "return s". Reported upstream at https://bugs.launchpad.net/zodb/+bug/972533. That code path is taken when s is NULL. It appears to me that it is the Py_DECREF(r) on line 1745 that is wrong, and that the code author really intended to return r. (I would argue that that isn't a good idea, because now callers have to be prepared to receive the expected "k(v)" form, the "v" form meaning that we couldn't allocate enough memory for the first form, and NULL meaning that we otherwise couldn't allocate enough memory. I don't see how the second form is better than the third.) Thanks for the analysis! This bug appears to have been reported against 'rawhide' during the Fedora 19 development cycle. Changing version to '19'. (As we did not run this process for some time, it could affect also pre-Fedora 19 development cycle bugs. We are very sorry. It will help us with cleanup during Fedora 19 End Of Life. Thank you.) More information and reason for this action is here: https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora19 python-ZODB3-3.11.0-1.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/python-ZODB3-3.11.0-1.fc21 Package python-ZODB3-3.11.0-1.fc21: * should fix your issue, * was pushed to the Fedora 21 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing python-ZODB3-3.11.0-1.fc21' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-13389/python-ZODB3-3.11.0-1.fc21 then log in and leave karma (feedback). python-ZODB3-3.11.0-1.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report. |