bug-commoncpp
[Top][All Lists]
Advanced

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

BUG REPORT: cc++, 2V1.0.11


From: Jonathan Evans
Subject: BUG REPORT: cc++, 2V1.0.11
Date: Thu, 29 May 2003 11:57:38 +0100

BUG REPORT:

File:     thread.cpp
Line:     617
Comment:  The "free" operation on the thread's "char _msgbuf[128]"
          member variable causes a segmentation fault when the
          standard destructor ("Thread::~Thread") is called.
Solution: Do not try and release the non-dynamically allocated
          variable with "free"

diff output
-----------

address@hidden src]# diff thread.cpp thread.cpp.v11b 
617,619c617,619
<       if(priv)
<               if( priv->_msgbuf != NULL)
<                       free(priv->_msgbuf);
---
> //    if(priv)
> //            if( priv->_msgbuf != NULL)
> //                    free(priv->_msgbuf);

PS The bug reporting address on:
      http://www.gnu.org/directory/commoncpp.html

is shown (incorrectly) as "address@hidden"

===============================================================
Dr Jonathan Evans
Ocean Systems Laboratory
Heriot-Watt University               E-Mail:   address@hidden
Edinburgh EH14 4AS                   Tel:  (+44)(0)131 451 3506
SCOTLAND, UK                         Fax:  (+44)(0)131 451 4155
===============================================================





reply via email to

[Prev in Thread] Current Thread [Next in Thread]