Re: [Libreoffice] crasher in writer (footer)

2012-01-12 Thread Cedric Bosdonnat
Hi Michael,

On Tue, 2012-01-10 at 22:28 +0100, Michael Stahl wrote:
> should be fixed now on master and libreoffice-3-5:
> 
> http://cgit.freedesktop.org/libreoffice/core/commit/?id=0e898354fc76339a9a007b30f1ebe123981d0426
> 
> http://cgit.freedesktop.org/libreoffice/core/commit/?h=libreoffice-3-5&id=debb4be8886a4c5fd0a714dfd1b53306b836b800

Thank you for fixing that one: I wasn't aware of the root cause of this
one.

--
Cedric

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] crasher in writer (footer)

2012-01-10 Thread Michael Stahl
On 10/01/12 18:03, August Sodora wrote:
> When I try to delete a footer, I'm getting a SIGABRT from a failed
> assertion, backtrace below
> 
> soffice.bin: /home/augsod/Sources/libo/sw/source/core/bastyp/index.cxx:237:
> virtual SwIndexReg::~SwIndexReg(): Assertion `!m_pFirst && !m_pLast'
> failed.

this is because there is some navigation toolbar that is implemented in
SwNavigationMgr and which stores its history as SwPositions.
those are not corrected when the node they point to is deleted, hence
the assertion.  a non-dbgutil build would probably crash some time later
when the user clicks the navigation buttons.  apparently kids these days
don't use --enable-dbgutil, so you get bonus points for trying :)  and
i'm happy that i turned this into an assert that aborts and draws attention.

should be fixed now on master and libreoffice-3-5:

http://cgit.freedesktop.org/libreoffice/core/commit/?id=0e898354fc76339a9a007b30f1ebe123981d0426

http://cgit.freedesktop.org/libreoffice/core/commit/?h=libreoffice-3-5&id=debb4be8886a4c5fd0a714dfd1b53306b836b800

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


[Libreoffice] crasher in writer (footer)

2012-01-10 Thread August Sodora
When I try to delete a footer, I'm getting a SIGABRT from a failed
assertion, backtrace below

soffice.bin: /home/augsod/Sources/libo/sw/source/core/bastyp/index.cxx:237:
virtual SwIndexReg::~SwIndexReg(): Assertion `!m_pFirst && !m_pLast'
failed.

Program received signal SIGABRT, Aborted.
0xb7fdf424 in __kernel_vsyscall ()
(gdb) bt
#0  0xb7fdf424 in __kernel_vsyscall ()
#1  0xb7cfac8f in __GI_raise (sig=6) at
../nptl/sysdeps/unix/sysv/linux/raise.c:64
#2  0xb7cfe2b5 in __GI_abort () at abort.c:92
#3  0xb7cf3826 in __GI___assert_fail (assertion=0xaaa36fc9 "!m_pFirst
&& !m_pLast", file=
0xaaa36f44 "/home/augsod/Sources/libo/sw/source/core/bastyp/index.cxx",
line=237, function=0xaaa37320 "virtual SwIndexReg::~SwIndexReg()")
at assert.c:81
#4  0xaa011cbf in SwIndexReg::~SwIndexReg (this=0xa6def43c,
__in_chrg=) at
/home/augsod/Sources/libo/sw/source/core/bastyp/index.cxx:237
#5  0xaa1f27bb in SwCntntNode::~SwCntntNode (this=0xa6def408,
__in_chrg=) at
/home/augsod/Sources/libo/sw/source/core/docnode/node.cxx:994
#6  0xaa4cab8d in SwTxtNode::~SwTxtNode (this=0xa6def408,
__in_chrg=) at
/home/augsod/Sources/libo/sw/source/core/txtnode/ndtxt.cxx:248
#7  0xaa4cac47 in SwTxtNode::~SwTxtNode (this=0xa6def408,
__in_chrg=) at
/home/augsod/Sources/libo/sw/source/core/txtnode/ndtxt.cxx:269
#8  0xaa1ff776 in SwNodes::RemoveNode (this=0xa97e9c40, nDelPos=9,
nSz=4, bDel=1 '\001') at
/home/augsod/Sources/libo/sw/source/core/docnode/nodes.cxx:2409
#9  0xaa1fce1b in SwNodes::DelNodes (this=0xa97e9c40, rStart=...,
nCnt=4) at /home/augsod/Sources/libo/sw/source/core/docnode/nodes.cxx:1541
#10 0xaa0e0c17 in SwDoc::DeleteSection (this=0xa97d0fd0,
pNode=0xa60cf650) at
/home/augsod/Sources/libo/sw/source/core/doc/docedt.cxx:729
#11 0xaa2da583 in DelHFFormat (pToRemove=0xa5f391cc, pFmt=0xa9b3cdc0)
at /home/augsod/Sources/libo/sw/source/core/layout/atrfrm.cxx:238
#12 0xaa2db8a9 in SwFmtFooter::~SwFmtFooter (this=0xa5f391c0,
__in_chrg=) at
/home/augsod/Sources/libo/sw/source/core/layout/atrfrm.cxx:559
#13 0xaa2db92f in SwFmtFooter::~SwFmtFooter (this=0xa5f391c0,
__in_chrg=) at
/home/augsod/Sources/libo/sw/source/core/layout/atrfrm.cxx:560
#14 0xb6f581cf in SfxItemPool::Remove (this=0xa97d21e8, rItem=...) at
/home/augsod/Sources/libo/svl/source/items/itempool.cxx:847
#15 0xb6f6d126 in SfxItemSet::~SfxItemSet (this=0xbfffe2c0,
__in_chrg=) at
/home/augsod/Sources/libo/svl/source/items/itemset.cxx:344
#16 0xaa006bd9 in SwAttrSet::~SwAttrSet (this=0xbfffe2c0,
__in_chrg=) at
/home/augsod/Sources/libo/sw/inc/swatrset.hxx:175
#17 0xaa005481 in SwFmt::~SwFmt (this=0xbfffe2a0, __in_chrg=) at /home/augsod/Sources/libo/sw/source/core/attr/format.cxx:243
#18 0xaa1082b6 in SwFrmFmt::~SwFrmFmt (this=0xbfffe2a0,
__in_chrg=) at
/home/augsod/Sources/libo/sw/inc/frmfmt.hxx:47
#19 0xaa3564cd in SwPageDesc::~SwPageDesc (this=0xbfffe22c,
__in_chrg=) at
/home/augsod/Sources/libo/sw/source/core/layout/pagedesc.cxx:112
#20 0xaaa1b89d in SwWrtShell::ChangeHeaderOrFooter (this=0xa97c6738,
rStyleName="Converted2", bHeader=0 '\000', bOn=0 '\000',
bShowWarning=0 '\000')
at /home/augsod/Sources/libo/sw/source/ui/wrtsh/wrtsh1.cxx:1838
#21 0xaa8852d8 in SwHeaderFooterWin::ExecuteCommand (this=0xa59773c8,
nSlot=22602) at
/home/augsod/Sources/libo/sw/source/ui/docvw/HeaderFooterWin.cxx:488
#22 0xaa885423 in SwHeaderFooterWin::Select (this=0xa59773c8) at
/home/augsod/Sources/libo/sw/source/ui/docvw/HeaderFooterWin.cxx:518
#23 0xb5744e50 in MenuButton::ImplExecuteMenu (this=0xa59773c8) at
/home/augsod/Sources/libo/vcl/source/control/menubtn.cxx:86
#24 0xb5745432 in MenuButton::MouseButtonDown (this=0xa59773c8,
rMEvt=...) at /home/augsod/Sources/libo/vcl/source/control/menubtn.cxx:186
#25 0xaa8853f9 in SwHeaderFooterWin::MouseButtonDown (this=0xa59773c8,
rMEvt=...) at 
/home/augsod/Sources/libo/sw/source/ui/docvw/HeaderFooterWin.cxx:513
#26 0xb5af813d in ImplHandleMouseEvent (pWindow=0xa61b90b0,
nSVEvent=1, bMouseLeave=0 '\000', nX=1017, nY=358, nMsgTime=54664406,
nCode=1, nMode=3)
at /home/augsod/Sources/libo/vcl/source/window/winproc.cxx:804
#27 0xb5afcf5d in ImplHandleSalMouseButtonDown (pWindow=0xa61b90b0,
pEvent=0xbfffe848) at
/home/augsod/Sources/libo/vcl/source/window/winproc.cxx:2074
#28 0xb5afc42c in ImplWindowFrameProc (pWindow=0xa61b90b0, nEvent=3,
pEvent=0xbfffe848) at
/home/augsod/Sources/libo/vcl/source/window/winproc.cxx:2401
#29 0xb11ed48f in SalFrame::CallCallback (this=0xa61b9338, nEvent=3,
pEvent=0xbfffe848) at
/home/augsod/Sources/libo/vcl/inc/salframe.hxx:294
#30 0xb11e9d72 in GtkSalFrame::signalButton (pEvent=0xa5a986e8,
frame=0xa61b9338) at
/home/augsod/Sources/libo/vcl/unx/gtk/window/gtkframe.cxx:2880

August Sodora
aug...@gmail.com
(201) 280-8138
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice