Bug 641350
Summary: | implicit destructor of CppUnit::Message causes segfault when test is built with debug. STL | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | David Tardon <dtardon> | ||||||||
Component: | cppunit | Assignee: | Steven M. Parrish <smparrish> | ||||||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||
Severity: | medium | Docs Contact: | |||||||||
Priority: | low | ||||||||||
Version: | rawhide | CC: | pertusus, smparrish | ||||||||
Target Milestone: | --- | ||||||||||
Target Release: | --- | ||||||||||
Hardware: | All | ||||||||||
OS: | Linux | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | cppunit-1.12.1-5.fc14 | Doc Type: | Bug Fix | ||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2011-07-12 04:47:50 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: | |||||||||||
Attachments: |
|
Created attachment 452338 [details]
valgrind log
Created attachment 452340 [details]
fix it
ping? ping hey, are you there? cppunit-1.12.1-5.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/cppunit-1.12.1-5.fc15 cppunit-1.12.1-5.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/cppunit-1.12.1-5.fc14 Package cppunit-1.12.1-5.fc14: * should fix your issue, * was pushed to the Fedora 14 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing cppunit-1.12.1-5.fc14' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/cppunit-1.12.1-5.fc14 then log in and leave karma (feedback). cppunit-1.12.1-5.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report. cppunit-1.12.1-5.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report. |
Created attachment 452337 [details] reproducer Description of problem: CppUnit::Message contains a std::deque. Because the class doesn't declare destructor, the compiler synthetises one in every compilation unit where the class is used. But now, if the compilation unit is compiled with debugging STL support (i.e. with -D_GLIBCXX_DEBUG), the synthetised ~Message destructs the deque member by calling std::__debug::deque::~deque instead of std::deque::~deque, with expected consequences. Version-Release number of selected component (if applicable): cppunit-1.12.1-3.fc15 How reproducible: always with the attached reproducer Steps to Reproduce: 1. g++ -o cppunit -Wall -g -O0 $(pkg-config --cflags --libs cppunit) -D_GLIBCXX_DEBUG cppunit.cc 2. ./cppunit