pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/45104: devel/cppunit misses a destructor for CppUnit::Message



>Number:         45104
>Category:       pkg
>Synopsis:       devel/cppunit misses a destructor for CppUnit::Message
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 28 09:15:00 +0000 2011
>Originator:     François Tigeot
>Release:        Various, including non-NetBSD
>Organization:
>Environment:
DragonFly akane.zefyris.com 2.10-RELEASE DragonFly v2.10.1.7.g20061-RELEASE #6: 
Wed May  4 13:22:37 CEST 2011     
ftigeot%akane.zefyris.com@localhost:/usr/obj/usr/src/sys/X86_64_GENERIC_SMP  
x86_64
>Description:
devel/cppunit misses a destructor declaration for one of its classes

The compiler generates an implicit destructor but in certain circonstances this 
leads to crashes.

More information is available in this bug report on Red Hat's tracker:

https://bugzilla.redhat.com/show_bug.cgi?id=641350
>How-To-Repeat:
Try to build LibreOffice with the --enable-debug configure option and
cppunit from devel/cppunit
>Fix:
Apply the patch in RedHat's bug report:
https://bugzilla.redhat.com/attachment.cgi?id=452340

diff -up cppunit-1.12.1/include/cppunit/Message.h.dt 
cppunit-1.12.1/include/cppunit/Message.h
--- cppunit-1.12.1/include/cppunit/Message.h.dt 2010-10-08 14:02:26.514477964 
+0200
+++ cppunit-1.12.1/include/cppunit/Message.h    2010-10-08 14:02:15.411948098 
+0200
@@ -57,6 +57,8 @@ public:
            const std::string &detail2,
            const std::string &detail3 );
 
+  ~Message();
+
   Message &operator =( const Message &other );
 
   /*! \brief Returns the short description.
diff -up cppunit-1.12.1/src/cppunit/Message.cpp.dt 
cppunit-1.12.1/src/cppunit/Message.cpp
--- cppunit-1.12.1/src/cppunit/Message.cpp.dt   2010-10-08 14:02:39.421768852 
+0200
+++ cppunit-1.12.1/src/cppunit/Message.cpp      2010-10-08 14:02:54.066829633 
+0200
@@ -47,6 +47,10 @@ Message::Message( const std::string &sho
   addDetail( detail1, detail2, detail3 );
 }
 
+Message::~Message()
+{
+}
+
 Message &
 Message::operator =( const Message &other )
 {



Home | Main Index | Thread Index | Old Index