On Tue, May 13, 2008 at 08:17:38AM +0200, Mike Hommey wrote:
> Also, could you check if it doesn't crash when built with gcc 4.2 ?

I've rebuild xulrunner with the following patch (which seem to do the
right thing AFAICS in the build log):

diff -u xulrunner-1.9~b5/debian/rules xulrunner-1.9~b5/debian/rules
--- xulrunner-1.9~b5/debian/rules
+++ xulrunner-1.9~b5/debian/rules
@@ -59,6 +59,8 @@
        # Add here commands to configure the package.
        JAVA_HOME=/usr/lib/jvm/java-gcj \
        MOZCONFIG=debian/mozconfig \
+       CC="gcc-4.2" \
+       CXX="g++-4.2" \
        CFLAGS="$(CFLAGS)" \
        CXXFLAGS="$(CFLAGS)" \
        ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \

But it still crashes:
[EMAIL PROTECTED]:/# dpkg -i libmozjs1d{,-dbg}_1.9~b5-4.2_hppa.deb 
xulrunner-1.9{,-dbg}_1.9~b5-4.2_hppa.deb 
(Reading database ... 13040 files and directories currently installed.)
Preparing to replace libmozjs1d 1.9~b5-4.1 (using 
libmozjs1d_1.9~b5-4.2_hppa.deb) ...
Unpacking replacement libmozjs1d ...
Selecting previously deselected package libmozjs1d-dbg.
Unpacking libmozjs1d-dbg (from libmozjs1d-dbg_1.9~b5-4.2_hppa.deb) ...
Selecting previously deselected package xulrunner-1.9.
Unpacking xulrunner-1.9 (from xulrunner-1.9_1.9~b5-4.2_hppa.deb) ...
Selecting previously deselected package xulrunner-1.9-dbg.
Unpacking xulrunner-1.9-dbg (from xulrunner-1.9-dbg_1.9~b5-4.2_hppa.deb) ...
Setting up libmozjs1d (1.9~b5-4.2) ...
Setting up libmozjs1d-dbg (1.9~b5-4.2) ...
Setting up xulrunner-1.9 (1.9~b5-4.2) ...
/var/lib/dpkg/info/xulrunner-1.9.postinst: line 12: 26149 Segmentation fault    
  ./regxpcom
dpkg: error processing xulrunner-1.9 (--install):
 subprocess post-installation script returned error exit status 139
dpkg: dependency problems prevent configuration of xulrunner-1.9-dbg:
 xulrunner-1.9-dbg depends on xulrunner-1.9 (= 1.9~b5-4.2); however:
  Package xulrunner-1.9 is not configured yet.
dpkg: error processing xulrunner-1.9-dbg (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 xulrunner-1.9
 xulrunner-1.9-dbg
[EMAIL PROTECTED]:/# cd /usr/lib/xulrunner-1.9/
[EMAIL PROTECTED]:/usr/lib/xulrunner-1.9# gdb ./regxpcom 
GNU gdb 6.7.1-debian
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "hppa-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run
Starting program: /usr/lib/xulrunner-1.9/regxpcom 
[Thread debugging using libthread_db enabled]
[New Thread 0x4000 (LWP 26151)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x4000 (LWP 26151)]
xptiInterfaceEntry::GetMethodInfo (this=0x61736372, index=44888, 
info=0xfb6ab048) at xptiprivate.h:590
590     xptiprivate.h: No such file or directory.
        in xptiprivate.h
(gdb) bt
#0  xptiInterfaceEntry::GetMethodInfo (this=0x61736372, index=44888, 
info=0xfb6ab048) at xptiprivate.h:590
#1  0x423ebbec in PrepareAndDispatch (self=0x42465a94, methodIndex=<value 
optimized out>, args=0xfb6aaf58, floatargs=0xfb6aaff0) at xptcstubs_pa32.cpp:71
#2  0x423ebe94 in SharedStub () from ./libxul.so
#3  0x423c4e60 in nsCategoryManager::NotifyObservers (this=<value optimized 
out>, aTopic=0x4252d908 "xpcom-category-entry-added", 
    aCategoryName=0x42465a84 "module-loader", aEntryName=0x42465a94 
"text/javascript") at nsCategoryManager.cpp:569
#4  0x423c7238 in nsCategoryManager::AddCategoryEntry (this=0x4bac8, 
aCategoryName=0x42465a84 "module-loader", aEntryName=0x42465a94 
"text/javascript", 
    aValue=0x6f6d8 "Bz9�", aPersist=1, aReplace=1, _retval=0xfb6aad1c) at 
nsCategoryManager.cpp:643
#5  0x416171f4 in RegisterJSLoader (aCompMgr=<value optimized out>, 
aPath=<value optimized out>, registryLocation=<value optimized out>, 
    componentType=<value optimized out>, info=0x426f9368) at 
./../loader/mozJSLoaderConstructors.h:70
#6  0x42383900 in nsGenericModule::RegisterSelf (this=0x6f680, 
aCompMgr=0x61736372, aPath=0x5, registryLocation=0xfb6ab048 "A%�", 
    componentType=0xfb6aaff0 "?`") at nsGenericFactory.cpp:420
#7  0x423cae60 in RegisterStaticModule (key=0x4245c1ec "xpconnect", 
module=0x61736372, [EMAIL PROTECTED]) at nsComponentManager.cpp:3200
#8  0x423d4e8c in nsStaticModuleLoader::EnumerateModules (this=<value optimized 
out>, [EMAIL PROTECTED]: 0x423cadfc <RegisterStaticModule>, 
    [EMAIL PROTECTED]) at nsStaticComponentLoader.cpp:141
#9  0x423cee24 in nsComponentManagerImpl::AutoRegister (this=0x2c360, 
aSpec=0x0) at nsComponentManager.cpp:3243
#10 0x42388c84 in NS_InitXPCOM3_P (result=0x0, binDirectory=0xfb6aa960, 
appFileLocationProvider=<value optimized out>, 
    staticComponents=<value optimized out>, componentCount=0) at 
nsXPComInit.cpp:655
#11 0x42388d40 in NS_InitXPCOM2_P (result=0x61736372, binDirectory=0x5, 
appFileLocationProvider=0xfb6ab048) at nsXPComInit.cpp:489
#12 0x0001223c in NS_InitXPCOM2 (result=0x61736372, binDirectory=0x5, 
appFileLocationProvider=0xfb6ab048) at nsXPCOMGlue.cpp:138
#13 0x00010ca4 in startup_xpcom () at regxpcom.cpp:155
#14 0x00011198 in main (argc=1634952050, argv=0x5) at regxpcom.cpp:375
#15 0x408bf254 in __libc_start_main () from /lib/libc.so.6
#16 0x000108a0 in _start ()
(gdb) up 1
#1  0x423ebbec in PrepareAndDispatch (self=0x42465a94, methodIndex=<value 
optimized out>, args=0xfb6aaf58, floatargs=0xfb6aaff0) at xptcstubs_pa32.cpp:71
71      xptcstubs_pa32.cpp: No such file or directory.
        in xptcstubs_pa32.cpp
(gdb) p *self
$1 = {<nsIXPTCStubBase> = {<nsISupports> = {_vptr.nsISupports = 0x74657874}, 
<No data fields>}, mOuter = 0x2f6a6176, mEntry = 0x61736372}
(gdb) 

Gruesse,
-- 
Frank Lichtenheld <[EMAIL PROTECTED]>
www: http://www.djpig.de/



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to