Re: patch -- fix for Bug 760 [and ChangeLog question]


Subject: Re: patch -- fix for Bug 760 [and ChangeLog question]
From: sam th (sam@bur-jud-118-039.rh.uchicago.edu)
Date: Mon May 22 2000 - 00:46:42 CDT


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, 22 May 2000, Martin Sevior wrote:

> Hi Jesper,
> Can you give me a simple test case that exposes bug 760? The
> bugzilla report is too brief for me. What is an attributed character?
>
> Thanks!
>
> Martin

Try this:

open a new document.
turn on overline (ctrl-t)
type a
type enter
type ctrl-enter (page break)
you get 11 of these asserts

**** (1) Assert ****
**** (1) UT_SHOULD_NOT_HAPPEN at fl_BlockLayout.cpp:993 ****
**** (1) Continue ? (y/n) [y] : y

and then 1 of these asserts
        
**** (12) Assert ****
**** (12) pRun at fv_View.cpp:4645 ****
**** (12) Continue ? (y/n) [y] : y

then it segfaults.

Here is a slightly more detailed stack trace.

gdb) bt
#0 fp_Run::getLine (this=0x0) at fp_Run.h:109
#1 0x811924d in FV_View::getLeftRulerInfo (this=0x838fcc0,
pInfo=0xbffff14c) at fv_View.cpp:4646
#2 0x80d1fa6 in AP_LeftRuler::notify (this=0x8383020, pView=0x838fcc0,
mask=32) at ap_LeftRuler.cpp:172
#3 0x809f065 in AV_View::notifyListeners (this=0x838fcc0, hint=32) at
xav_View.cpp:127
#4 0x81109ab in FV_View::notifyListeners (this=0x838fcc0, hint=32) at
fv_View.cpp:466
#5 0x811f734 in fl_BlockLayout::doclistener_insertSpan (this=0x834f9e8,
pcrs=0x839ab88) at fl_BlockLayout.cpp:2167
#6 0x81260ea in fl_SectionLayout::bl_doclistener_insertSpan
(this=0x838f980, pBL=0x834f9e8, pcrs=0x839ab88) at
fl_SectionLayout.cpp:272
#7 0x8124e56 in fl_DocListener::change (this=0x838f8c0, sfh=0x834f9e8,
pcr=0x839ab88) at fl_DocListener.cpp:310
#8 0x813919c in PD_Document::notifyListeners (this=0x8389c78,
pfs=0x839a9b8, pcr=0x839ab88) at pd_Document.cpp:453
#9 0x8142a6c in pt_PieceTable::insertSpan (this=0x838a518, dpos=4,
p=0xbffff3e2, length=1) at pt_PT_InsertSpan.cpp:434
#10 0x8138b6b in PD_Document::insertSpan (this=0x8389c78, dpos=4,
p=0xbffff3e2, length=1) at pd_Document.cpp:259
#11 0x8112019 in FV_View::cmdCharInsert (this=0x838fcc0, text=0xbffff3e2,
count=1, bForce=0 '\000') at fv_View.cpp:1074
#12 0x80caadb in ap_EditMethods::insertPageBreak (pAV_View=0x838fcc0) at
ap_EditMethods.cpp:2505
#13 0x818131c in EV_Keyboard::invokeKeyboardMethod (this=0x832b898,
pView=0x838fcc0, pEM=0x8265480, pData=0x0, dataLength=0) at
ev_Keyboard.cpp:74
#14 0x817d695 in ev_UnixKeyboard::keyPressEvent (this=0x832b898,
pView=0x838fcc0, e=0x8399460) at ev_UnixKeyboard.cpp:110
#15 0x816f36c in XAP_UnixFrame::_fe::key_press_event (w=0x8347198,
e=0x8399460) at xap_UnixFrame.cpp:129
#16 0x40103b80 in gtk_marshal_BOOL__POINTER () from
/usr/lib/libgtk-1.2.so.0
#17 0x401351a6 in gtk_signal_emit () from /usr/lib/libgtk-1.2.so.0

This is the segfaulting line of code:

109 inline fp_Line* getLine(void) const { return m_pLine; }

as you can see, the problem is that this is NULL, so m_pLine segfaults.

Hope that helps
   
                                     sam th
                                     sam@uchicago.edu
                                http://sam.rh.uchicago.edu
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE5KMnDt+kM0Mq9M/wRAkPkAKCv0YMgTBvpvEY+56ZRTjuewymi6QCdHrwV
ozlQwH2mXl+yxAqBbUDNSEA=
=prde
-----END PGP SIGNATURE-----



This archive was generated by hypermail 2b25 : Mon May 22 2000 - 00:46:47 CDT