How to reproduce : 1) Open an ODB file that connects to a Mac Addressbook. 2) Click on Tables 3) Crash. GDB says : warning: Tried to remove a non-existent library: /Applications/LibreOfficeDev.app/Contents/MacOS/libfirebird_sdbclo.dylib warn:cppuhelper:29471:1:cppuhelper/source/shlib.cxx:503: loading component library failed: file:///Applications/LibreOfficeDev.app/Contents/MacOS/../MacOS/libfirebird_sdbclo.dylib libc++abi.dylib: terminate called throwing an exception Program received signal SIGABRT, Aborted. 0x00007fff918ae212 in __pthread_kill ()
Adding Lionel, Julien, Andrzej to CC
Regression over 4.1.1.2
@ahunt: this seems related to issues of the firebird sdbc driver on Mac? It complains about not being able to load libfirebird_sdbclo.dylib, I guess this leads to a crash before the MacAB driver is even tried?
When the ODB is loaded, I see this in gdb : warn:xmloff.core:10469:1:xmloff/source/core/xmlimp.cxx:848: exception caught warn:legacy.osl:10469:1:xmloff/source/core/xmlimp.cxx:849: caught an exception! in function:virtual void SvXMLImport::setTargetDocument(const uno::Reference<lang::XComponent> &) type: com.sun.star.lang.NotInitializedException context: N8dbaccess17ODatabaseDocumentE warn:xmloff.core:10469:1:xmloff/source/core/xmlimp.cxx:848: exception caught warn:legacy.osl:10469:1:xmloff/source/core/xmlimp.cxx:849: caught an exception! in function:virtual void SvXMLImport::setTargetDocument(const uno::Reference<lang::XComponent> &) type: com.sun.star.lang.NotInitializedException context: N8dbaccess17ODatabaseDocumentE warn:xmloff.core:10469:1:xmloff/source/core/xmlimp.cxx:848: exception caught warn:legacy.osl:10469:1:xmloff/source/core/xmlimp.cxx:849: caught an exception! in function:virtual void SvXMLImport::setTargetDocument(const uno::Reference<lang::XComponent> &) type: com.sun.star.lang.NotInitializedException context: N8dbaccess17ODatabaseDocumentE Then when I click on the Tables button, I see the following : warning: Tried to remove a non-existent library: /Users/Shared/Repos/LO/core/instdir/unxmacxx/LibreOfficeDev.app/Contents/MacOS/libfirebird_sdbclo.dylib warn:cppuhelper:10469:1:cppuhelper/source/shlib.cxx:503: loading component library failed: file:///Users/Shared/Repos/LO/core/instdir/unxmacxx/LibreOfficeDev.app/Contents/MacOS/../MacOS/libfirebird_sdbclo.dylib libc++abi.dylib: terminate called throwing an exception Pulled a full bt on the stack, and enclosed it.
Created attachment 85947 [details] warnings and full bt
(In reply to comment #4) > When the ODB is loaded, I see this in gdb : > > warn:xmloff.core:10469:1:xmloff/source/core/xmlimp.cxx:848: exception caught > warn:legacy.osl:10469:1:xmloff/source/core/xmlimp.cxx:849: caught an > exception! > in function:virtual void SvXMLImport::setTargetDocument(const > uno::Reference<lang::XComponent> &) > type: com.sun.star.lang.NotInitializedException > context: N8dbaccess17ODatabaseDocumentE This is usual / unrelated. > Then when I click on the Tables button, I see the following : > warning: Tried to remove a non-existent library: > /Users/Shared/Repos/LO/core/instdir/unxmacxx/LibreOfficeDev.app/Contents/ > MacOS/libfirebird_sdbclo.dylib > warn:cppuhelper:10469:1:cppuhelper/source/shlib.cxx:503: loading component > library failed: > file:///Users/Shared/Repos/LO/core/instdir/unxmacxx/LibreOfficeDev.app/ > Contents/MacOS/../MacOS/libfirebird_sdbclo.dylib > libc++abi.dylib: terminate called throwing an exception When trying to open a sdbc: URL, LibreOffice asks each driver in turn whether it can handle this URL. My guess is that the firebird driver is asked before the macab driver and the firebird-sdbc driver on Mac has problem that makes it abort the whole LibreOffice before macab is tried.
*** Bug 69458 has been marked as a duplicate of this bug. ***
I haven't done anything to do with library naming/loading recently -- when is this build from? There's a vague possibility that this was a temporary breakage to do with the instdir changes (but they were apparently wrapped up by Thursday 12th/Friday 13th. The bt in the related bug suggests that multiple drivers are affected which would support this -- if this persists in more recent builds I guess this would be an accidental breakage related to packaging from instdir builds (unit-tests are running fine on the mac tb's afaict, so the fault would seem to be creeping in later).
Version: 4.2.0.0.alpha0+ Build ID: 0618b35ebda29b911058254cd34620e8b24ab8f7 from 23/09/2013 The problem is still there : warn:cppuhelper:30055:1:cppuhelper/source/shlib.cxx:503: loading component library failed: libfile:///Applications/LibreOfficeDev.app/Contents/MacOS/../MacOS/libhsqldb.jnilib.dylib libc++abi.dylib: terminate called throwing an exception full bt attached
Created attachment 86946 [details] full bt after clicking on Table button in Mac addressbook odb
Further testing reveals that the crash occurs with any ODB file, as soon as the Tables button is pressed. Corrected title accordingly.
(In reply to comment #9) > Version: 4.2.0.0.alpha0+ > Build ID: 0618b35ebda29b911058254cd34620e8b24ab8f7 > > from 23/09/2013 > > The problem is still there : > > warn:cppuhelper:30055:1:cppuhelper/source/shlib.cxx:503: loading component > library failed: > libfile:///Applications/LibreOfficeDev.app/Contents/MacOS/../MacOS/libhsqldb. > jnilib.dylib > libc++abi.dylib: terminate called throwing an exception That "libhsqldb.jnilib.dylib" problem is fixed since <http://cgit.freedesktop.org/libreoffice/core/commit/?id=43c47af0181ada27b558a30b02c51dc665169b99> "Special-case Mac OS X .jnilib" (but I cannot currently verify whether that fixes the root problem of this issue).
(In reply to comment #12) > That "libhsqldb.jnilib.dylib" problem is fixed since > <http://cgit.freedesktop.org/libreoffice/core/commit/ > ?id=43c47af0181ada27b558a30b02c51dc665169b99> "Special-case Mac OS X > .jnilib" (but I cannot currently verify whether that fixes the root problem > of this issue). Yes, it does.