[Libreoffice-bugs] [Bug 108124] CRASH: bad dynamic_cast! after redo operation

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sat May 27 19:16:33 UTC 2017


https://bugs.documentfoundation.org/show_bug.cgi?id=108124

Julien Nabet <serval2412 at yahoo.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mstahl at redhat.com,
                   |                            |serval2412 at yahoo.fr

--- Comment #4 from Julien Nabet <serval2412 at yahoo.fr> ---
On pc Debian x86-64 with master sources updated 3 days ago, I could reproduce
this.
This assert is triggered because it's a SwGrfNode
$4 = (SwNode &) @0x555558385210: {<BigPtrEntry> = {_vptr.BigPtrEntry =
0x7fffca649208 <vtable for SwGrfNode+208>, m_pBlock = 0x555557861a90, m_nOffset
= 18}, 
  m_nNodeType = SwNodeType::Grf, m_nAFormatNumLvl = 0 '\000', m_bSetNumLSpace =
false, m_bIgnoreDontExpand = false, static s_nSerial = 89, m_nSerial = 80, 
  m_pAnchoredFlys = std::unique_ptr<std::__debug::vector<SwFrameFormat*,
std::allocator<SwFrameFormat*> >> containing 0x0, m_pStartOfSection =
0x55555bebad60}

Here's the test which fails:
   1507     // anchor only to paragraphs, or start nodes in case of
RndStdIds::FLY_AT_FLY
   1508     // also allow table node, this is used when a table is selected and
is converted to a frame by the UI
   1509     assert(!pPos
   1510             || ((RndStdIds::FLY_AT_FLY == nAnchorId) &&
   1511                     dynamic_cast<SwStartNode*>(&pPos->nNode.GetNode()))
   1512             || (RndStdIds::FLY_AT_PARA == nAnchorId &&
dynamic_cast<SwTableNode*>(&pPos->nNode.GetNode()))
   1513             || dynamic_cast<SwTextNode*>(&pPos->nNode.GetNode()));
(see
http://opengrok.libreoffice.org/xref/core/sw/source/core/layout/atrfrm.cxx#1505)

Michael: noticing
https://cgit.freedesktop.org/libreoffice/core/commit/?id=0ed73a0817ad0ff0107cb297208252c0afe3b4a9,
thought you might have some idea here.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170527/fec5f47a/attachment.html>


More information about the Libreoffice-bugs mailing list