Closed Bug 286633 Opened 20 years ago Closed 20 years ago

segfault on startup

Categories

(Calendar :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 249475

People

(Reporter: mozilla-bugs, Assigned: mostafah)

Details

User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.6) Gecko/20050307 Firefox/1.0.1 (Debian package 1.0.1-2) Build Identifier: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.6) Gecko/20050307 Firefox/1.0.1 (Debian package 1.0.1-2) pc1:/usr/local/lib/sunbird-0.2# ./sunbird-bin ./sunbird-bin: error while loading shared libraries: libxpcom_core.so: cannot open shared object file: No such file or directory pc1:/usr/local/lib/sunbird-0.2# export LD_LIBRARY_PATH=. pc1:/usr/local/lib/sunbird-0.2# ./sunbird-bin Segmentation fault pc1:/usr/local/lib/sunbird-0.2# gdb ./sunbird-bin GNU gdb 6.3-debian Copyright 2004 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 "x86_64-linux"...Using host libthread_db library "/lib/libthread_db.so.1". (gdb) r Starting program: /usr/local/lib/sunbird-0.2/sunbird-bin [Thread debugging using libthread_db enabled] [New Thread 182922802576 (LWP 12526)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 182922802576 (LWP 12526)] 0x0000002a959723cc in non-virtual thunk to nsDirectoryService::AddRef() () from ./libxpcom_core.so (gdb) bt #0 0x0000002a959723cc in non-virtual thunk to nsDirectoryService::AddRef() () from ./libxpcom_core.so #1 0x0000002a959719ea in nsDirectoryService::QueryInterface () from ./libxpcom_core.so #2 0x0000002a95971706 in nsDirectoryService::Create () from ./libxpcom_core.so #3 0x0000002a959584f8 in NS_InitXPCOM2_P () from ./libxpcom_core.so #4 0x0000000000407621 in ScopedXPCOMStartup::Initialize () #5 0x0000000000408a2a in ImportProfiles () #6 0x0000000000408fec in SelectProfile () #7 0x0000000000409c01 in xre_main () #8 0x0000000000405e68 in main () (gdb) Reproducible: Always cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot login cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot checkout -r SUNBIRD_0_2_BRANCH mozilla/client.mk cd mozilla make -f client.mk checkout MOZ_CO_PROJECT=calendar echo '. $topsrcdir/calendar/sunbird/config/mozconfig' > .mozconfig make -f client.mk build cd xpfe/communicator make cd ../.. make -f client.mk install
Just try running ./sunbird
$ /usr/local/bin/sunbird /usr/local/lib/sunbird-0.2/run-mozilla.sh: line 131: 12993 Segmentation fault "$prog" ${1+"$@"} $ cd /usr/local/bin $ ./sunbird /usr/local/lib/sunbird-0.2/run-mozilla.sh: line 131: 13008 Segmentation fault "$prog" ${1+"$@"}
try sunbird -calendar
$ /usr/local/bin/sunbird -calendar /usr/local/lib/sunbird-0.2/run-mozilla.sh: line 131: 10459 Segmentation fault "$prog" ${1+"$@"} $ cd /usr/local/lib/sunbird-0.2 $ ./sunbird-bin -calendar ./sunbird-bin: error while loading shared libraries: libxpcom_core.so: cannot open shared object file: No such file or directory $ export LD_LIBRARY_PATH=`pwd` $ ./sunbird-bin -calendar Segmentation fault
$ ldd sunbird-bin libmozjs.so => /usr/local/lib/sunbird-0.2/libmozjs.so (0x0000002a9566c000) libxpcom.so => /usr/local/lib/sunbird-0.2/libxpcom.so (0x0000002a95804000) libxpcom_core.so => /usr/local/lib/sunbird-0.2/libxpcom_core.so (0x0000002a95907000) libplds4.so => /usr/local/lib/sunbird-0.2/libplds4.so (0x0000002a95ae3000) libplc4.so => /usr/local/lib/sunbird-0.2/libplc4.so (0x0000002a95be7000) libnspr4.so => /usr/local/lib/sunbird-0.2/libnspr4.so (0x0000002a95cec000) libpthread.so.0 => /lib/libpthread.so.0 (0x0000002a95e47000) libdl.so.2 => /lib/libdl.so.2 (0x0000002a95f5c000) libgtk-1.2.so.0 => /usr/lib/libgtk-1.2.so.0 (0x0000002a9605f000) libgdk-1.2.so.0 => /usr/lib/libgdk-1.2.so.0 (0x0000002a962ba000) libgmodule-1.2.so.0 => /usr/lib/libgmodule-1.2.so.0 (0x0000002a963f7000) libglib-1.2.so.0 => /usr/lib/libglib-1.2.so.0 (0x0000002a964fa000) libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0x0000002a96623000) libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x0000002a9672c000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x0000002a9683d000) libm.so.6 => /lib/libm.so.6 (0x0000002a96a18000) libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x0000002a96b9f000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x0000002a96d7c000) libc.so.6 => /lib/libc.so.6 (0x0000002a96e87000) /lib64/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2 (0x0000002a95556000) $ file sunbird-bin sunbird-bin: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.0, dynamically linked (uses shared libs), not stripped
from my `dmesg`: sunbird-bin[4692] general protection rip:2a959723cc rsp:7fbfffed58 error:0 sunbird-bin[12488] general protection rip:2a959723cc rsp:7fbfffec98 error:0 sunbird-bin[12522] general protection rip:2a959723cc rsp:7fbfffef98 error:0 sunbird-bin[12963] general protection rip:2a959723cc rsp:7fbfffec78 error:0 sunbird-bin[12993] general protection rip:2a959723cc rsp:7fbfffec78 error:0 sunbird-bin[13008] general protection rip:2a959723cc rsp:7fbfffec78 error:0 sunbird-bin[27067] general protection rip:2a959723cc rsp:7fbfffec68 error:0 sunbird-bin[27090] general protection rip:2a959723cc rsp:7fbfffec68 error:0 sunbird-bin[27100] general protection rip:2a959723cc rsp:7fbfffef68 error:0 sunbird-bin[27120] general protection rip:2a959723cc rsp:7fbfffec48 error:0 sunbird-bin[27124] general protection rip:2a959723cc rsp:7fbfffef58 error:0 sunbird-bin[10424] general protection rip:2a959723cc rsp:7fbfffe758 error:0 sunbird-bin[10459] general protection rip:2a959723cc rsp:7fbfffe748 error:0 sunbird-bin[10469] general protection rip:2a959723cc rsp:7fbfffea48 error:0
Does this also happen on trunk builds? (you might need to create one yourself)
this is a GCC bug, try gcc 3.4 *** This bug has been marked as a duplicate of 249475 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
The bugspam monkeys have been set free and are feeding on Calendar :: General. Be afraid for your sanity!
QA Contact: gurganbl → general
You need to log in before you can comment on or make changes to this bug.