Apache OpenOffice (AOO) Bugzilla – Issue 6513
Crashes caused by included libdb-3.2.so
Last modified: 2004-06-18 09:47:15 UTC
After overcoming the sudo-related hurdles (Issue 6512) and finishing the installation of OOo1.0.1 the program crashed on startup with core-dump. Extensive correspondence with Kevin Hendricks who managed to decipher the gdb-traces (see below) it turned out that the culprit was the libdb-3.2.so provided by Openoffice.org (rather than the one in my /usr/lib), and removing this library cured the problem. The library seems to be called by libucpchelp1.so: ---- ldd libucpchelp1.so libcppuhelper3gcc3.so => not found libcppu.so.3 => not found libsal.so.3 => not found libvos2gcc3.so => not found libucbhelper1gcc3.so => not found libdb-3.2.so => /lib/libdb-3.2.so (0x400b1000) libdb_cxx-3.2.so => /usr/lib/libdb_cxx-3.2.so (0x40158000) libdl.so.2 => /lib/libdl.so.2 (0x4020a000) libpthread.so.0 => /lib/i686/libpthread.so.0 (0x4020d000) libm.so.6 => /lib/i686/libm.so.6 (0x40221000) libstlport_gcc.so => not found libstdc++.so.3 => /usr/lib/libstdc++.so.3 (0x40243000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x402e7000) libc.so.6 => /lib/i686/libc.so.6 (0x42000000) libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3 (0x402f0000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) ----- (and I vaguely now remember crashes in OOo1.0.0 too, after upgrading to compat-db-3.3.11-2 and db4-4.0.14-10 -- it's been a while and I did not pay attention then, since Staroffice 6.0-beta was still working, so I used it). Maybe your install-script should check whether a local /lib/libdb-3.2.so is already present and then not install the version which causes the crashes. BTW -- I also noticed that if I include /org/OpenOffice1.0.1/program in /etc/ld.so.conf and run ldconfig, the program starts up much faster -- It might not be a bad idea to include this "feature" in future instll scripts (provided the uninstall removes the appropriate lines). Here is the gdb-trace -- which may give the experts more information: -------- ./soffice.gdb Excess command line arguments ignored. ( ...) GNU gdb Red Hat Linux (5.1.1-1) Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-redhat-linux"... "/opt/OpenOffice.org1.0.1/program/" is not a core dump: Is a directory (gdb) run Starting program: /opt/OpenOffice.org1.0.1/program/soffice.bin [New Thread 1024 (LWP 1465)] [New Thread 2049 (LWP 1470)] [New Thread 1026 (LWP 1471)] [New Thread 2051 (LWP 1472)] [New Thread 3076 (LWP 1477)] [New Thread 4101 (LWP 1478)] Program received signal SIGBUS, Bus error. [Switching to Thread 1024 (LWP 1465)] 0x45345834 in __bam_read_root () from /opt/OpenOffice.org1.0.1/program/libdb-3.2.so (gdb) continue Continuing. Program received signal SIGABRT, Aborted. 0x420277d1 in kill () from /lib/i686/libc.so.6 (gdb) continue Continuing. Program received signal SIGABRT, Aborted. 0x420277d1 in kill () from /lib/i686/libc.so.6 (gdb) (gdb) set height 0 (gdb) bt #0 0x420277d1 in kill () from /lib/i686/libc.so.6 #1 0x409a0f7d in raise () from /lib/i686/libpthread.so.0 #2 0x42028e69 in abort () from /lib/i686/libc.so.6 #3 0x40579bf9 in CallSystemHandler () from /opt/OpenOffice.org1.0.1/program/libsal.so.3 #4 0x40579cc9 in SignalHandlerFunction () from /opt/OpenOffice.org1.0.1/program/libsal.so.3 #5 0x409a439e in __pthread_sighandler () from /lib/i686/libpthread.so.0 #6 <signal handler called> #7 0x420277d1 in kill () from /lib/i686/libc.so.6 #8 0x409a0f7d in raise () from /lib/i686/libpthread.so.0 #9 0x42028e69 in abort () from /lib/i686/libc.so.6 #10 0x40364c96 in SalXLib::XError(_XDisplay*, XErrorEvent*) () from /opt/OpenOffice.org1.0.1/program/libvcl641li.so #11 0x40364140 in sal_XErrorHdl () from /opt/OpenOffice.org1.0.1/program/libvcl641li.so #12 0x408f3b4e in _XError () from /usr/X11R6/lib/libX11.so.6 #13 0x408f21df in _XReply () from /usr/X11R6/lib/libX11.so.6 #14 0x408eed92 in XTranslateCoordinates () from /usr/X11R6/lib/libX11.so.6 #15 0x4034427e in SalFrameData::HandleSizeEvent(XConfigureEvent*) () from /opt/OpenOffice.org1.0.1/program/libvcl641li.so #16 0x403455ba in SalFrameData::Dispatch(_XEvent*) () from /opt/OpenOffice.org1.0.1/program/libvcl641li.so #17 0x4036b075 in SalDisplay::Dispatch(_XEvent*) () from /opt/OpenOffice.org1.0.1/program/libvcl641li.so #18 0x4036ada8 in SalDisplay::Yield(unsigned char) () from /opt/OpenOffice.org1.0.1/program/libvcl641li.so #19 0x40366675 in DisplayYield(int, SalDisplay*) () from /opt/OpenOffice.org1.0.1/program/libvcl641li.so #20 0x40365204 in SalXLib::Yield(unsigned char) () from /opt/OpenOffice.org1.0.1/program/libvcl641li.so #21 0x4036e40d in SalInstance::Yield(unsigned char) () from /opt/OpenOffice.org1.0.1/program/libvcl641li.so #22 0x401f08ae in Application::Yield() () from /opt/OpenOffice.org1.0.1/program/libvcl641li.so #23 0x402ad335 in Dialog::Execute() () from /opt/OpenOffice.org1.0.1/program/libvcl641li.so #24 0x0805d50a in Desktop::Exception(unsigned short) () #25 0x401f2ef6 in ImplVCLExceptionHandler::signal(oslSignalInfo*) () from /opt/OpenOffice.org1.0.1/program/libvcl641li.so #26 0x4054f913 in vos::_cpp_OSignalHandler_Function(void*, oslSignalInfo*) () from /opt/OpenOffice.org1.0.1/program/libvos2gcc3.so #27 0x4054f8ef in _OSignalHandler_Function(void*, oslSignalInfo*) () from /opt/OpenOffice.org1.0.1/program/libvos2gcc3.so #28 0x40579b1a in CallSignalHandler () from /opt/OpenOffice.org1.0.1/program/libsal.so.3 #29 0x40579ca6 in SignalHandlerFunction () from /opt/OpenOffice.org1.0.1/program/libsal.so.3 #30 0x409a439e in __pthread_sighandler () from /lib/i686/libpthread.so.0 #31 <signal handler called> #32 0x45345834 in __bam_read_root () from /opt/OpenOffice.org1.0.1/program/libdb-3.2.so #33 0x45345205 in __bam_open () from /opt/OpenOffice.org1.0.1/program/libdb-3.2.so #34 0x4535ffe9 in __db_dbopen () from /opt/OpenOffice.org1.0.1/program/libdb-3.2.so #35 0x4535fd54 in __db_open () from /opt/OpenOffice.org1.0.1/program/libdb-3.2.so #36 0x453e3d80 in Db::open(char const*, char const*, DBTYPE, unsigned, int) () from /opt/OpenOffice.org1.0.1/program/libdb_cxx-3.2.so #37 0x452d63ae in chelp::Databases::getBerkeley(rtl::OUString const&, rtl::OUString const&, bool) () from /opt/OpenOffice.org1.0.1/program/libucpchelp1.so #38 0x452cc468 in chelp::URLParameter::readBerkeley() () from /opt/OpenOffice.org1.0.1/program/libucpchelp1.so #39 0x452cc2ea in chelp::URLParameter::get_the_tag() () from /opt/OpenOffice.org1.0.1/program/libucpchelp1.so #40 0x452cbf95 in chelp::URLParameter::get_tag() () from /opt/OpenOffice.org1.0.1/program/libucpchelp1.so #41 0x452bc2d9 in chelp::Content::getPropertyValues(com::sun::star::uno::Sequence<com::sun::star::beans::Property> const&) () from /opt/OpenOffice.org1.0.1/program/libucpchelp1.so #42 0x452bb331 in chelp::Content::execute(com::sun::star::ucb::Command const&, long, com::sun::star::uno::Reference<com::sun::star::ucb::XCommandEnvironment> const&) () from /opt/OpenOffice.org1.0.1/program/libucpchelp1.so #43 0x407b9b03 in ucb::Content_Impl::executeCommand(com::sun::star::ucb::Command const&) () from /opt/OpenOffice.org1.0.1/program/libucbhelper1gcc3.so #44 0x407b428a in ucb::Content::getPropertyValuesInterface(com::sun::star::uno::Sequence<rtl::OUString> const&) () from /opt/OpenOffice.org1.0.1/program/libucbhelper1gcc3.so #45 0x407b3c65 in ucb::Content::getPropertyValues(com::sun::star::uno::Sequence<rtl::OUString> const&) () from /opt/OpenOffice.org1.0.1/program/libucbhelper1gcc3.so #46 0x407b342a in ucb::Content::getPropertyValue(rtl::OUString const&) () from /opt/OpenOffice.org1.0.1/program/libucbhelper1gcc3.so #47 0x4375d0cc in GetHelpAnchor_Impl(String const&, String&) () from /opt/OpenOffice.org1.0.1/program/libsfx641li.so #48 0x4375fa03 in SfxHelp::CreateHelpURL_Impl(unsigned long, String const&) () from /opt/OpenOffice.org1.0.1/program/libsfx641li.so #49 0x437616bb in SfxHelp::CreateHelpURL(unsigned long, String const&) () from /opt/OpenOffice.org1.0.1/program/libsfx641li.so #50 0x4375e605 in SfxHelp_Impl::GetHelpText(unsigned long, String const&) () from /opt/OpenOffice.org1.0.1/program/libsfx641li.so #51 0x43761430 in SfxHelp::GetHelpText(unsigned long, Window const*) () from /opt/OpenOffice.org1.0.1/program/libsfx641li.so #52 0x402b3b22 in Menu::GetHelpText(unsigned short) const () from /opt/OpenOffice.org1.0.1/program/libvcl641li.so #53 0x4389f63d in SfxVirtualMenu::CreateFromSVMenu() () from /opt/OpenOffice.org1.0.1/program/libsfx641li.so #54 0x4389e893 in SfxVirtualMenu::SfxVirtualMenu(Menu*, unsigned char, SfxBindings&, unsigned char, unsigned char) () from /opt/OpenOffice.org1.0.1/program/libsfx641li.so #55 0x4389aa37 in SfxMenuManager::UseDefault() () from /opt/OpenOffice.org1.0.1/program/libsfx641li.so #56 0x43946601 in SfxConfigManager::LoadConfigItem(SfxConfigItem&) () from /opt/OpenOffice.org1.0.1/program/libsfx641li.so #57 0x4394951e in SfxConfigItem::Initialize() () from /opt/OpenOffice.org1.0.1/program/libsfx641li.so #58 0x4389c49e in SfxMenuBarManager::SfxMenuBarManager(ResId const&, SfxBindings&, SfxConfigManager*, unsigned char) () from /opt/OpenOffice.org1.0.1/program/libsfx641li.so #59 0x437f2bec in SfxObjectShell::CreateMenuBarManager_Impl(SfxViewFrame*) () from /opt/OpenOffice.org1.0.1/program/libsfx641li.so #60 0x4385036a in SfxViewShell::GetMenuBar_Impl(unsigned char) () from /opt/OpenOffice.org1.0.1/program/libsfx641li.so #61 0x4387c74d in SfxDispatcher::SetMenu_Impl() () from /opt/OpenOffice.org1.0.1/program/libsfx641li.so #62 0x4387ccac in SfxDispatcher::Update_Impl(unsigned char) () from /opt/OpenOffice.org1.0.1/program/libsfx641li.so #63 0x4374dd08 in SfxApplication::SetViewFrame(SfxViewFrame*) () from /opt/OpenOffice.org1.0.1/program/libsfx641li.so #64 0x43860f22 in SfxViewFrame::MakeActive_Impl(unsigned char) () from /opt/OpenOffice.org1.0.1/program/libsfx641li.so #65 0x4386a7ac in SfxTopFrame::InsertDocument(SfxObjectShell*) () from /opt/OpenOffice.org1.0.1/program/libsfx641li.so #66 0x43735abe in SfxApplication::NewDocDirectExec_Impl(SfxRequest&) () from /opt/OpenOffice.org1.0.1/program/libsfx641li.so #67 0x4373d31f in SfxStubSfxApplicationNewDocDirectExec_Impl(SfxShell*, SfxRequest&) () from /opt/OpenOffice.org1.0.1/program/libsfx641li.so #68 0x43887bb3 in SfxShell::ExecuteSlot(SfxRequest&, SfxInterface const*) () from /opt/OpenOffice.org1.0.1/program/libsfx641li.so #69 0x438319b8 in SfxFrameLoader::load(com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&, com::sun::star::uno::Reference<com::sun::star::frame::XFrame> const&) () from /opt/OpenOffice.org1.0.1/program/libsfx641li.so #70 0x447dc839 in framework::BaseDispatcher::implts_loadIt(com::sun::star::util::URL const&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>&, rtl::OUString const&, com::sun::star::uno::Reference<com::sun::star::frame::XFrame> const&, com::sun::star::uno::Any const&) () from /opt/OpenOffice.org1.0.1/program/libfwk641li.so #71 0x447e3092 in framework::BlankDispatcher::dispatch(com::sun::star::util::URL const&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&) () from /opt/OpenOffice.org1.0.1/program/libfwk641li.so #72 0x447d9c2f in framework::BaseDispatcher::dispatchWithNotification(com::sun::star::util::URL const&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&, com::sun::star::uno::Reference<com::sun::star::frame::XDispatchResultListener> const&) () from /opt/OpenOffice.org1.0.1/program/libfwk641li.so #73 0x447ec555 in framework::Desktop::loadComponentFromURL(rtl::OUString const&, rtl::OUString const&, long, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&) () from /opt/OpenOffice.org1.0.1/program/libfwk641li.so #74 0x080605d5 in Desktop::OpenDefault() () #75 0x0805f0fd in Desktop::OpenClients() () #76 0x0805efff in Desktop::OpenClients_Impl(void*) () #77 0x0805efe3 in Desktop::LinkStubOpenClients_Impl(void*, void*) () #78 0x402ecc21 in ImplHandleUserEvent(ImplSVEvent*) () from /opt/OpenOffice.org1.0.1/program/libvcl641li.so #79 0x402ed339 in ImplWindowFrameProc(void*, SalFrame*, unsigned short, void const*) () from /opt/OpenOffice.org1.0.1/program/libvcl641li.so #80 0x40344f89 in SalFrameData::HandleClientMessage(XClientMessageEvent*) () from /opt/OpenOffice.org1.0.1/program/libvcl641li.so #81 0x4034560a in SalFrameData::Dispatch(_XEvent*) () from /opt/OpenOffice.org1.0.1/program/libvcl641li.so #82 0x4036b075 in SalDisplay::Dispatch(_XEvent*) () from /opt/OpenOffice.org1.0.1/program/libvcl641li.so #83 0x4036ada8 in SalDisplay::Yield(unsigned char) () from /opt/OpenOffice.org1.0.1/program/libvcl641li.so #84 0x40366675 in DisplayYield(int, SalDisplay*) () from /opt/OpenOffice.org1.0.1/program/libvcl641li.so #85 0x40365204 in SalXLib::Yield(unsigned char) () from /opt/OpenOffice.org1.0.1/program/libvcl641li.so #86 0x4036e40d in SalInstance::Yield(unsigned char) () from /opt/OpenOffice.org1.0.1/program/libvcl641li.so #87 0x401f08ae in Application::Yield() () from /opt/OpenOffice.org1.0.1/program/libvcl641li.so #88 0x401f07e8 in Application::Execute() () from /opt/OpenOffice.org1.0.1/program/libvcl641li.so #89 0x0805e23d in Desktop::Main() () #90 0x401f2f97 in SVMain() () from /opt/OpenOffice.org1.0.1/program/libvcl641li.so #91 0x4036408a in main () from /opt/OpenOffice.org1.0.1/program/libvcl641li.so #92 0x420164a4 in __libc_start_main () from /lib/i686/libc.so.6 (gdb) (gdb) thread 1 ---Type <return> to continue, or q <return> to quit--- [Switching to thread ---Type <return> to continue, or q <return> to quit--- 1---Type <return> to continue, or q <return> to quit--- (---Type <return> to continue, or q <return> to quit--- Thread 1024 (LWP 1465)---Type <return> to continue, or q <return> to quit--- )]---Type <return> to continue, or q <return> to quit--- #---Type <return> to continue, or q <return> to quit--- 0 ---Type <return> to continue, or q <return> to quit--- ---Type <return> to continue, or q <return> to quit--- 0x420277d1---Type <return> to continue, or q <return> to quit--- in ---Type <return> to continue, or q <return> to quit--- kill---Type <return> to continue, or q <return> to quit--- ---Type <return> to continue, or q <return> to quit--- ()---Type <return> to continue, or q <return> to quit--- ---Type <return> to continue, or q <return> to quit--- ---Type <return> to continue, or q <return> to quit--- from /lib/i686/libc.so.6 and so on. -- Hardy (Meinhard E. Mayer) Professor Emeritus of Physics and Mathematics Tel: (949) 759-3378 Fax: (734) 448-5140 URL: http://mitpress2.mit.edu/sicm/
Forgot to mention: OOo641 (which I had on my system till I was sure 1.0.1 works) did not have these crashes. I did not compare the installed libraries, but it may give you a clue.
macosx issue - you probably know more about this than me
Hi, This is a Linux x86 issue and probably a header clash issue with the libdb build process and has nothing to do with MacOSX. (Notice the Linux and x86 in the backtraces). Assigning it back to Sander so it can be redirected to the libdb owner for analysis. Kevin
I can confirm the same issues here running Source Mage GNU Linux. This problem did not occur until this afternoon after upgrading the following packages to the listed versions: glibc:20020808:installed:2.2.5 binutils:20020808:installed:2.13 perl:20020808:installed:5.8.0 util-linux:20020808:installed:2.11u gawk:20020808:installed:3.1.1 termcap:20020808:installed:1.3.1 --- Running in gdb gives this error before crashing: Program received signal SIGBUS, Bus error. [Switching to Thread 1024 (LWP 27064)] 0x43ea8834 in __bam_read_root () from /usr/local/OpenOffice.org1.0/program/libdb-3.2.so --- Not sure if this helps!
I've got an error on installing OO1.0.1 using default installation an error occrurred while copying libgcc_s.so1 to home/user/OOO/program ignore sandbox.jar in /programs/classes ignore errors seem to roll from there.
as a follow up, I did try install at root and as a user I had not used ooo before on the linux rh8, it came loaded but not installed :/
mh->abi: can you please comment on this ?
mh->msc: can we confirm this issue ?
Hi, I don't know. Please ask a developer. This has nothing to do with the database access in StarOffice. This is something else. Bye Marc
mh->tz: please reassign to appropiate QA member. I will no play a ping pong game here ;(.
I have intoduced issue 11220, I am not sure if the problem if the same one described in 6513
This seems to be a build problem we should investigate.
libdb does not even seem to build with the available patch-file. Will investigate it.
Could not reproduce with neither OpenOffice 1.0.1 nor 1.0.2. Tested also with glibc 2.2.5 as mentioned in the bug description. However, berkeleydb does not even build under current Linux distributions (fixed in ?). It might be important on which system the delivered library was initially build (tested build on old SuSE).
close issue.
Closed