Bug 84370 - threaded XLSX import crasher ...
Summary: threaded XLSX import crasher ...
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
4.3.0.2 rc
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: target:4.4.0
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-26 10:52 UTC by Michael Meeks
Modified: 2014-09-26 14:20 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Meeks 2014-09-26 10:52:30 UTC
Seems we're doing some quite unsafe things here:

Thread 1
  0xb7713424 in __kernel_vsyscall ()
#1  0xb74ce406 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#2  0xb74cfb93 in __GI_abort () at abort.c:89
#3  0xb7513f1b in malloc_printerr (action=<optimized out>, str=<optimized out>, ptr=0xafdd480) at malloc.c:4920
#4  0xb75176ab in __GI___libc_free (mem=0xafdd480) at malloc.c:2879
#5  0xb73d54bf in operator delete (ptr=0xafdd480) at ../../../../libstdc++-v3/libsupc++/del_op.cc:47
#6  0xae3f0e52 in deallocate (this=0xb14e798, __p=<optimized out>) at /usr/include/c++/4.8/ext/new_allocator.h:110
#7  std::_Vector_base<void*, std::allocator<void*> >::_M_deallocate (__p=<optimized out>, __n=<optimized out>, this=0xb14e798)
    at /usr/include/c++/4.8/bits/stl_vector.h:174
#8  0xae3f6b35 in _M_emplace_back_aux<void*> (this=0xb14e798) at /usr/include/c++/4.8/bits/vector.tcc:430
#9  std::vector<void*, std::allocator<void*> >::emplace_back<void*>(void*&&) (this=0xb14e798) at /usr/include/c++/4.8/bits/vector.tcc:101
#10 0xae3f6c73 in push_back (
    __x=<unknown type in /data/opt/libreoffice/master/instdir/program/../program/libeditenglo.so, CU 0x25ab75, DIE 0x2e2905>, this=0xb14e798)
    at /usr/include/c++/4.8/bits/stl_vector.h:920
#11 boost::ptr_sequence_adapter<EditCharAttrib, std::vector<void*, std::allocator<void*> >, boost::heap_clone_allocator>::push_back (
    this=0xb14e798, x=0xa9ca518) at /data/opt/libreoffice/master/workdir/UnpackedTarball/boost/boost/ptr_container/ptr_sequence_adapter.hpp:254
#12 0xae3f487f in CharAttribList::InsertAttrib (this=0xb14e798, pAttrib=0xa9ca518)
    at /data/opt/libreoffice/master/editeng/source/editeng/editdoc.cxx:2742
#13 0xae3f4c5a in EditDoc::InsertAttrib (this=0x98b1a64, rPoolItem=..., pNode=0xb14e778, nStart=5, nEnd=18)
    at /data/opt/libreoffice/master/editeng/source/editeng/editdoc.cxx:2539
#14 0xae3f4f46 in EditDoc::InsertAttribInSelection (this=0x98b1a64, pNode=0xb14e778, nStart=5, nEnd=18, rPoolItem=...)
    at /data/opt/libreoffice/master/editeng/source/editeng/editdoc.cxx:2409
#15 0xae3f4f80 in EditDoc::InsertAttrib (this=0x98b1a64, pNode=0xb14e778, nStart=5, nEnd=18, rPoolItem=...)
    at /data/opt/libreoffice/master/editeng/source/editeng/editdoc.cxx:2548
#16 0xae437246 in ImpEditEngine::SetAttribs (this=0x98b1a10, aSel=..., rSet=..., nSpecial=0 '\000')
    at /data/opt/libreoffice/master/editeng/source/editeng/impedit5.cxx:540
#17 0xae3fa137 in EditEngine::QuickSetAttribs (this=0x98b1a00, rSet=..., rSel=...)
    at /data/opt/libreoffice/master/editeng/source/editeng/editeng.cxx:2004
#18 0xab91a748 in oox::xls::RichStringPortion::convert (this=0xa23d4a0, rEE=..., rSelection=..., pFont=0x0)
    at /data/opt/libreoffice/master/sc/source/filter/oox/richstring.cxx:145
#19 0xab91a814 in oox::xls::RichString::convert (this=0xa277860, rEE=..., pFirstPortionFont=0x0)
    at /data/opt/libreoffice/master/sc/source/filter/oox/richstring.cxx:410
#20 0xab942ae4 in oox::xls::WorksheetHelper::putRichString (this=0xa280ec4, rAddress=..., rString=..., pFirstPortionFont=0xa050668)
    at /data/opt/libreoffice/master/sc/source/filter/oox/worksheethelper.cxx:1566
#21 0xab91f0ca in oox::xls::SheetDataBuffer::setStringCell (this=0xa280ec4, rModel=..., rxString=
  boost::shared_ptr {<oox::xls::WorkbookHelper> = {_vptr.WorkbookHelper = 0xabac2508 <vtable for oox::xls::RichString+8>, mrBookGlob = @0x98900b0}, maTextPortions = {<std::vector<boost::shared_ptr<oox::xls::RichStringPortion>, std::allocator<boost::shared_ptr<oox::xls::RichStringPortion> > >> = std::vector of length 2, capacity 2 = {boost::shared_ptr {<oox::xls::WorkbookHelper> = {_vptr.WorkbookHelper = 0xabac24d8 <vtable for oox::xls---Type <return> to continue, or q <return> to quit---
::RichStringPortion+8>, mrBookGlob = @0x98900b0}, maText = "Next.", mxFont = empty boost::shared_ptr, mnFontId = -1, mbConverted = false}, boost::shared_ptr {<oox::xls::WorkbookHelper> = {_vptr.WorkbookHelper = 0xabac24d8 <vtable for oox::xls::RichStringPortion+8>, mrBookGlob = @0x98900b0}, maText = " If you checked “No” on line 1a (and “No” on line 1b if married filing jointly), ", mxFont = boost::shared_ptr {<oox::xls::WorkbookHelper> = {_vptr.WorkbookHelper = 0xabac13e0 <vtable for oox::xls::Font+8>, mrBookGlob = @0x98900b0}, maModel = {maName = "Arial", maColor = {<oox::drawingml::Color> = {meMode = oox::drawingml::Color::COLOR_FINAL, maTransforms = std::vector of length 0, capacity 0, mnC1 = -1, mnC2 = 0, mnC3 = 0, mnAlpha = 100000, msSchemeName = "", maInteropTransformations = empty uno::Sequence}, <No data fields>}, mnScheme = 3560, mnFamily = 2, mnCharSet = 1, mfHeight = 10, mnUnderline = 3560, mnEscapement = 809, mbBold = false, mbItalic = false, mbStrikeout = false, mbOutline = false, mbShadow = false}, maApiData = {maLatinFont = {maName = "Arial", mnFamily = 5, mnTextEnc = 0}, maAsianFont = {maName = "", mnFamily = 0, mnTextEnc = 0}, maCmplxFont = {maName = "Arial", mnFamily = 5, mnTextEnc = 0}, maDesc = {Name = "Arial", Height = 200, Width = 0, StyleName = "", Family = 5, CharSet = 0, Pitch = 0, CharacterWidth = 100, Weight = 100, Slant = com::sun::star::awt::FontSlant_NONE, Underline = 0, Strikeout = 0, Orientation = 0, Kerning = 0 '\000', WordLineMode = 0 '\000', Type = 0}, mnColor = -1, mnEscapement = 0, mnEscapeHeight = 100 'd', mbOutline = false, mbShadow = false}, maUsedFlags = {mbNameUsed = true, mbColorUsed = true, mbSchemeUsed = true, mbHeightUsed = true, mbUnderlineUsed = true, mbEscapementUsed = true, mbWeightUsed = true, mbPostureUsed = true, mbStrikeoutUsed = true, mbOutlineUsed = true, mbShadowUsed = true}, mbDxf = false}, mnFontId = -1, mbConverted = false}}, <No data fields>}, maPhonSettings = {<oox::xls::WorkbookHelper> = {_vptr.WorkbookHelper = 0xabac24e8 <vtable for oox::xls::PhoneticSettings+8>, mrBookGlob = @0x98900b0}, maModel = {mnFontId = -1, mnType = 2415, mnAlignment = 2993}}, maPhonPortions = {<std::vector<boost::shared_ptr<oox::xls::RichStringPhonetic>, std::allocator<boost::shared_ptr<oox::xls::RichStringPhonetic> > >> = std::vector of length 0, capacity 0, <No data fields>}}) at /data/opt/libreoffice/master/sc/source/filter/oox/sheetdatabuffer.cxx:163
#22 0xab91f13a in oox::xls::SheetDataBuffer::setStringCell (this=0xa280ec4, rModel=..., nStringId=5)
    at /data/opt/libreoffice/master/sc/source/filter/oox/sheetdatabuffer.cxx:172
#23 0xab921315 in oox::xls::SheetDataContext::onEndElement (this=0xb1eb838)
    at /data/opt/libreoffice/master/sc/source/filter/oox/sheetdatacontext.cxx:208
#24 0xae58d71c in oox::core::ContextHandler2Helper::implEndElement (this=0xb1eb858, nElement=2425852)
    at /data/opt/libreoffice/master/oox/source/core/contexthandler2.cxx:116
#25 0xae58d74f in oox::core::ContextHandler2::endFastElement (this=0xb1eb838, nElement=2425852)
    at /data/opt/libreoffice/master/oox/source/core/contexthandler2.cxx:205
#26 0xae339ce2 in (anonymous namespace)::Entity::endElement (this=this@entry=0xac7b768)
    at /data/opt/libreoffice/master/sax/source/fastparser/fastparser.cxx:484
#27 0xae33cdaf in consume (pEventList=0xb1eb308, this=0xb00cc48) at /data/opt/libreoffice/master/sax/source/fastparser/fastparser.cxx:1011
#28 sax_fastparser::FastSaxParserImpl::parseStream (this=0xb00cc48, maStructSource=...)
    at /data/opt/libreoffice/master/sax/source/fastparser/fastparser.cxx:840
#29 0xae58ec20 in oox::core::FastParser::parseStream (this=0xadce638, rInputSource=..., bCloseStream=false)
    at /data/opt/libreoffice/master/oox/source/core/fastparser.cxx:118
#30 0xae58ecd5 in oox::core::FastParser::parseStream (this=0xadce638, rxInStream=uno::Reference to (OInputCompStream *) 0xae48954, 
    rStreamName="xl/worksheets/sheet20.xml", bCloseStream=false) at /data/opt/libreoffice/master/oox/source/core/fastparser.cxx:126
#31 0xae59f8bb in oox::core::XmlFilterBase::importFragment (this=0x9832e70, rxHandler=rtl::Reference to 0xa218308, rParser=...)
    at /data/opt/libreoffice/master/oox/source/core/xmlfilterbase.cxx:342
#32 0xab939757 in oox::xls::WorkbookHelper::importOoxFragment (this=0x9921ce4, rxHandler=rtl::Reference to 0xa218308, rParser=...)
    at /data/opt/libreoffice/master/sc/source/filter/oox/workbookhelper.cxx:1001
---Type <return> to continue, or q <return> to quit---
#33 0xab9378ad in oox::xls::(anonymous namespace)::WorkerThread::doWork (this=0xa3db670)
    at /data/opt/libreoffice/master/sc/source/filter/oox/workbookfragment.cxx:237
#34 0xab9318d6 in ThreadPool::ThreadWorker::execute (this=0xa2fafd8) at /data/opt/libreoffice/master/sc/source/filter/oox/threadpool.cxx:28
#35 0xb704822e in salhelper::Thread::run (this=0xa2fafd8) at /data/opt/libreoffice/master/salhelper/source/thread.cxx:40
#36 0xb70483b3 in osl::threadFunc (param=0xa2fafe0) at /data/opt/libreoffice/master/include/osl/thread.hxx:187
#37 0xb76d90ea in osl_thread_start_Impl (pData=0xa040fd0) at /data/opt/libreoffice/master/sal/osl/unx/thread.c:237
#38 0xb748a07a in start_thread (arg=0xa9f78b40) at pthread_create.c:309
#39 0xb758e56e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:129

...

Thread 11 (Thread 0xaaf2bb40 (LWP 17895)):
#0  0xb7713424 in __kernel_vsyscall ()
#1  0xb7490bb9 in __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S:144
#2  0xb748c467 in _L_lock_961 () from /lib/libpthread.so.0
#3  0xb748c2e8 in __GI___pthread_mutex_lock (mutex=0x8c0fc58) at ../nptl/pthread_mutex_lock.c:114
#4  0xb759b834 in pthread_mutex_lock (mutex=0x8c0fc58) at forward.c:192
#5  0xb76d64ef in osl_acquireMutex (pMutex=0x8c0fc58) at /data/opt/libreoffice/master/sal/osl/unx/mutex.c:104
#6  0xb62aca6e in acquire (this=0x8c0fc3c) at /data/opt/libreoffice/master/include/osl/mutex.hxx:58
#7  SalYieldMutex::acquire (this=0x8c0fc38) at /data/opt/libreoffice/master/vcl/generic/app/geninst.cxx:45
#8  0xb2e35b50 in GtkYieldMutex::acquire (this=0x8c0fc38) at /data/opt/libreoffice/master/vcl/unx/gtk/app/gtkinst.cxx:300
#9  0xb62ac8e3 in SalGenericInstance::AcquireYieldMutex (this=0x8c1ac10, nCount=2)
    at /data/opt/libreoffice/master/vcl/generic/app/geninst.cxx:104
#10 0xb2e34db0 in SalYieldMutexReleaser::~SalYieldMutexReleaser (this=0xaaf2ab04, __in_chrg=<optimized out>)
    at /data/opt/libreoffice/master/vcl/inc/generic/geninst.h:46
#11 0xb2e34800 in GtkData::Yield (this=0x8c1ac60, bWait=false, bHandleAllCurrentEvents=true)
    at /data/opt/libreoffice/master/vcl/unx/gtk/app/gtkdata.cxx:567
#12 0xb2e352f4 in GtkInstance::Yield (this=0x8c1ac10, bWait=false, bHandleAllCurrentEvents=true)
    at /data/opt/libreoffice/master/vcl/unx/gtk/app/gtkinst.cxx:423
#13 0xb625e9f3 in ImplYield (i_bWait=false, i_bAllEvents=true) at /data/opt/libreoffice/master/vcl/source/app/svapp.cxx:360
#14 0xb625c716 in Application::Reschedule (i_bAllEvents=true) at /data/opt/libreoffice/master/vcl/source/app/svapp.cxx:387
#15 0xb0c5c919 in framework::StatusIndicatorFactory::impl_reschedule (this=0x973c488, bForce=false)
    at /data/opt/libreoffice/master/framework/source/helper/statusindicatorfactory.cxx:529
#16 0xb0c5cb2d in framework::StatusIndicatorFactory::setValue (this=0x973c488, 
    xChild=uno::Reference to (framework::StatusIndicator *) 0x96e7174, nValue=770500)
    at /data/opt/libreoffice/master/framework/source/helper/statusindicatorfactory.cxx:291
#17 0xb0c5c243 in framework::StatusIndicator::setValue (this=0x96e7160, nValue=770500)
    at /data/opt/libreoffice/master/framework/source/helper/statusindicator.cxx:103
#18 0xae64c8b0 in oox::ProgressBar::setPosition (this=0x98b31bc, fPosition=0.77050000000000018)
    at /data/opt/libreoffice/master/oox/source/helper/progressbar.cxx:68
#19 0xae64c90c in oox::prv::SubSegment::setPosition (this=0xa19e4a0, fPosition=0.625)
---Type <return> to continue, or q <return> to quit---
    at /data/opt/libreoffice/master/oox/source/helper/progressbar.cxx:110
#20 0xae64c90c in oox::prv::SubSegment::setPosition (this=0xa226678, fPosition=0.25)
    at /data/opt/libreoffice/master/oox/source/helper/progressbar.cxx:110
#21 0xab941cbf in oox::xls::(anonymous namespace)::lclUpdateProgressBar (rxProgressBar=
    boost::shared_ptr {<oox::IProgressBar> = {_vptr.IProgressBar = 0xae76a198 <vtable for oox::prv::SubSegment+8>}, <No data fields>}, 
    fPosition=0.25) at /data/opt/libreoffice/master/sc/source/filter/oox/worksheethelper.cxx:99
#22 0xab945cee in oox::xls::WorksheetGlobals::finalizeWorksheetImport (this=0xa1df678)
    at /data/opt/libreoffice/master/sc/source/filter/oox/worksheethelper.cxx:941
#23 0xab945d94 in oox::xls::WorksheetHelper::finalizeWorksheetImport (this=<optimized out>)
    at /data/opt/libreoffice/master/sc/source/filter/oox/worksheethelper.cxx:1586
#24 0xab93ed9e in oox::xls::WorksheetFragment::finalizeImport (this=0xa036400)
    at /data/opt/libreoffice/master/sc/source/filter/oox/worksheetfragment.cxx:487
#25 0xae598a4c in oox::core::FragmentHandler2::endDocument (this=0xa036400)
    at /data/opt/libreoffice/master/oox/source/core/fragmenthandler2.cxx:50
#26 0xae33ce8c in sax_fastparser::FastSaxParserImpl::parseStream (this=0xaad3678, maStructSource=...)
    at /data/opt/libreoffice/master/sax/source/fastparser/fastparser.cxx:858
#27 0xae58ec20 in oox::core::FastParser::parseStream (this=0xaad30f0, rInputSource=..., bCloseStream=false)
    at /data/opt/libreoffice/master/oox/source/core/fastparser.cxx:118
#28 0xae58ecd5 in oox::core::FastParser::parseStream (this=0xaad30f0, rxInStream=uno::Reference to (OInputCompStream *) 0xab6c394, 
    rStreamName="xl/worksheets/sheet19.xml", bCloseStream=false) at /data/opt/libreoffice/master/oox/source/core/fastparser.cxx:126
#29 0xae59f8bb in oox::core::XmlFilterBase::importFragment (this=0x9832e70, rxHandler=rtl::Reference to 0xa036400, rParser=...)
    at /data/opt/libreoffice/master/oox/source/core/xmlfilterbase.cxx:342
#30 0xab939757 in oox::xls::WorkbookHelper::importOoxFragment (this=0x9921ce4, rxHandler=rtl::Reference to 0xa036400, rParser=...)
    at /data/opt/libreoffice/master/sc/source/filter/oox/workbookhelper.cxx:1001
#31 0xab9378ad in oox::xls::(anonymous namespace)::WorkerThread::doWork (this=0xa2401f8)
    at /data/opt/libreoffice/master/sc/source/filter/oox/workbookfragment.cxx:237
#32 0xab9318d6 in ThreadPool::ThreadWorker::execute (this=0xa24a310) at /data/opt/libreoffice/master/sc/source/filter/oox/threadpool.cxx:28
#33 0xb704822e in salhelper::Thread::run (this=0xa24a310) at /data/opt/libreoffice/master/salhelper/source/thread.cxx:40
#34 0xb70483b3 in osl::threadFunc (param=0xa24a318) at /data/opt/libreoffice/master/include/osl/thread.hxx:187
#35 0xb76d90ea in osl_thread_start_Impl (pData=0xa2704c0) at /data/opt/libreoffice/master/sal/osl/unx/thread.c:237
#36 0xb748a07a in start_thread (arg=0xaaf2bb40) at pthread_create.c:309
#37 0xb758e56e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:129

...

#1  0xb7490bb9 in __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S:144
#2  0xb748c467 in _L_lock_961 () from /lib/libpthread.so.0
#3  0xb748c2e8 in __GI___pthread_mutex_lock (mutex=0x8c0fc58) at ../nptl/pthread_mutex_lock.c:114
#4  0xb759b834 in pthread_mutex_lock (mutex=0x8c0fc58) at forward.c:192
#5  0xb76d64ef in osl_acquireMutex (pMutex=0x8c0fc58) at /data/opt/libreoffice/master/sal/osl/unx/mutex.c:104
#6  0xb62aca6e in acquire (this=0x8c0fc3c) at /data/opt/libreoffice/master/include/osl/mutex.hxx:58
#7  SalYieldMutex::acquire (this=0x8c0fc38) at /data/opt/libreoffice/master/vcl/generic/app/geninst.cxx:45
#8  0xb2e35b50 in GtkYieldMutex::acquire (this=0x8c0fc38) at /data/opt/libreoffice/master/vcl/unx/gtk/app/gtkinst.cxx:300
#9  0xb2e34a8a in Guard (pT_=<optimized out>, this=0xbf8d8a6c) at /data/opt/libreoffice/master/include/osl/mutex.hxx:137
#10 sal_gtk_timeout_dispatch (pSource=pSource@entry=0x98b7310) at /data/opt/libreoffice/master/vcl/unx/gtk/app/gtkdata.cxx:827
#11 0xb54ed0c7 in g_main_dispatch (context=0x93c5e00, context@entry=0x98b7310) at gmain.c:3064
#12 g_main_context_dispatch (context=context@entry=0x93c5e00) at gmain.c:3663
#13 0xb54ed488 in g_main_context_iterate (context=context@entry=0x93c5e00, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>)
    at gmain.c:3734
#14 0xb54ed548 in g_main_context_iteration (context=0x93c5e00, may_block=1) at gmain.c:3795
#15 0xb2e348b2 in GtkData::Yield (this=0x8c1ac60, bWait=true, bHandleAllCurrentEvents=false)
    at /data/opt/libreoffice/master/vcl/unx/gtk/app/gtkdata.cxx:575
#16 0xb2e352f4 in GtkInstance::Yield (this=0x8c1ac10, bWait=true, bHandleAllCurrentEvents=false)
    at /data/opt/libreoffice/master/vcl/unx/gtk/app/gtkinst.cxx:423
#17 0xb625e9f3 in ImplYield (i_bWait=true, i_bAllEvents=false) at /data/opt/libreoffice/master/vcl/source/app/svapp.cxx:360
#18 0xb625c72b in Application::Yield () at /data/opt/libreoffice/master/vcl/source/app/svapp.cxx:392
#19 0xab9383cd in importSheetFragments (rSheets=std::vector of length 24, capacity 32 = {...}, rWorkbookHandler=...)
    at /data/opt/libreoffice/master/sc/source/filter/oox/workbookfragment.cxx:334
#20 oox::xls::WorkbookFragment::finalizeImport (this=0x9921ca0) at /data/opt/libreoffice/master/sc/source/filter/oox/workbookfragment.cxx:474
#21 0xae598a4c in oox::core::FragmentHandler2::endDocument (this=0x9921ca0)
    at /data/opt/libreoffice/master/oox/source/core/fragmenthandler2.cxx:50
#22 0xae33ce8c in sax_fastparser::FastSaxParserImpl::parseStream (this=0x99226a8, maStructSource=...)
    at /data/opt/libreoffice/master/sax/source/fastparser/fastparser.cxx:858
#23 0xae58ec20 in oox::core::FastParser::parseStream (this=0xbf8d912c, rInputSource=..., bCloseStream=false)
    at /data/opt/libreoffice/master/oox/source/core/fastparser.cxx:118
#24 0xae58ecd5 in oox::core::FastParser::parseStream (this=0xbf8d912c, rxInStream=uno::Reference to (OInputCompStream *) 0x9922f74, 
    rStreamName="xl/workbook.xml", bCloseStream=false) at /data/opt/libreoffice/master/oox/source/core/fastparser.cxx:126
#25 0xae59f8bb in oox::core::XmlFilterBase::importFragment (this=0x9832e70, rxHandler=rtl::Reference to 0x9921ca0, rParser=...)
    at /data/opt/libreoffice/master/oox/source/core/xmlfilterbase.cxx:342
#26 0xae59fa22 in oox::core::XmlFilterBase::importFragment (this=0x9832e70, rxHandler=rtl::Reference to 0x9921ca0)
    at /data/opt/libreoffice/master/oox/source/core/xmlfilterbase.cxx:284
#27 0xab8d142c in oox::xls::ExcelFilter::importDocument (this=0x9832e70) at /data/opt/libreoffice/master/sc/source/filter/oox/excelfilter.cxx:108
#28 0xae59200d in oox::core::FilterBase::filter (this=0x9832e70, rMediaDescSeq=uno::Sequence of length 12 = {...})
    at /data/opt/libreoffice/master/oox/source/core/filterbase.cxx:461
#29 0xab8d16f4 in oox::xls::ExcelFilter::filter (this=0x9832e70, rDescriptor=uno::Sequence of length 12 = {...})
    at /data/opt/libreoffice/master/sc/source/filter/oox/excelfilter.cxx:174
#30 0xb6da4aad in SfxObjectShell::ImportFrom (this=0x9792ca8, rMedium=..., xInsertPosition=empty uno::Reference)
    at /data/opt/libreoffice/master/sfx2/source/doc/objstor.cxx:2269
#31 0xb6dac9c4 in SfxObjectShell::DoLoad (this=0x9792ca8, pMed=0x9797ea0) at /data/opt/libreoffice/master/sfx2/source/doc/objstor.cxx:767
#32 0xb6dc3c79 in SfxBaseModel::load (this=0x9792778, seqArguments=uno::Sequence of length 13 = {...})
    at /data/opt/libreoffice/master/sfx2/source/doc/sfxbasemodel.cxx:1858
#33 0xb6e12aed in (anonymous namespace)::SfxFrameLoader_Impl::load (this=0x9754bf8, rArgs=uno::Sequence of length 11 = {...}, _rTargetFrame=
    uno::Reference to ((anonymous namespace)::Frame *) 0x94ae134) at /data/opt/libreoffice/master/sfx2/source/view/frmload.cxx:703
#34 0xb0c92099 in framework::LoadEnv::impl_loadContent (this=0x9649fe8) at /data/opt/libreoffice/master/framework/source/loadenv/loadenv.cxx:1122
#35 0xb0c925bd in framework::LoadEnv::startLoading (this=0x9649fe8) at /data/opt/libreoffice/master/framework/source/loadenv/loadenv.cxx:383
#36 0xb0c55363 in framework::LoadDispatcher::impl_dispatch (this=0x9649fb8, rURL=..., lArguments=uno::Sequence of length 4 = {...}, 
    xListener=empty uno::Reference) at /data/opt/libreoffice/master/framework/source/dispatch/loaddispatcher.cxx:115
#37 0xb0c5572f in framework::LoadDispatcher::dispatchWithReturnValue (this=0x9649fb8, rURL=..., lArguments=uno::Sequence of length 4 = {...})
    at /data/opt/libreoffice/master/framework/source/dispatch/loaddispatcher.cxx:62
#38 0xb71e12f6 in comphelper::SynchronousDispatch::dispatch (xStartPoint=uno::Reference to (framework::Desktop *) 0x941a9bc, 
    sURL="file:///home/michael/Downloads/12_1040.xlsx", sTarget="_default", nFlags=0, lArguments=uno::Sequence of length 4 = {...})
    at /data/opt/libreoffice/master/comphelper/source/misc/synchronousdispatch.cxx:69
#39 0xb76a19ee in desktop::DispatchWatcher::executeDispatchRequests (this=0x9633dd8, 
    aDispatchRequestsList=std::vector of length 1, capacity 1 = {...}, bNoTerminate=false)
    at /data/opt/libreoffice/master/desktop/source/app/dispatchwatcher.cxx:447
#40 0xb76a7a38 in desktop::OfficeIPCThread::ExecuteCmdLineRequests (aRequest=...)
    at /data/opt/libreoffice/master/desktop/source/app/officeipcthread.cxx:1061
#41 0xb768fa88 in desktop::Desktop::OpenClients () at /data/opt/libreoffice/master/desktop/source/app/app.cxx:2444
#42 0xb76900f7 in desktop::Desktop::OpenClients_Impl (this=0xbf8da49c) at /data/opt/libreoffice/master/desktop/source/app/app.cxx:1975
#43 0xb6066fe3 in Link::Call (this=0x95de218, pCaller=0x0) at /data/opt/libreoffice/master/include/tools/link.hxx:139
#44 0xb60efd17 in ImplHandleUserEvent (pSVEvent=0x93dda18) at /data/opt/libreoffice/master/vcl/source/window/winproc.cxx:1914
#45 ImplWindowFrameProc (pWindow=0x943de38, nEvent=22, pEvent=0x93dda18) at /data/opt/libreoffice/master/vcl/source/window/winproc.cxx:2485
#46 0xb62ad064 in SalFrame::CallCallback (this=0x943e618, nEvent=22, pEvent=0x93dda18) at /data/opt/libreoffice/master/vcl/inc/salframe.hxx:242
#47 0xb62acdb5 in SalGenericDisplay::DispatchInternalEvent (this=0x93c6950) at /data/opt/libreoffice/master/vcl/generic/app/gendisp.cxx:90
#48 0xb2e34b79 in GtkData::userEventFn (data=0x8c1ac60) at /data/opt/libreoffice/master/vcl/unx/gtk/app/gtkdata.cxx:935
#49 0xb2e34bdc in call_userEventFn (data=data@entry=0x8c1ac60) at /data/opt/libreoffice/master/vcl/unx/gtk/app/gtkdata.cxx:945
#50 0xb54e9c70 in g_idle_dispatch (source=source@entry=0x9411508, callback=0xb2e34bac <call_userEventFn(void*)>, user_data=0x8c1ac60)
    at gmain.c:5319
#51 0xb54ed0c7 in g_main_dispatch (context=0x93c5e00, context@entry=0x9411508) at gmain.c:3064
#52 g_main_context_dispatch (context=context@entry=0x93c5e00) at gmain.c:3663
#53 0xb54ed488 in g_main_context_iterate (context=context@entry=0x93c5e00, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>)
#54 0xb54ed548 in g_main_context_iteration (context=0x93c5e00, may_block=1) at gmain.c:3795
#55 0xb2e348b2 in GtkData::Yield (this=0x8c1ac60, bWait=true, bHandleAllCurrentEvents=false)
    at /data/opt/libreoffice/master/vcl/unx/gtk/app/gtkdata.cxx:575
#56 0xb2e352f4 in GtkInstance::Yield (this=0x8c1ac10, bWait=true, bHandleAllCurrentEvents=false)
    at /data/opt/libreoffice/master/vcl/unx/gtk/app/gtkinst.cxx:423
#57 0xb625e9f3 in ImplYield (i_bWait=true, i_bAllEvents=false) at /data/opt/libreoffice/master/vcl/source/app/svapp.cxx:360
#58 0xb625c72b in Application::Yield () at /data/opt/libreoffice/master/vcl/source/app/svapp.cxx:392
#59 0xb625c75d in Application::Execute () at /data/opt/libreoffice/master/vcl/source/app/svapp.cxx:341
#60 0xb7691400 in desktop::Desktop::Main (this=0xbf8da49c) at /data/opt/libreoffice/master/desktop/source/app/app.cxx:1682
#61 0xb62607b9 in ImplSVMain () at /data/opt/libreoffice/master/vcl/source/app/svmain.cxx:160
#62 0xb626088b in SVMain () at /data/opt/libreoffice/master/vcl/source/app/svmain.cxx:193
#63 0xb76a93fa in soffice_main () at /data/opt/libreoffice/master/desktop/source/app/sofficemain.cxx:93
#64 0x080485ac in sal_main () at /data/opt/libreoffice/master/desktop/source/app/main.c:48
#65 main (argc=3, argv=0xbf8da5c4) at /data/opt/libreoffice/master/desktop/source/app/main.c:47

Thread 2 (Thread 0xa9777b40 (LWP 17898)):
#0  SfxItemSet::~SfxItemSet (this=0xa9776bb8, __in_chrg=<optimized out>) at /data/opt/libreoffice/master/svl/source/items/itemset.cxx:274
#1  0xab91a750 in oox::xls::RichStringPortion::convert (this=0xa0a2598, rEE=..., rSelection=..., pFont=0xa0505a8)
    at /data/opt/libreoffice/master/sc/source/filter/oox/richstring.cxx:145
#2  0xab91a814 in oox::xls::RichString::convert (this=0xa0a2558, rEE=..., pFirstPortionFont=0xa0505a8)
    at /data/opt/libreoffice/master/sc/source/filter/oox/richstring.cxx:410
#3  0xab942ae4 in oox::xls::WorksheetHelper::putRichString (this=0x99e9494, rAddress=..., rString=..., pFirstPortionFont=0xa0505a8)
    at /data/opt/libreoffice/master/sc/source/filter/oox/worksheethelper.cxx:1566
#4  0xab91f0ca in oox::xls::SheetDataBuffer::setStringCell (this=0x99e9494, rModel=..., rxString=
  boost::shared_ptr {<oox::xls::WorkbookHelper> = {_vptr.WorkbookHelper = 0xabac2508 <vtable for oox::xls::RichString+8>, mrBookGlob = @0x98900b0}, maTextPortions = {<std::vector<boost::shared_ptr<oox::xls::RichStringPortion>, std::allocator<boost::shared_ptr<oox::xls::RichStringPortion> > >> = std::vector of length 2, capacity 2 = {boost::shared_ptr {<oox::xls::WorkbookHelper> = {_vptr.WorkbookHelper = 0xabac24d8 <vtable for oox::xls::RichStringPortion+8>, mrBookGlob = @0x98900b0}, maText = "Form 8910", mxFont = boost::shared_ptr {<oox::xls::WorkbookHelper> = {_vptr.WorkbookHelper = 0xabac13e0 <vtable for oox::xls::Font+8>, mrBookGlob = @0x98900b0}, maModel = {maName = "Arial", maColor = {<oox::drawingml::Color> = {meMode = oox::drawingml::Color::COLOR_FINAL, maTransforms = std::vector of length 0, capacity 0, mnC1 = -1, mnC2 = 0, mnC3 = 0, mnAlpha = 100000, msSchemeName = "", maInteropTransformations = empty uno::Sequence}, <No data fields>}, mnScheme = 3560, mnFamily = 2, mnCharSet = 1, mfHeight = 10, mnUnderline = 3560, mnEscapement = 809, mbBold = true, mbItalic = false, mbStrikeout = false, mbOutline = false, mbShadow = false}, maApiData = {maLatinFont = {maName = "Arial", mnFamily = 5, mnTextEnc = 0}, maAsianFont = {maName = "", mnFamily = 0, mnTextEnc = 0}, maCmplxFont = {maName = "Arial", mnFamily = 5, mnTextEnc = 0}, maDesc = {Name = "Arial", Height = 200, Width = 0, StyleName = "", Family = 5, CharSet = 0, Pitch = 0, CharacterWidth = 100, Weight = 150, Slant = com::sun::star::awt::FontSlant_NONE, Underline = 0, Strikeout = 0, Orientation = 0, Kerning = 0 '\000', WordLineMode = 0 '\000', Type = 0}, mnColor = -1, mnEscapement = 0, mnEscapeHeight = 100 'd', mbOutline = false, mbShadow = false}, maUsedFlags = {mbNameUsed = true, mbColorUsed = true, mbSchemeUsed = true, mbHeightUsed = true, mbUnderlineUsed = true, mbEscapementUsed = true, mbWeightUsed = true, ---Type <return> to continue, or q <return> to quit---
mbPostureUsed = true, mbStrikeoutUsed = true, mbOutlineUsed = true, mbShadowUsed = true}, mbDxf = false}, mnFontId = -1, mbConverted = false}, boost::shared_ptr {<oox::xls::WorkbookHelper> = {_vptr.WorkbookHelper = 0xabac24d8 <vtable for oox::xls::RichStringPortion+8>, mrBookGlob = @0x98900b0}, maText = ", line 22", mxFont = boost::shared_ptr {<oox::xls::WorkbookHelper> = {_vptr.WorkbookHelper = 0xabac13e0 <vtable for oox::xls::Font+8>, mrBookGlob = @0x98900b0}, maModel = {maName = "Arial", maColor = {<oox::drawingml::Color> = {meMode = oox::drawingml::Color::COLOR_FINAL, maTransforms = std::vector of length 0, capacity 0, mnC1 = -1, mnC2 = 0, mnC3 = 0, mnAlpha = 100000, msSchemeName = "", maInteropTransformations = empty uno::Sequence}, <No data fields>}, mnScheme = 3560, mnFamily = 2, mnCharSet = 1, mfHeight = 10, mnUnderline = 3560, mnEscapement = 809, mbBold = false, mbItalic = false, mbStrikeout = false, mbOutline = false, mbShadow = false}, maApiData = {maLatinFont = {maName = "Arial", mnFamily = 5, mnTextEnc = 0}, maAsianFont = {maName = "", mnFamily = 0, mnTextEnc = 0}, maCmplxFont = {maName = "Arial", mnFamily = 5, mnTextEnc = 0}, maDesc = {Name = "Arial", Height = 200, Width = 0, StyleName = "", Family = 5, CharSet = 0, Pitch = 0, CharacterWidth = 100, Weight = 100, Slant = com::sun::star::awt::FontSlant_NONE, Underline = 0, Strikeout = 0, Orientation = 0, Kerning = 0 '\000', WordLineMode = 0 '\000', Type = 0}, mnColor = -1, mnEscapement = 0, mnEscapeHeight = 100 'd', mbOutline = false, mbShadow = false}, maUsedFlags = {mbNameUsed = true, mbColorUsed = true, mbSchemeUsed = true, mbHeightUsed = true, mbUnderlineUsed = true, mbEscapementUsed = true, mbWeightUsed = true, mbPostureUsed = true, mbStrikeoutUsed = true, mbOutlineUsed = true, mbShadowUsed = true}, mbDxf = false}, mnFontId = -1, mbConverted = false}}, <No data fields>}, maPhonSettings = {<oox::xls::WorkbookHelper> = {_vptr.WorkbookHelper = 0xabac24e8 <vtable for oox::xls::PhoneticSettings+8>, mrBookGlob = @0x98900b0}, maModel = {mnFontId = -1, mnType = 2415, mnAlignment = 2993}}, maPhonPortions = {<std::vector<boost::shared_ptr<oox::xls::RichStringPhonetic>, std::allocator<boost::shared_ptr<oox::xls::RichStringPhonetic> > >> = std::vector of length 0, capacity 0, <No data fields>}})
    at /data/opt/libreoffice/master/sc/source/filter/oox/sheetdatabuffer.cxx:163
#5  0xab91f13a in oox::xls::SheetDataBuffer::setStringCell (this=0x99e9494, rModel=..., nStringId=1540)
    at /data/opt/libreoffice/master/sc/source/filter/oox/sheetdatabuffer.cxx:172
#6  0xab921315 in oox::xls::SheetDataContext::onEndElement (this=0xae48090)
    at /data/opt/libreoffice/master/sc/source/filter/oox/sheetdatacontext.cxx:208
#7  0xae58d71c in oox::core::ContextHandler2Helper::implEndElement (this=0xae480b0, nElement=2425852)
    at /data/opt/libreoffice/master/oox/source/core/contexthandler2.cxx:116
#8  0xae58d74f in oox::core::ContextHandler2::endFastElement (this=0xae48090, nElement=2425852)
    at /data/opt/libreoffice/master/oox/source/core/contexthandler2.cxx:205
#9  0xae339ce2 in (anonymous namespace)::Entity::endElement (this=this@entry=0xad2b868)
    at /data/opt/libreoffice/master/sax/source/fastparser/fastparser.cxx:484
#10 0xae33cdaf in consume (pEventList=0xaf405c8, this=0xa94ba30) at /data/opt/libreoffice/master/sax/source/fastparser/fastparser.cxx:1011
#11 sax_fastparser::FastSaxParserImpl::parseStream (this=0xa94ba30, maStructSource=...)
    at /data/opt/libreoffice/master/sax/source/fastparser/fastparser.cxx:840
#12 0xae58ec20 in oox::core::FastParser::parseStream (this=0xacf7680, rInputSource=..., bCloseStream=false)
    at /data/opt/libreoffice/master/oox/source/core/fastparser.cxx:118
#13 0xae58ecd5 in oox::core::FastParser::parseStream (this=0xacf7680, rxInStream=uno::Reference to (OInputCompStream *) 0xacf7fe4, 
    rStreamName="xl/worksheets/sheet22.xml", bCloseStream=false) at /data/opt/libreoffice/master/oox/source/core/fastparser.cxx:126
#14 0xae59f8bb in oox::core::XmlFilterBase::importFragment (this=0x9832e70, rxHandler=rtl::Reference to 0xa2192e8, rParser=...)
    at /data/opt/libreoffice/master/oox/source/core/xmlfilterbase.cxx:342
#15 0xab939757 in oox::xls::WorkbookHelper::importOoxFragment (this=0x9921ce4, rxHandler=rtl::Reference to 0xa2192e8, rParser=...)
    at /data/opt/libreoffice/master/sc/source/filter/oox/workbookhelper.cxx:1001
---Type <return> to continue, or q <return> to quit---
#16 0xab9378ad in oox::xls::(anonymous namespace)::WorkerThread::doWork (this=0xa260338)
    at /data/opt/libreoffice/master/sc/source/filter/oox/workbookfragment.cxx:237
#17 0xab9318d6 in ThreadPool::ThreadWorker::execute (this=0xa2fb000) at /data/opt/libreoffice/master/sc/source/filter/oox/threadpool.cxx:28
#18 0xb704822e in salhelper::Thread::run (this=0xa2fb000) at /data/opt/libreoffice/master/salhelper/source/thread.cxx:40
#19 0xb70483b3 in osl::threadFunc (param=0xa2fb008) at /data/opt/libreoffice/master/include/osl/thread.hxx:187
#20 0xb76d90ea in osl_thread_start_Impl (pData=0xa4c0718) at /data/opt/libreoffice/master/sal/osl/unx/thread.c:237
#21 0xb748a07a in start_thread (arg=0xa9777b40) at pthread_create.c:309
#22 0xb758e56e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:129
Comment 1 Michael Meeks 2014-09-26 14:20:36 UTC
Protected the EditEng with the SolarMutex, not beautiful, and prolly there are more issues but ... fixed for now.
Comment 2 Commit Notification 2014-09-26 14:20:58 UTC
Michael Meeks committed a patch related to this issue.
It has been pushed to "master":

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

fdo#84370 - xlsx threaded import - protect editeng.



The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds
Affected users are encouraged to test the fix and report feedback.