Bug 54825

Summary: Crash while saving changes in odt document
Product: LibreOffice Reporter: Ruslan Kabatsayev <b7.10110111>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED WORKSFORME    
Severity: major CC: serval2412
Priority: medium    
Version: 4.0.0.0.alpha0+ Master   
Hardware: Other   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Attachments: Test document

Description Ruslan Kabatsayev 2012-09-12 19:09:30 UTC
Created attachment 67061 [details]
Test document

Version 3.7.0.0.alpha0+ (Build ID: dc44bd)

How to reproduce:
1. Open test document
2. Press Del to delete the "1."
3. Press Ctrl+S to save
4. See save going to about 40%, then crash.

Backtrace:
rogram received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb28be800 (LWP 20923)]
0xae0983c2 in XMLTextMasterPageExport::exportMasterPageContent (this=0x95f0150, rPropSet=@0xbf9865c0, bAutoStyles=0 '\0')
    at /fastdocs/programmer/libreoffice/libo/xmloff/source/text/XMLTextMasterPageExport.cxx:183
183                 bFooterFirst = !*(sal_Bool *)aAny.getValue();
Current language:  auto; currently c++
(gdb) bt
#0  0xae0983c2 in XMLTextMasterPageExport::exportMasterPageContent (this=0x95f0150, rPropSet=@0xbf9865c0, bAutoStyles=0 '\0')
    at /fastdocs/programmer/libreoffice/libo/xmloff/source/text/XMLTextMasterPageExport.cxx:183
#1  0xadffba7d in XMLPageExport::exportStyle (this=0x95f0150, rStyle=@0xbf986624, bAutoStyles=0 '\0') at /fastdocs/programmer/libreoffice/libo/xmloff/source/style/XMLPageExport.cxx:153
#2  0xadffc2b8 in XMLPageExport::exportStyles (this=0x95f0150, bUsed=0 '\0', bAutoStyles=0 '\0') at /fastdocs/programmer/libreoffice/libo/xmloff/source/style/XMLPageExport.cxx:214
#3  0xacc4e3f7 in XMLPageExport::exportMasterStyles (this=0x95f0150, bUsed=0 '\0') at /fastdocs/programmer/libreoffice/libo/solver/unxlngi6.pro/inc/xmloff/XMLPageExport.hxx:97
#4  0xacc4ddff in SwXMLExport::_ExportMasterStyles (this=0xadbb1328) at /fastdocs/programmer/libreoffice/libo/sw/source/filter/xml/xmlfmte.cxx:262
#5  0xadead19d in SvXMLExport::ImplExportMasterStyles (this=0xadbb1328) at /fastdocs/programmer/libreoffice/libo/xmloff/source/core/xmlexp.cxx:1181
#6  0xadeade8b in SvXMLExport::exportDoc (this=0xadbb1328, eClass=xmloff::token::XML_TEXT) at /fastdocs/programmer/libreoffice/libo/xmloff/source/core/xmlexp.cxx:1445
#7  0xacc42218 in SwXMLExport::exportDoc (this=0xadbb1328, eClass=xmloff::token::XML_TEXT) at /fastdocs/programmer/libreoffice/libo/sw/source/filter/xml/xmlexp.cxx:326
#8  0xadeabc2c in SvXMLExport::filter (this=0xadbb1328, aDescriptor=@0xbf986c70) at /fastdocs/programmer/libreoffice/libo/xmloff/source/core/xmlexp.cxx:873
#9  0xacc403fc in SwXMLWriter::WriteThroughComponent (this=0x9702718, xOutputStream=@0xbf986a2c, xComponent=@0xbf986c74, rFactory=@0xbf986cd4, 
    pServiceName=0xacffa1dc "com.sun.star.comp.Writer.XMLOasisStylesExporter", rArguments=@0xbf986c78, rMediaDesc=@0xbf986c70) at /fastdocs/programmer/libreoffice/libo/sw/source/filter/xml/wrtxml.cxx:647
#10 0xacc3fec5 in SwXMLWriter::WriteThroughComponent (this=0x9702718, xComponent=@0xbf986c74, pStreamName=0xacffa237 "styles.xml", rFactory=@0xbf986cd4, 
    pServiceName=0xacffa1dc "com.sun.star.comp.Writer.XMLOasisStylesExporter", rArguments=@0xbf986c78, rMediaDesc=@0xbf986c70, bPlainStream=0 '\0')
    at /fastdocs/programmer/libreoffice/libo/sw/source/filter/xml/wrtxml.cxx:586
#11 0xacc3ee08 in SwXMLWriter::_Write (this=0x9702718, pTargetMedium=0x96bb200) at /fastdocs/programmer/libreoffice/libo/sw/source/filter/xml/wrtxml.cxx:413
#12 0xacc3f97a in SwXMLWriter::WriteMedium (this=0x9702718, aTargetMedium=@0x96bb200) at /fastdocs/programmer/libreoffice/libo/sw/source/filter/xml/wrtxml.cxx:509
#13 0xacc0a8e4 in StgWriter::Write (this=0x9702718, rPaM=@0xaaadd780, rStg=@0xbf986e8c, pFName=0x0, pMedium=0x96bb200) at /fastdocs/programmer/libreoffice/libo/sw/source/filter/writer/writer.cxx:544
#14 0xacc3f9f3 in SwXMLWriter::Write (this=0x9702718, rPaM=@0xaaadd780, rMed=@0x96bb200, pFileName=0x0) at /fastdocs/programmer/libreoffice/libo/sw/source/filter/xml/wrtxml.cxx:517
#15 0xacb64713 in SwWriter::Write (this=0xbf987118, rxWriter=@0xbf98714c, pRealFileName=0x0) at /fastdocs/programmer/libreoffice/libo/sw/source/filter/basflt/shellio.cxx:909
#16 0xacc8ba81 in SwDocShell::SaveAs (this=0x92d3050, rMedium=@0x96bb200) at /fastdocs/programmer/libreoffice/libo/sw/source/ui/app/docsh.cxx:496
#17 0xb6dcba49 in SfxObjectShell::SaveAsOwnFormat (this=0x92d3050, rMedium=@0x96bb200) at /fastdocs/programmer/libreoffice/libo/sfx2/source/doc/objstor.cxx:3001
#18 0xb6dc454a in SfxObjectShell::SaveTo_Impl (this=0x92d3050, rMedium=@0x96bb200, pSet=0x9841740) at /fastdocs/programmer/libreoffice/libo/sfx2/source/doc/objstor.cxx:1397
#19 0xb6dc959f in SfxObjectShell::DoSave_Impl (this=0x92d3050, pArgs=0x9841740) at /fastdocs/programmer/libreoffice/libo/sfx2/source/doc/objstor.cxx:2427
#20 0xb6dc9af6 in SfxObjectShell::Save_Impl (this=0x92d3050, pSet=0x9841740) at /fastdocs/programmer/libreoffice/libo/sfx2/source/doc/objstor.cxx:2503
#21 0xb6dfedea in SfxBaseModel::storeSelf (this=0xadbafd40, aSeqArgs=@0xbf987be8) at /fastdocs/programmer/libreoffice/libo/sfx2/source/doc/sfxbasemodel.cxx:1661
#22 0xb6d9f315 in SfxStoringHelper::GUIStoreModel (this=0xbf98882c, xModel=@0xbf9889d4, aSlotName=@0xbf9889d0, aArgsSequence=@0xbf988840, bPreselectPassword=0 '\0', aSuggestedName={pData = 0xb776d2ec}, 
    nDocumentSignatureState=0) at /fastdocs/programmer/libreoffice/libo/sfx2/source/doc/guisaveas.cxx:1379
#23 0xb6db9c8c in SfxObjectShell::ExecFile_Impl (this=0x92d3050, rReq=@0x9848f48) at /fastdocs/programmer/libreoffice/libo/sfx2/source/doc/objserv.cxx:615
#24 0xb6db7e08 in SfxStubSfxObjectShellExecFile_Impl (pShell=0x92d3050, rReq=@0x9848f48) at /fastdocs/programmer/libreoffice/libo/workdir/unxlngi6.pro/SdiTarget/sfx2/sdi/sfxslots.hxx:151
#25 0xb6c5f870 in SfxShell::CallExec (this=0x92d3050, pFunc=0xb6db7df0 <SfxStubSfxObjectShellExecFile_Impl(SfxShell*, SfxRequest&)>, rReq=@0x9848f48)
    at /fastdocs/programmer/libreoffice/libo/sfx2/inc/sfx2/shell.hxx:188
#26 0xb6e89fcf in SfxDispatcher::Call_Impl (this=0x93eb010, rShell=@0x92d3050, rSlot=@0xb70038d4, rReq=@0x9848f48, bRecord=1 '\001')
    at /fastdocs/programmer/libreoffice/libo/sfx2/source/control/dispatch.cxx:249
#27 0xb6e8c6a4 in SfxDispatcher::PostMsgHandler (this=0x93eb010, pReq=0x9848f48) at /fastdocs/programmer/libreoffice/libo/sfx2/source/control/dispatch.cxx:1234
#28 0xb6e8c58a in SfxDispatcher::LinkStubPostMsgHandler (pThis=0x93eb010, pCaller=0x9848f48) at /fastdocs/programmer/libreoffice/libo/sfx2/source/control/dispatch.cxx:1205
#29 0xb6bb4557 in Link::Call (this=0x93eaf28, pCaller=0x9848f48) at /fastdocs/programmer/libreoffice/libo/solver/unxlngi6.pro/inc/tools/link.hxx:123
#30 0xb6e33b58 in GenLink::Call (this=0x93eaf28, pCaller=0x9848f48) at /fastdocs/programmer/libreoffice/libo/sfx2/inc/sfx2/genlink.hxx:45
#31 0xb6e33ab3 in SfxHintPoster::Event (this=0x93eaf20, pPostedHint=0x9848f48) at /fastdocs/programmer/libreoffice/libo/sfx2/source/notify/hintpost.cxx:62
#32 0xb6e33b7d in SfxHintPoster::DoEvent_Impl (this=0x93eaf20, pPostedHint=0x9848f48) at /fastdocs/programmer/libreoffice/libo/sfx2/source/notify/hintpost.cxx:52
#33 0xb6e33a96 in SfxHintPoster::LinkStubDoEvent_Impl (pThis=0x93eaf20, pCaller=0x9848f48) at /fastdocs/programmer/libreoffice/libo/sfx2/source/notify/hintpost.cxx:56
---Type <return> to continue, or q <return> to quit---
#34 0xb5521385 in Link::Call (this=0x96ec490, pCaller=0x9848f48) at /fastdocs/programmer/libreoffice/libo/solver/unxlngi6.pro/inc/tools/link.hxx:123
#35 0xb58f2076 in ImplHandleUserEvent (pSVEvent=0x9840220) at /fastdocs/programmer/libreoffice/libo/vcl/source/window/winproc.cxx:1997
#36 0xb58f316e in ImplWindowFrameProc (pWindow=0x8603258, nEvent=22, pEvent=0x9840220) at /fastdocs/programmer/libreoffice/libo/vcl/source/window/winproc.cxx:2569
#37 0xb59002c9 in SalFrame::CallCallback (this=0x86034d0, nEvent=22, pEvent=0x9840220) at /fastdocs/programmer/libreoffice/libo/vcl/inc/salframe.hxx:278
#38 0xb58fffa6 in SalGenericDisplay::DispatchInternalEvent (this=0x8097208) at /fastdocs/programmer/libreoffice/libo/vcl/generic/app/gendisp.cxx:102
#39 0xb1cfbf17 in GtkData::userEventFn (data=0x806e080) at /fastdocs/programmer/libreoffice/libo/vcl/unx/gtk/app/gtkdata.cxx:940
#40 0xb1cfbf6e in call_userEventFn (data=0x806e080) at /fastdocs/programmer/libreoffice/libo/vcl/unx/gtk/app/gtkdata.cxx:950
#41 0xb4f9ba31 in g_idle_dispatch () from /usr/lib/libglib-2.0.so.0
#42 0xb4f991d9 in g_main_dispatch () from /usr/lib/libglib-2.0.so.0
#43 0xb4f99dc6 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#44 0xb4f99fb5 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#45 0xb4f9a08e in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#46 0xb1cfafcc in GtkData::Yield (this=0x806e080, bWait=true, bHandleAllCurrentEvents=false) at /fastdocs/programmer/libreoffice/libo/vcl/unx/gtk/app/gtkdata.cxx:578
#47 0xb1cfd599 in GtkInstance::Yield (this=0x806dfa0, bWait=true, bHandleAllCurrentEvents=false) at /fastdocs/programmer/libreoffice/libo/vcl/unx/gtk/app/gtkinst.cxx:538
#48 0xb5531dca in ImplYield (i_bWait=true, i_bAllEvents=false) at /fastdocs/programmer/libreoffice/libo/vcl/source/app/svapp.cxx:434
#49 0xb552e5a4 in Application::Yield (i_bAllEvents=false) at /fastdocs/programmer/libreoffice/libo/vcl/source/app/svapp.cxx:468
#50 0xb552e53e in Application::Execute () at /fastdocs/programmer/libreoffice/libo/vcl/source/app/svapp.cxx:413
#51 0xb768b69f in desktop::Desktop::Main (this=0xbf9894b4) at /fastdocs/programmer/libreoffice/libo/desktop/source/app/app.cxx:1712
#52 0xb5538590 in ImplSVMain () at /fastdocs/programmer/libreoffice/libo/vcl/source/app/svmain.cxx:173
#53 0xb55386c8 in SVMain () at /fastdocs/programmer/libreoffice/libo/vcl/source/app/svmain.cxx:210
#54 0xb76c1d64 in soffice_main () at /fastdocs/programmer/libreoffice/libo/desktop/source/app/sofficemain.cxx:85
#55 0x080485ec in sal_main () at /fastdocs/programmer/libreoffice/libo/desktop/source/app/main.c:25
#56 0x080485c0 in main (argc=4, argv=0xbf9895d4) at /fastdocs/programmer/libreoffice/libo/desktop/source/app/main.c:24
Comment 1 Julien Nabet 2012-09-22 09:46:10 UTC
On pc Debian x86-64 with master sources updated today, I removed "1" and saved ; i don't reproduce the problem.

Ruslan: Could you give a try again with updated version?
Comment 2 Ruslan Kabatsayev 2012-09-22 11:14:27 UTC
(In reply to comment #1)
Still crashes with the same backtrace in Version 3.7.0.0.alpha0+ (Build ID: ecf56e)
Comment 3 Julien Nabet 2012-09-22 11:25:12 UTC
Did you try after having renamed your LO directory profile?
Is it the same bt?
Comment 4 Ruslan Kabatsayev 2012-09-22 11:30:59 UTC
(In reply to comment #3)
> Did you try after having renamed your LO directory profile?
Tried renaming ~/.libreoffice and ~/.config/libreoffice, still the same bt.
Comment 5 Julien Nabet 2012-09-22 14:55:14 UTC
I still can't reproduce this :-(

Which distrib (+ version) have you got?
Could you give the result of this command:
uname -rms
Comment 6 Ruslan Kabatsayev 2012-09-22 19:04:26 UTC
(In reply to comment #5)
> Which distrib (+ version) have you got?
My distro is LFS 6.3, but most of packages are much newer than from that version (except some core ones like glibc).
If you have some specific package(s) in mind, I can try upgrading/downgrading it and check if this helps.
> Could you give the result of this command:
> uname -rms
Linux 3.2.1 i686
Comment 7 Julien Nabet 2012-10-06 05:51:02 UTC
Ruslan: Do you have another machine to try to reproduce? (if possible an LFS without customization + another Linux distribution)
Comment 8 Ruslan Kabatsayev 2012-10-20 11:37:24 UTC
No longer reproduces as of Version 3.7.0.0.alpha0+ (Build ID: 370m0(Build:0)) (at e5090510cbc1e6130d0a173f3ceacba880d48ea4). So, considering fixed.
Comment 9 Julien Nabet 2012-10-20 11:39:07 UTC
Ruslan: thank you for your feedback. I just update "FIXED" to "WFM" since we don't know if there was a fix actually.