[Libreoffice-bugs] [Bug 39510] CRASH closing document with footnotes

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Jul 31 09:15:36 PDT 2011


https://bugs.freedesktop.org/show_bug.cgi?id=39510

--- Comment #13 from Björn Michaelsen <bjoern.michaelsen at canonical.com> 2011-07-31 09:15:35 PDT ---
I could to really figure out what is going on there, but this looks really,
really wrong:
#14 0xae679dca in SwRootFrm::~SwRootFrm (this=0x8b42e40, __in_chrg=<value
optimized out>)
    at
/data/opt/libreoffice/libreoffice-3-4/sw/source/core/layout/newfrm.cxx:606
#15 0xae679e3b in SwRootFrm::~SwRootFrm (this=0x8b42e40, __in_chrg=<value
optimized out>)
    at
/data/opt/libreoffice/libreoffice-3-4/sw/source/core/layout/newfrm.cxx:624

To me that looks like the SwRootFrm thinks it is a member of itself. It calls
its own destructor on the same instance (itself) upon leaving the scope of the
destructor. While I think that cant be right, it can be even less right with
the SwRootFrm being owned by the ViewShell (via boost::shared_ptr<>), so the
only one ever calling a ~SwRootFrm destructor should be that shared_ptr<>.

Unfortunately, I havent figured it out completely -- all I see is that I jump
from the last line of the destructor to the first one of it in the debugger.

Most likely the cause is somewhere in
writer:0382ef89c6631ec39b98b63dbdadd85ecea11275, but that one is not-so-small.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Libreoffice-bugs mailing list