http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50394
--- Comment #13 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2011-09-17 21:42:57 UTC --- (In reply to comment #12) > (In reply to comment #11) > > With fix I commited for PR50430 and the workaround for PR50383 my build > > dies on > > java modules. I believe it is the problem we run into with Michael on the > > opensuse conference and we made that module to be last (it is because on my > > setup sun java does not work and ibm java apparently breaks with current > > libreoffice). So perhaps this is all needed? > > It will build fine with LTO (and --without-java), but the resulting binary > crashes during startup: > > terminate called after throwing an instance of > 'com::sun::star::container::NoSuchElementException' > It throws an exception in: xmlreader::XmlReader::XmlReader(rtl::OUString > const&) () from image/usr/ure/lib/libxmlreader.so. > This happens in xmlreader/source/xmlreader.cxx. > > I haven't looked deeper yet, but a non LTO build shows no problems at all. The above happened when I configured --with-max-jobs=4 and --with-num-cpus=4. With -with-max-jobs=1 and --with-num-cpus=4 I get a different crash on startup: Program received signal SIGABRT, Aborted. 0x00007ffff7db7695 in __GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 64 return INLINE_SYSCALL (tgkill, 3, pid, selftid, sig); #0 0x00007ffff7db7695 in __GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 #1 0x00007ffff7db8b3d in __GI_abort () at abort.c:93 #2 0x00007ffff7bc486d in _Unwind_SetGRValue (val=<optimized out>, index=<optimized out>, context=<optimized out>) at /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/libgcc/../gcc/unwind-dw2.c:253 #3 uw_update_context_1 (context=0x7fffffffbdc0, fs=0x7fffffffbc40) at /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/libgcc/../gcc/unwind-dw2.c:1368 #4 0x00007ffff7bc4b91 in uw_update_context (context=0x7fffffffbdc0, fs=0x7fffffffbc40) at /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/libgcc/../gcc/unwind-dw2.c:1388 #5 0x00007ffff7bc57cb in _Unwind_RaiseException (exc=0xe64150) at /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/libgcc/../gcc/unwind.inc:122 #6 0x00007ffff7d0d741 in __cxa_throw () from /usr/lib64/libstdc++.so.6 #7 0x00007ffff18915c8 in gcc3::raiseException(_uno_Any*, _uno_Mapping*) () from /var/tmp/portage/app-office/libreoffice-9999-r1/image/usr/ure/lib/libgcc3_uno.so #8 0x00007ffff1892dff in cpp2uno_call(bridges::cpp_uno::shared::CppInterfaceProxy*, _typelib_TypeDescription const*, _typelib_TypeDescriptionReference*, int, _typelib_MethodParameter*, void**, void**, void**, unsigned long*) () from /var/tmp/portage/app-office/libreoffice-9999-r1/image/usr/ure/lib/libgcc3_uno.so #9 0x00007ffff1893553 in cpp_vtable_call () from /var/tmp/portage/app-office/libreoffice-9999-r1/image/usr/ure/lib/libgcc3_uno.so #10 0x00007ffff1895356 in privateSnippetExecutor () from /var/tmp/portage/app-office/libreoffice-9999-r1/image/usr/ure/lib/libgcc3_uno.so #11 0x00007ffff79389f3 in cppu::throwException(com::sun::star::uno::Any const&) () from /var/tmp/portage/app-office/libreoffice-9999-r1/image/usr/program/../basis-link/program/../ure-link/lib/libuno_cppuhelpergcc3.so.3 #12 0x00007ffff69cd7ec in ucbhelper::cancelCommandExecution(com::sun::star::ucb::IOErrorCode, com::sun::star::uno::Sequence<com::sun::star::uno::Any> const&, com::sun::star::uno::Reference<com::sun::star::ucb::XCommandEnvironment> const&, rtl::OUString const&, com::sun::star::uno::Reference<com::sun::star::ucb::XCommandProcessor> const&) () from /var/tmp/portage/app-office/libreoffice-9999-r1/image/usr/program/../basis-link/program/libucbhelper4gcc3.so #13 0x0000000000000000 in ?? ()