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

Michael Meeks <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #3 from Michael Meeks <[email protected]> ---
Great - the way to debug a hang like this is to manually abort it when it is
hung; get a backtrace in gdb - and then run 'finish' until the method fails to
finish; this method (somehow) is the culprit ;-)

That looks a bit like this:

(gdb) bt
#0  0xad49dc71 in size (this=0xa1554d8) at
/usr/include/c++/4.6/bits/stl_vector.h:571
#1  oox::formulaimport::XmlStream::currentToken (this=0xa1554d8) at
/data/opt/libreoffice/master/oox/source/mathml/importutils.cxx:205
#2  0xab77ae46 in SmOoxmlImport::readOMathArg (this=0xbfffca74) at
/data/opt/libreoffice/master/starmath/source/ooxmlimport.cxx:93
#3  0xab77d601 in SmOoxmlImport::handleStream (this=0xbfffca74) at
/data/opt/libreoffice/master/starmath/source/ooxmlimport.cxx:72
#4  0xab77d6d7 in SmOoxmlImport::ConvertToStarMath (this=0xbfffca74) at
/data/opt/libreoffice/master/starmath/source/ooxmlimport.cxx:57
#5  0xab756f1a in SmDocShell::readFormulaOoxml (this=0xadb67a0, stream=...) at
/data/opt/libreoffice/master/starmath/source/document.cxx:1005
#6  0xab78a7ff in SmModel::readFormulaOoxml (this=0xaccb760, stream=...) at
/data/opt/libreoffice/master/starmath/source/unomodel.cxx:1139
#7  0xad890c25 in writerfilter::rtftok::RTFDocumentImpl::popState
(this=0xa155010)
    at
/data/opt/libreoffice/master/writerfilter/source/rtftok/rtfdocumentimpl.cxx:3887
#8  0xad8a0d4e in writerfilter::rtftok::RTFTokenizer::resolveParse
(this=0xa1743a0)
    at
/data/opt/libreoffice/master/writerfilter/source/rtftok/rtftokenizer.cxx:124
#9  0xad87984f in writerfilter::rtftok::RTFDocumentImpl::resolve
(this=0xa155010, rMapper=...)
    at
/data/opt/libreoffice/master/writerfilter/source/rtftok/rtfdocumentimpl.cxx:603
#10 0xad91e5c0 in RtfFilter::filter (this=0xa12d348, aDescriptor=uno::Sequence
of length 12 = {...})
    at
/data/opt/libreoffice/master/writerfilter/source/filter/RtfFilter.cxx:115
#11 0xb77b7ff4 in SfxObjectShell::ImportFrom (this=0xa0b08b0, rMedium=...,
bInsert=false)
    at /data/opt/libreoffice/master/sfx2/source/doc/objstor.cxx:2223

(gdb) finish
Run till exit from #0  0xad49dc71 in size (this=0xa1554d8) at
/usr/include/c++/4.6/bits/stl_vector.h:571
205        if( pos >= tags.size())
(gdb) finish
Run till exit from #0  oox::formulaimport::XmlStream::currentToken
(this=0xa1554d8)
    at /data/opt/libreoffice/master/oox/source/mathml/importutils.cxx:205
0xab77ae46 in SmOoxmlImport::readOMathArg (this=0xbfffca74) at
/data/opt/libreoffice/master/starmath/source/ooxmlimport.cxx:93
93        while( !stream.atEnd() && stream.currentToken() != CLOSING(
stream.currentToken()))
Value returned is $2 = 1074924649
(gdb) finish
Run till exit from #0  0xab77ae46 in SmOoxmlImport::readOMathArg
(this=0xbfffca74)
    at /data/opt/libreoffice/master/starmath/source/ooxmlimport.cxx:93
SmOoxmlImport::handleStream (this=0xbfffca74) at
/data/opt/libreoffice/master/starmath/source/ooxmlimport.cxx:73
73            if( item.isEmpty())
Value returned is $3 = ""
(gdb) finish
Run till exit from #0  SmOoxmlImport::handleStream (this=0xbfffca74) at
/data/opt/libreoffice/master/starmath/source/ooxmlimport.cxx:73
...

This never completes: so I assume we simply don't make progress along the
stream inside this loop: investigating.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to