From: Martin Sevior (email@example.com)
Date: Mon May 05 2003 - 05:23:44 EDT
In working on 4991 I uncovered what I think is a memory corruption bug
in our piecetable. It eventually will lead to random crashes I think. I
would not like 1.91 to be released before this is fixed.
I can't work on this any more tonight.
PS. Text from 4991.
Ok I found a fix for this I thought. I will commit the change. However
I've uncovered another really nasty mem bug. It appears the piecetable
mem os being corrupted. When running though the algorithim given here.
Valgrind reports that there is a read a read into a free'd part of
memory but not the where the free actually happened.
I think the free in some region of mem that should not get free'd even
the the free is valid.
Here is the valgrind report.
==9121== Invalid read of size 1
==9121== at 0x82116EB: UT_stricmp (ut_string.cpp:172)
==9121== by 0x8239EC8: FV_View::notifyListeners(unsigned short)
==9121== by 0x8257EFE: FV_View::_generalUpdate()
(fv_View_protected.cpp:2336)==9121== by 0x82460C5:
==9121== Address 0x43FCB2C4 is 0 bytes inside a block of size 4
==9121== at 0x40161048: free (vg_clientfuncs.c:185)
==9121== by 0x82D3AB7: PP_AttrProp::setProperty(char const*, char
==9121== by 0x82D3834: PP_AttrProp::setAttribute(char const*, char
==9121== by 0x82D353E: PP_AttrProp::setAttributes(char const**)
Here is the traceback.
0x082116eb in UT_stricmp (s1=0x46277820 "1.000000", s2=0x43fcb2c4 "1.0")
172 c2 = tolower (*p2++);
Current language: auto; currently c++
#3 0x08239ec9 in FV_View::notifyListeners(unsigned short)
1055 if (UT_stricmp(propsBlock[i],
#4 0x08257eff in FV_View::_generalUpdate() (this=0x441c05f4)
2336 notifyListeners(AV_CHG_TYPING | AV_CHG_FMTCHAR |
AV_CHG_FMTBLOCK | AV_CHG_PAGECOUNT | AV_CHG_FMTSTYLE );
#5 0x082460c6 in FV_View::RestoreSavedPieceTableState()
#6 0x0812dc14 in ap_EditMethods::dlgHdrFtr(AV_View*,
AbiWord eventually crashes after this.
-- Martin Sevior <firstname.lastname@example.org> University of Melbourne
This archive was generated by hypermail 2.1.4 : Mon May 05 2003 - 04:27:38 EDT