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: cppunitAssignee: Steven M. Parrish <smparrish>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: 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:
Description Flags
reproducer
none
valgrind log
none
fix it none

Description David Tardon 2010-10-08 13:43:18 UTC
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

Comment 1 David Tardon 2010-10-08 13:44:02 UTC
Created attachment 452338 [details]
valgrind log

Comment 2 David Tardon 2010-10-08 13:44:31 UTC
Created attachment 452340 [details]
fix it

Comment 3 David Tardon 2010-10-31 08:32:43 UTC
ping?

Comment 4 David Tardon 2010-12-18 16:49:53 UTC
ping

Comment 5 David Tardon 2011-01-24 05:27:41 UTC
hey, are you there?

Comment 6 Fedora Update System 2011-06-30 12:38:24 UTC
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

Comment 7 Fedora Update System 2011-06-30 12:45:23 UTC
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

Comment 8 Fedora Update System 2011-06-30 18:56:51 UTC
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).

Comment 9 Fedora Update System 2011-07-12 04:47:44 UTC
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.

Comment 10 Fedora Update System 2011-07-12 05:18:19 UTC
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.