[Libreoffice-bugs] [Bug 51685] New: crash on start / duplicate component registration issue ...

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Jul 3 12:21:53 CEST 2012


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

             Bug #: 51685
           Summary: crash on start / duplicate component registration
                    issue ...
    Classification: Unclassified
           Product: LibreOffice
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: UNCONFIRMED
          Severity: blocker
          Priority: medium
         Component: Libreoffice
        AssignedTo: libreoffice-bugs at lists.freedesktop.org
        ReportedBy: michael.meeks at novell.com


It seems a tad unfortunate that we crash on start without any warning message
at all explaining that :-) [ makes it hard to debug too ].

#0  0xb7c8b8c5 in __GI_raise (sig=6) at
../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1  0xb7c8d1d5 in __GI_abort () at abort.c:93
#2  0xb7eca81d in __gnu_cxx::__verbose_terminate_handler() () from
/usr/lib/libstdc++.so.6
#3  0xb7ec85b3 in ?? () from /usr/lib/libstdc++.so.6
#4  0xb7ec85ef in std::terminate() () from /usr/lib/libstdc++.so.6
#5  0xb7ec8794 in __cxa_rethrow () from /usr/lib/libstdc++.so.6
#6  0xb7f39c92 in desktop::Desktop::ensureProcessServiceFactory () at
/data/opt/libreoffice/master/desktop/source/app/app.cxx:718
#7  0xb7f39cb3 in desktop::Desktop::GetCommandLineArgs () at
/data/opt/libreoffice/master/desktop/source/app/app.cxx:278
#8  0xb7f590a7 in soffice_main () at
/data/opt/libreoffice/master/desktop/source/app/sofficemain.cxx:61
#9  0x0804852c in sal_main () at
/data/opt/libreoffice/master/desktop/source/app/main.c:25
#10 main (argc=Cannot access memory at address 0x5620
) at /data/opt/libreoffice/master/desktop/source/app/main.c:24

This appears to come ultimately from:

Breakpoint 3, 0xb7ec86d0 in __cxa_throw () from /usr/lib/libstdc++.so.6
(gdb) bt
#0  0xb7ec86d0 in __cxa_throw () from /usr/lib/libstdc++.so.6
#1  0xb7a46d61 in handleImplementation (this=0xbfffe9ac) at
/data/opt/libreoffice/master/cppuhelper/source/defaultbootstrap.cxx:478
#2  (anonymous namespace)::Parser::Parser (this=0xbfffe9ac, uri=<optimized
out>, alienContext=empty uno::Reference, data=0x8067f00)
    at /data/opt/libreoffice/master/cppuhelper/source/defaultbootstrap.cxx:332
#3  0xb7a48c76 in (anonymous namespace)::ServiceManager::readRdbFile
(this=0x8067eb0, 
   
uri="file:///data/opt/OOInstall/program/../share/extensions/pdfimport/components.rdb",
optional=true)
    at /data/opt/libreoffice/master/cppuhelper/source/defaultbootstrap.cxx:1442
#4  0xb7a49934 in readRdbs (
    uris="file:///data/opt/OOInstall/ure/lib/../share/misc/services.rdb
?file:///etc/opt/ure/services.rdb ?file:///home/michael/.ure/services.rdb  
?file:///home/michael/.config/libreoffice/3/user/extensions/bu"...,
this=0x8067eb0)
    at /data/opt/libreoffice/master/cppuhelper/source/defaultbootstrap.cxx:1408
#5  ServiceManager (
    rdbUris="file:///data/opt/OOInstall/ure/lib/../share/misc/services.rdb
?file:///etc/opt/ure/services.rdb ?file:///home/michael/.ure/services.rdb  
?file:///home/michael/.config/libreoffice/3/user/extensions/bu"...,
this=0x8067eb0)
    at /data/opt/libreoffice/master/cppuhelper/source/defaultbootstrap.cxx:593
#6  bootstrapComponentContext (bootstrap=..., 
    serviceUris="file:///data/opt/OOInstall/ure/lib/../share/misc/services.rdb
?file:///etc/opt/ure/services.rdb ?file:///home/michael/.ure/services.rdb  
?file:///home/michael/.config/libreoffice/3/user/extensions/bu"...,
typeRegistry=
    uno::Reference to {<com::sun::star::uno::XInterface> = {_vptr.XInterface =
0xb40d10b0}, <No data fields>})
    at /data/opt/libreoffice/master/cppuhelper/source/defaultbootstrap.cxx:1989
#7  cppu::defaultBootstrap_InitialComponentContext
(iniUri="file:///data/opt/OOInstall/ure/lib/unorc")
    at /data/opt/libreoffice/master/cppuhelper/source/defaultbootstrap.cxx:2193
#8  0xb7a4a22a in cppu::defaultBootstrap_InitialComponentContext () at
/data/opt/libreoffice/master/cppuhelper/source/defaultbootstrap.cxx:2200
#9  0xb7f48c68 in desktop::Desktop::CreateApplicationServiceManager () at
/data/opt/libreoffice/master/desktop/source/app/appinit.cxx:177
#10 0xb7f39c3b in desktop::Desktop::ensureProcessServiceFactory () at
/data/opt/libreoffice/master/desktop/source/app/app.cxx:711
#11 0xb7f39cb3 in desktop::Desktop::GetCommandLineArgs () at
/data/opt/libreoffice/master/desktop/source/app/app.cxx:278
#12 0xb7f590a7 in soffice_main () at
/data/opt/libreoffice/master/desktop/source/app/sofficemain.cxx:61
#13 0x0804852c in sal_main () at
/data/opt/libreoffice/master/desktop/source/app/main.c:25
#14 main (argc=134698896, argv=0x0) at
/data/opt/libreoffice/master/desktop/source/app/main.c:24
(gdb) up
#1  0xb7a46d61 in handleImplementation (this=0xbfffe9ac) at
/data/opt/libreoffice/master/cppuhelper/source/defaultbootstrap.cxx:478
478                css::uno::Reference< css::uno::XInterface >());
(gdb) l
473            second)
474        {
475            throw css::registry::InvalidRegistryException(
476                (reader_.getUrl() + ": duplicate <implementation name=\""
477                 + attrImplementation_ + "\">"),
478                css::uno::Reference< css::uno::XInterface >());
479        }
480    }
481    
482    void Parser::handleService() {
(gdb) p reader_.getUrl()
$3 =
"file:///data/opt/OOInstall/program/../share/extensions/pdfimport/components.rdb"
(gdb) p attrImplementation_ 
$4 = "com.sun.star.comp.documents.HybridPDFImport"

I was amazed tracing the exceptions through here that we go looking for trouble
(and creating directories) in ~/.ure - why ? and /etc/opt/ure/ and other
apparently unhinged locations ;-)

Anyhow - it seems the problem is a change of status of the HybridPDFImport - I
attach my ~/.config/libreoffice/3-suse/ directory which contains:

3-suse/user/extensions/bundled/registry/com.sun.star.comp.deployment.component.PackageRegistryBackend/backenddb.xml:
...
<comp:component
url="vnd.sun.star.expand:$BUNDLED_EXTENSIONS/pdfimport/pdfimport.uno.so"><comp:java-type-library>false</comp:java-type-library><comp:implementation-names><comp:name>com.sun.star.comp.documents.DrawPDFImport</comp:name><comp:name>com.sun.star.comp.documents.WriterPDFImport</comp:name><comp:name>com.sun.star.comp.documents.ImpressPDFImport</comp:name><comp:name>com.sun.star.comp.documents.HybridPDFImport</comp:name><comp:name>com.sun.star.comp.documents.PDFDetector</comp:name></comp:implementation-names></comp:component><comp:component
url="vnd.sun...

As does:

share/extensions/pdfimport/components.rdb:<components
xmlns="http://openoffice.org/2010/uno-components"><component
loader="com.sun.star.loader.SharedLibrary"
uri="./pdfimport.uno.so"><implementation
name="com.sun.star.comp.documents.HybridPDFImport"><service
name="com.sun.star.document.ImportFilter"/></implementation><implementation
name="com.sun.star.comp.documents.WriterPDFImport"><service
name="com.sun.star.document.ImportFilter"/></implementation><implementation
name="com.sun.star.comp.documents.DrawPDFImport"><service
name="com.sun.star.document.ImportFilter"/></implementation><implementation
name="com.sun.star.comp.documents.ImpressPDFImport"><service
name="com.sun.star.document.ImportFilter"/></implementation><implementation
name="com.sun.star.comp.documents.PDFDetector"><service
name="com.sun.star.document.ImportFilter"/></implementation></component></components>


Which presumably explains the crash-on-start. This is with a master build from:

commit 3b59ee9402bd0d32cd1036c90ecf457df06b28e8
Author: Philipp Riemer <ruderphilipp at gmail.com>
Date:   Sat Jun 30 22:36:59 2012 +0200

Just built today.

Is this an artifact of migration ? or of the new component registration code ?
or ...

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Libreoffice-bugs mailing list