mozilla still broken
Hi,
The mozilla version in pure64 (1.7-2) still segfaults on startup, despite
being compiled with -O, what worked up to 1.6-7.
I checked the gentoo cvs for patches, and there are none (the 1.7 patch
they had is already merged upstream). According to gentoo developpers
1.7 works on amd64, so I guess it has to do either with our toolchain or
with the patches applied to the upstream sources why mozilla still
fails.
I have build an unstripped version with debugging simbols, but cannot
upload it because it is simply too big (the mozilla-browser deb alone
is 101M), so I attached the patch I used.
See the attached gdb dump as well.
I am not really familiar with gdb dbugging, if more info is needed just
drop a line.
Greetings
Frederik Schueler
--
ENOSIG
--- mozilla-1.7/debian/rules.old 2004-06-26 16:07:31.458828216 +0200
+++ mozilla-1.7/debian/rules 2004-06-26 04:07:11.000000000 +0200
@@ -69,6 +69,14 @@
EXTRA_OPTIONS=
endif
+# amd64
+ifeq ($(DEB_BUILD_ARCH), amd64)
+OPTFLAGS=-g -O0 -DDEBIAN
+CC=gcc
+CXX=g++
+EXTRA_OPTIONS=
+endif
+
NULL =
IMAGES_OPTIONS = \
--enable-svg \
@@ -428,7 +436,7 @@
$(CURDIR)/debian/mozilla-dev/usr/share/doc/mozilla-browser/e\xamples/modules/plugin/samples/default/unix/
dh_installmime -a
dh_installdebconf -a
- dh_strip -a
+ #dh_strip -a
dh_compress -a
dh_fixperms -a
dh_installdeb -a
freddy@athlon:/pure64/buildd2/home/freddy/mozilla/mozilla-1.7/build-tree/mozilla/toolkit/xre$ gdb /usr/lib/mozilla/mozilla-bin
GNU gdb 6.1-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/lib/mozilla/mozilla-bin
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 10827)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 10827)]
0x0000002a98a793f2 in non-virtual thunk to nsDirectoryService::AddRef() ()
from /usr/lib/mozilla/libxpcom.so
(gdb) back full
#0 0x0000002a98a793f2 in non-virtual thunk to nsDirectoryService::AddRef() ()
from /usr/lib/mozilla/libxpcom.so
directory_atoms = {{mString = 0x2a98adb328 "XCurProcD",
mAtom = 0x2a98c21680}, {mString = 0x2a98adb332 "ComRegF",
mAtom = 0x2a98c21688}, {mString = 0x2a98adb33a "ComsD",
mAtom = 0x2a98c21698}, {mString = 0x2a98adb340 "XptiRegF",
mAtom = 0x2a98c21690}, {mString = 0x2a98adb323 "GreD",
mAtom = 0x2a98c216a0}, {mString = 0x2a98adb349 "GreComsD",
mAtom = 0x2a98c216a8}, {mString = 0x2a98adb352 "DrvD",
mAtom = 0x2a98c216b0}, {mString = 0x2a98adb357 "TmpD",
mAtom = 0x2a98c216b8}, {mString = 0x2a98adb35c "CurProcD",
mAtom = 0x2a98c216c0}, {mString = 0x2a98adb365 "CurWorkD",
mAtom = 0x2a98c216c8}, {mString = 0x2a98adb2c0 "MozBinD", mAtom = 0x0}, {
mString = 0x2a98adb36e "Locl", mAtom = 0x2a98c216d0}, {
mString = 0x2a98adb373 "LibD", mAtom = 0x2a98c216d8}, {
mString = 0x2a98adb378 "Home", mAtom = 0x2a98c216e0}}
nsDirectoryService::sHomeDirectory = (class nsIAtom *) 0x0
nsDirectoryService::sGRE_ComponentDirectory = (class nsIAtom *) 0x0
nsDirectoryService::sOS_TemporaryDirectory = (class nsIAtom *) 0x0
nsDirectoryService::sLocalDirectory = (class nsIAtom *) 0x0
nsDirectoryService::sComponentRegistry = (class nsIAtom *) 0x0
nsDirectoryService::sOS_CurrentProcessDirectory = (class nsIAtom *) 0x0
iid_NS_ISUPPORTS_IID = {m0 = 0, m1 = 0, m2 = 0,
m3 = "�\000\000\000\000\000\000F"}
nsDirectoryService::sXPTIRegistry = (class nsIAtom *) 0x0
nsDirectoryService::sCurrentProcess = (class nsIAtom *) 0x0
nsDirectoryService::mService = (nsDirectoryService *) 0x5a3340
nsDirectoryService::sOS_DriveDirectory = (class nsIAtom *) 0x0
iid = {m0 = 3368067200, m1 = 2152, m2 = 4563, m3 = "\221_��\211�\216<"}
iid = {m0 = 2019886466, m1 = 20115, m2 = 19296,
m3 = "\216\205&���\024�"}
iid = {m0 = 3153644208, m1 = 54330, m2 = 4563,
m3 = "\214�\000`\227\222'\214"}
iid = {m0 = 798457163, m1 = 21637, m2 = 4564, m3 = "\207�\000\020��^�"}
iid = {m0 = 1470524000, m1 = 54330, m2 = 4563,
m3 = "\214�\000`\227\222'\214"}
iid = {m0 = 2858487584, m1 = 43145, m2 = 4563,
m3 = "\214\201\000\000dest"}
iid = {m0 = 3515454016, m1 = 63954, m2 = 4562, m3 = "��\000\000dest"}
nsDirectoryService::sLibDirectory = (class nsIAtom *) 0x0
nsDirectoryService::sGRE_Directory = (class nsIAtom *) 0x0
nsDirectoryService::sOS_CurrentWorkingDirectory = (class nsIAtom *) 0x0
nsDirectoryService::sComponentDirectory = (class nsIAtom *) 0x0
#1 0x0000002a98a784ae in nsDirectoryService::QueryInterface (this=0x5a3340,
aIID=@0x42e660, aInstancePtr=0x2a98c21610) at nsDirectoryService.cpp:560
foundInterface = (nsISupports *) 0x5a3348
status = 0
#2 0x0000002a98a7812c in nsDirectoryService::Create (outer=0x0,
aIID=@0x42e660, aResult=0x2a98c21610) at nsDirectoryService.cpp:433
No locals.
#3 0x0000002a98a4fb1a in NS_InitXPCOM2 (result=0x7fbffff8c0,
binDirectory=0x0, appFileLocationProvider=0x5a2280) at nsXPComInit.cpp:457
rv = 0
dirService = {<nsCOMPtr_base> = {mRawPtr = 0x0}, <No data fields>}
compMgr = (class nsComponentManagerImpl *) 0x2a9743d120
memory = {<nsCOMPtr_base> = {mRawPtr = 0x5a2280}, <No data fields>}
registrar = {<nsCOMPtr_base> = {mRawPtr = 0x0}, <No data fields>}
iim = (class nsIInterfaceInfoManager *) 0x2a96ccb878
#4 0x000000000042c370 in NS_InitXPCOM2 (result=0x7fbffff8c0,
binDirectory=0x0, appFileLocationProvider=0x5a2280) at nsXPCOMGlue.cpp:173
No locals.
#5 0x000000000042cb4a in GRE_Startup () at nsXPCOMGlue.cpp:477
xpcomLocation = 0x545a20 "/usr/lib/mozilla/libxpcom.so"
rv = 0
provider = (class nsGREDirServiceProvider *) 0x5a2280
servMan = {<nsCOMPtr_base> = {mRawPtr = 0x0}, <No data fields>}
#6 0x000000000041962c in main (argc=1, argv=0x7fbffff9c8)
at nsAppRunner.cpp:1705
x11threadsafe = 0
rv = 1
nativeApp = (class nsINativeAppSupport *) 0x0
splash = (class nsISplashScreen *) 0x0
dosplash = 0
remoterv = 42
argused = -1788440576
mainResult = 0
(gdb)
Reply to: