Bug 85442 - abort() while saving anything in ODF format
Summary: abort() while saving anything in ODF format
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
4.3.2.2 release
Hardware: x86-64 (AMD64) OpenBSD
: medium major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-25 14:44 UTC by Robert Nagy
Modified: 2014-12-21 18:58 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
stdout of running writer (36.81 KB, text/plain)
2014-10-28 18:58 UTC, Robert Nagy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Nagy 2014-10-25 14:44:04 UTC
#0  0x000004fed0e7f0da in kill () at <stdin>:2
#1  0x000004fed0ee1489 in abort () at /usr/src/lib/libc/stdlib/abort.c:53
#2  0x000004ff11cb0df5 in _Unwind_Resume (exc=exc@entry=0x4fef11b5360) at /usr/src/gnu/usr.bin/cc/libgcc/../../../gcc/gcc/unwind.inc:238
#3  0x000004ff859ee655 in ~OUString (this=0x7f7fffff1380, __in_chrg=<optimized out>) at /home/pobj/libreoffice-4.3.2.2-no_java-parallel-no_lang/libreoffice-4.3.2.2/include/rtl/ustring.hxx:297
#4  (anonymous namespace)::create (rServiceSpecifier=..., referer=...) at /home/pobj/libreoffice-4.3.2.2-no_java-parallel-no_lang/libreoffice-4.3.2.2/svx/source/unodraw/unomod.cxx:197
#5  0x000004ff859ee69c in SvxUnoDrawMSFactory::createInstance (this=this@entry=0x4fea2b03928, rServiceSpecifier=...)
    at /home/pobj/libreoffice-4.3.2.2-no_java-parallel-no_lang/libreoffice-4.3.2.2/svx/source/unodraw/unomod.cxx:205
#6  0x000004ff85b3c7f0 in SvxFmMSFactory::createInstance (this=0x4fea2b03928, rServiceSpecifier=...) at /home/pobj/libreoffice-4.3.2.2-no_java-parallel-no_lang/libreoffice-4.3.2.2/svx/source/form/fmdmod.cxx:45
#7  0x000004ff86d1337e in SwXTextDocument::create(rtl::OUString const&, com::sun::star::uno::Sequence<com::sun::star::uno::Any> const*) () from /usr/local/lib/libreoffice/program/../program/libswlo.so
#8  0x000004ff86d1349b in SwXTextDocument::createInstance(rtl::OUString const&) () from /usr/local/lib/libreoffice/program/../program/libswlo.so
#9  0x000004ff84dea6fd in SvXMLExport::setSourceDocument(com::sun::star::uno::Reference<com::sun::star::lang::XComponent> const&) () from /usr/local/lib/libreoffice/program/libxolo.so
#10 0x000004ff86b5e47d in SwXMLWriter::WriteThroughComponent(com::sun::star::uno::Reference<com::sun::star::io::XOutputStream> const&, com::sun::star::uno::Reference<com::sun::star::lang::XComponent> const&, com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&, char const*, com::sun::star::uno::Sequence<com::sun::star::uno::Any> const&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&) () from /usr/local/lib/libreoffice/program/../program/libswlo.so
#11 0x000004ff86b5ed0d in SwXMLWriter::WriteThroughComponent(com::sun::star::uno::Reference<com::sun::star::lang::XComponent> const&, char const*, com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&, char const*, com::sun::star::uno::Sequence<com::sun::star::uno::Any> const&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&) ()
   from /usr/local/lib/libreoffice/program/../program/libswlo.so
#12 0x000004ff86b60950 in SwXMLWriter::_Write(com::sun::star::uno::Reference<com::sun::star::task::XStatusIndicator> const&, rtl::OUString const&) ()
   from /usr/local/lib/libreoffice/program/../program/libswlo.so
#13 0x000004ff86b62c15 in SwXMLWriter::WriteMedium(SfxMedium&) () from /usr/local/lib/libreoffice/program/../program/libswlo.so
#14 0x000004ff86b3d01e in StgWriter::Write(SwPaM&, com::sun::star::uno::Reference<com::sun::star::embed::XStorage> const&, rtl::OUString const*, SfxMedium*) ()
   from /usr/local/lib/libreoffice/program/../program/libswlo.so
#15 0x000004ff86b5dde8 in SwXMLWriter::Write(SwPaM&, SfxMedium&, rtl::OUString const*) () from /usr/local/lib/libreoffice/program/../program/libswlo.so
#16 0x000004ff86ab3fce in SwWriter::Write(tools::SvRef<Writer>&, rtl::OUString const*) () from /usr/local/lib/libreoffice/program/../program/libswlo.so
#17 0x000004ff86ba4584 in SwDocShell::SaveAs(SfxMedium&) () from /usr/local/lib/libreoffice/program/../program/libswlo.so
#18 0x000004fec4e3b79b in SfxObjectShell::SaveAsOwnFormat(SfxMedium&) () from /usr/local/lib/libreoffice/program/libsfxlo.so
#19 0x000004fec4e3efee in SfxObjectShell::SaveTo_Impl(SfxMedium&, SfxItemSet const*) () from /usr/local/lib/libreoffice/program/libsfxlo.so
#20 0x000004fec4e40dfa in SfxObjectShell::PreDoSaveAs_Impl(rtl::OUString const&, rtl::OUString const&, SfxItemSet*) () from /usr/local/lib/libreoffice/program/libsfxlo.so
#21 0x000004fec4e4172c in SfxObjectShell::CommonSaveAs_Impl(INetURLObject const&, rtl::OUString const&, SfxItemSet*) () from /usr/local/lib/libreoffice/program/libsfxlo.so
#22 0x000004fec4e2b1b5 in SfxObjectShell::APISaveAs_Impl(rtl::OUString const&, SfxItemSet*) () from /usr/local/lib/libreoffice/program/libsfxlo.so
#23 0x000004fec4e7797c in SfxBaseModel::impl_store(rtl::OUString const&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&, bool) () from /usr/local/lib/libreoffice/program/libsfxlo.so
#24 0x000004fec4e79195 in SfxBaseModel::storeAsURL(rtl::OUString const&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&) () from /usr/local/lib/libreoffice/program/libsfxlo.so
#25 0x000004fec4e11ee7 in SfxStoringHelper::GUIStoreModel(com::sun::star::uno::Reference<com::sun::star::frame::XModel>, rtl::OUString const&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>&, bool, rtl::OUString const&, unsigned short) () from /usr/local/lib/libreoffice/program/libsfxlo.so
#26 0x000004fec4e2dbdd in SfxObjectShell::ExecFile_Impl(SfxRequest&) () from /usr/local/lib/libreoffice/program/libsfxlo.so
#27 0x000004fec4f33df9 in SfxDispatcher::Call_Impl(SfxShell&, SfxSlot const&, SfxRequest&, bool) () from /usr/local/lib/libreoffice/program/libsfxlo.so
#28 0x000004fec4f37fbe in SfxDispatcher::PostMsgHandler(SfxRequest*) () from /usr/local/lib/libreoffice/program/libsfxlo.so
#29 0x000004fec4ead9fa in SfxHintPoster::LinkStubDoEvent_Impl(void*, void*) () from /usr/local/lib/libreoffice/program/libsfxlo.so
#30 0x000004ff5bf6b42a in ImplWindowFrameProc(Window*, SalFrame*, unsigned short, void const*) () from /usr/local/lib/libreoffice/program/libvcllo.so
#31 0x000004ff5c1ad198 in SalGenericDisplay::DispatchInternalEvent() () from /usr/local/lib/libreoffice/program/libvcllo.so
#32 0x000004ff0917b4fe in GtkData::userEventFn(void*) () from /usr/local/lib/libreoffice/program/libvclplug_gtklo.so
#33 0x000004ff0917b571 in call_userEventFn () from /usr/local/lib/libreoffice/program/libvclplug_gtklo.so
#34 0x000004ff1cc2ae22 in g_main_context_dispatch () from /usr/local/lib/libglib-2.0.so.4200.0
#35 0x000004ff1cc2cf9e in g_main_context_iterate () from /usr/local/lib/libglib-2.0.so.4200.0
#36 0x000004ff1cc2d077 in g_main_context_iteration () from /usr/local/lib/libglib-2.0.so.4200.0
#37 0x000004ff0917b285 in GtkData::Yield(bool, bool) () from /usr/local/lib/libreoffice/program/libvclplug_gtklo.so
#38 0x000004ff5c14540e in Application::Yield() () from /usr/local/lib/libreoffice/program/libvcllo.so
#39 0x000004ff5c1454a5 in Application::Execute() () from /usr/local/lib/libreoffice/program/libvcllo.so
#40 0x000004ff64a89ebb in desktop::Desktop::Main() () from /usr/local/lib/libreoffice/program/libsofficeapp.so
#41 0x000004ff5c149d81 in ImplSVMain() () from /usr/local/lib/libreoffice/program/libvcllo.so
#42 0x000004ff5c149da2 in SVMain() () from /usr/local/lib/libreoffice/program/libvcllo.so
#43 0x000004ff64aadbb5 in soffice_main () from /usr/local/lib/libreoffice/program/libsofficeapp.so
#44 0x000004fc84c00efb in main ()
Comment 1 A (Andy) 2014-10-25 14:49:33 UTC
Could you please give more information about the bug and the steps to reproduce it?  Thank you very much in advance.
Comment 2 Robert Nagy 2014-10-25 14:53:35 UTC
Sure, you would need to have OpenBSD installed and compile LibreOffice from source, using the ports tree. I am porting the latest version over to OpenBSD at this point and this the only issue I am having at the moment.
Comment 3 Robert Nagy 2014-10-25 15:16:33 UTC
Or I can set you up with a virtual machine if you want.
Comment 4 Robert Nagy 2014-10-28 18:58:17 UTC
Created attachment 108582 [details]
stdout of running writer
Comment 5 Sébastien Marie 2014-11-09 13:01:28 UTC
Hi Andy,

Just to be clear: the abort() is trigged when saving any ODF document. From empty to more complicated document one. It is perfectibly reproductible (abort() is trigged every time).

Only some formats seems to be saved without crash.

I test the following formats (new empty document, "Save as" and choosing the format):
 - Text ODF (odt): crash
 - Flat XML ODF Text Document (fodt): crash
 - Unified Office Format Text (uot): crash
 - Word 2003 XML (xml): crash
 - Docbook (xml): crash

 - Word 2007/2010/2013 XML (docx): ok
 - Word 97/2000/XP/2003 (doc): ok

The problem was initially reported on the misc@ openbsd mailing-list by multiples users. See the thread at http://marc.info/?l=openbsd-misc&m=141466821728996&w=2

Thanks for you attention.
Comment 6 Robert Nagy 2014-11-09 13:05:33 UTC
It is probably a compiler issue, because disabling optimizations in svxcore, "hides" the issue so currently the OpenBSD package is shipped with svxcore compiled with NOOPFLAGS. I haven't been able to pinpoint the exact file yet, thus the complete svxcore is compiled this way at the moment.
Comment 7 Buovjaga 2014-11-27 13:31:14 UTC
Info was provided, so back to UNCONFIRMED.
Comment 8 Robinson Tryon (qubit) 2014-12-21 18:58:30 UTC
Just checked with #openbsd and the problem appears to be resolved.

Status -> RESOLVED WORKSFORME

  farhaven 01:50:28 PM
  just saved a piece of text as .ODT
  no crash

  colonelqubit 01:51:19 PM
  farhaven: thanks
  what version of LO are you running?

  farhaven 01:51:40 PM
  libreoffice-4.3.4.1v0