Re: Backend changes ready for commit - please test it!


Subject: Re: Backend changes ready for commit - please test it!
From: Martin Sevior (msevior@mccubbin.ph.unimelb.edu.au)
Date: Sun Feb 18 2001 - 18:53:06 CST


HI Jesper,
         That killer doc I sent you no longer asserts on loading but it
does segfault inserting page numbers.
 stack trace follows:

0 0x4030cd41 in __kill () from /lib/libc.so.6
#1 0x4030c9b6 in raise (sig=6) at ../sysdeps/posix/raise.c:27
#2 0x4030e0d8 in abort () at ../sysdeps/generic/abort.c:88
#3 0x80ac586 in AP_UnixApp::catchSignals (this=0x842c940, sig_num=11)
    at ap_UnixApp.cpp:1203
#4 0x80ac4ae in signalWrapper (sig_num=11) at ap_UnixApp.cpp:1171
#5 0x4030cc68 in __restore ()
    at ../sysdeps/unix/sysv/linux/i386/sigaction.c:127
#6 0x8110ec0 in fp_Line::addRun (this=0x0, pNewRun=0x85e7500)
    at fp_Line.cpp:240
#7 0x80ff927 in fl_BlockLayout::doclistener_insertBlock (this=0x85cf0b8,
    pcrx=0x85c7c98, sdh=0x84e6028, lid=0,
    pfnBindHandles=0x8121aa0 <s_BindHandles(void const *, unsigned int,
void const *)>) at fl_BlockLayout.cpp:3675
#8 0x8108d69 in fl_SectionLayout::bl_doclistener_insertBlock
(this=0x85da220,
    pBL=0x85cf0b8, pcrx=0x85c7c98, sdh=0x84e6028, lid=0,
    pfnBindHandles=0x8121aa0 <s_BindHandles(void const *, unsigned int,
void const *)>) at fl_SectionLayout.cpp:310
    pfnBindHandles=0x8121aa0 <s_BindHandles(void const *, unsigned int,
void const *)>) at fl_SectionLayout.cpp:310
#9 0x81082f0 in fl_DocListener::insertStrux (this=0x85115e8,
sfh=0x85cf0b8,
    pcr=0x85c7c98, sdh=0x84e6028, lid=0,
    pfnBindHandles=0x8121aa0 <s_BindHandles(void const *, unsigned int,
void const *)>) at fl_DocListener.cpp:770
---Type <return> to continue, or q <return> to quit---
#10 0x8121b8d in PD_Document::notifyListeners (this=0x8518c48,
pfs=0x84f6428,
    pfsNew=0x84e6028, pcr=0x85c7c98) at pd_Document.cpp:533
#11 0x812dbef in pt_PieceTable::insertStrux (this=0x84a2550, dpos=2497,
    pts=PTX_Block) at pt_PT_InsertStrux.cpp:258
#12 0x8121594 in PD_Document::insertStrux (this=0x8518c48, dpos=2497,
    pts=PTX_Block) at pd_Document.cpp:316
#13 0x80f81b4 in FV_View::insertHeaderFooter (this=0x85dc430,
    props=0xbfffed98, ftr=true) at fv_View.cpp:7297
#14 0x80f82a8 in FV_View::insertPageNum (this=0x85dc430, props=0xbfffed98,
    ftr=true) at fv_View.cpp:7334
#15 0x80b9ef1 in s_doInsertPageNumbers (pView=0x85dc430)
    at ap_EditMethods.cpp:4759
<snip more higher level stuff>

You got bitten by the fp_Line = NULL in fl_hdrftrSectionLayout blocks I
think.

Further stress tests I can suggest after you fix this.

1. Try changing the page sizes in that doc after you inserted
headers/footers. Change A4 = > A6 > A0 > A4 > landscape > A0 > A6 >
portrait > A4.

2. Try changing the left/right/top/bottom/header/footer margins with both
a header and a footer in that killer doc.

Good Luck!

Martin

PS. We really want Bob Seivers to come along and find ways to crash your
code.



This archive was generated by hypermail 2b25 : Sun Feb 18 2001 - 18:53:23 CST