Subject: Re: mozilla - "make" stops.
To: Shigeki UNO <shigeki@mediawars.ne.jp>
From: Frederick Bruckman <fredb@immanent.net>
List: tech-pkg
Date: 08/18/2002 10:16:37
On Sat, 17 Aug 2002, Shigeki UNO wrote:

> > On Fri, 16 Aug 2002, Klaus Heinz wrote:
> >
> >> Maybe he used the patches I sent included in a message to this list
> >> on 2002-08-05.
> >> Instead of beating the compiler to use --register-prefix-optional
> >> those patches fix the register syntax in two files under '../xpcom/'.
> >>
> >> Additionally, the leading underscore (for aout symbols) is left out on
> >> ELF systems. This could be the problem you see about missing symbols.
>
> Mmm, Are we getting somewhere?  Does any m68k or mac68k users run
> mozilla-1.0nb2?

Obviously not. ;-)

I can reproduce your problem. "regchrome", the last thing the
installation script runs, is what's dumping core. It also dumps core
for me when run manually in "/usr/X11R6/lib/mozilla" with
LD_LIBRARY_PATH and MOZILLA_FIVE_HOME set to '.' and exported (just
like the script does). Also with my shell limits jacked up.

Running "gdb" over the core file causes it to dump core for me, too,
but here's what I get if I actually run it under the debugger:


Script started on Sun Aug 18 09:51:40 2002
root@deduction-> gdb ./regchrome
GNU gdb 5.0nb1
Copyright 2000 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 "m68k--netbsdelf"...(no debugging symbols found)...
(gdb) run
Starting program: /usr/X11R6/lib/mozilla/./regchrome
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...
Program received signal SIGSEGV, Segmentation fault.
0x40fec3a in nsAutoString::~nsAutoString ()
   from /usr/X11R6/lib/mozilla/./libxpcom.so
(gdb) where
#0  0x40fec3a in nsAutoString::~nsAutoString ()
   from /usr/X11R6/lib/mozilla/./libxpcom.so
#1  0x44f5f14 in CNewlineToken::AllocNewline ()
   from /usr/X11R6/lib/mozilla/components/libhtmlpars.so
#2  0x44ff31c in nsMatchesTopic::operator() ()
   from /usr/X11R6/lib/mozilla/components/libhtmlpars.so
#3  0x40fffa6 in nsGenericModule::Initialize ()
   from /usr/X11R6/lib/mozilla/./libxpcom.so
#4  0x41001aa in nsGenericModule::GetClassObject ()
   from /usr/X11R6/lib/mozilla/./libxpcom.so
#5  0x40bf9d6 in nsNativeComponentLoader::GetFactoryFromModule ()
   from /usr/X11R6/lib/mozilla/./libxpcom.so
#6  0x40bd884 in nsNativeComponentLoader::GetFactory ()
   from /usr/X11R6/lib/mozilla/./libxpcom.so
#7  0x40b9832 in nsComponentManagerImpl::FindFactory ()
   from /usr/X11R6/lib/mozilla/./libxpcom.so
#8  0x40b9ba8 in nsComponentManagerImpl::CreateInstance ()
   from /usr/X11R6/lib/mozilla/./libxpcom.so
#9  0x4100ee6 in nsCreateInstanceByCID::operator() ()
   from /usr/X11R6/lib/mozilla/./libxpcom.so
#10 0x40ff1fe in nsCOMPtr_base::assign_from_helper ()
   from /usr/X11R6/lib/mozilla/./libxpcom.so
#11 0x44a02b8 in nsRDFXMLParser::ParseAsync ()
---Type <return> to continue, or q <return> to quit---
   from /usr/X11R6/lib/mozilla/components/librdf.so
#12 0x449ed14 in RDFXMLDataSourceImpl::Refresh ()
   from /usr/X11R6/lib/mozilla/components/librdf.so
#13 0x4265f00 in nsChromeRegistry::LoadDataSource ()
   from /usr/X11R6/lib/mozilla/components/libchrome.so
#14 0x426e43c in nsChromeRegistry::AddToCompositeDataSource ()
   from /usr/X11R6/lib/mozilla/components/libchrome.so
#15 0x426ee4c in nsChromeRegistry::LoadInstallDataSource ()
   from /usr/X11R6/lib/mozilla/components/libchrome.so
#16 0x426f5bc in nsChromeRegistry::CheckForNewChrome ()
   from /usr/X11R6/lib/mozilla/components/libchrome.so
#17 0x42636c2 in nsChromeRegistry::Init ()
   from /usr/X11R6/lib/mozilla/components/libchrome.so
#18 0x42623b2 in _init () from /usr/X11R6/lib/mozilla/components/libchrome.so
#19 0x40ffa70 in nsGenericFactory::CreateInstance ()
   from /usr/X11R6/lib/mozilla/./libxpcom.so
#20 0x40b9c78 in nsComponentManagerImpl::CreateInstanceByContractID ()
   from /usr/X11R6/lib/mozilla/./libxpcom.so
#21 0x40ba630 in nsComponentManagerImpl::GetServiceByContractID ()
   from /usr/X11R6/lib/mozilla/./libxpcom.so
#22 0x41010fc in nsGetServiceByContractID::operator() ()
   from /usr/X11R6/lib/mozilla/./libxpcom.so
#23 0x40ff1fe in nsCOMPtr_base::assign_from_helper ()
---Type <return> to continue, or q <return> to quit---
   from /usr/X11R6/lib/mozilla/./libxpcom.so
#24 0x2d30 in dladdr ()
#25 0x2aac in __register_frame_info ()
(gdb) quit
The program is running.  Exit anyway? (y or n) y
root@deduction-> exit

Script done on Sun Aug 18 09:52:22 2002


Perhaps a string is being free()'d that was never allocated? I also
ran under "ktrace" with MALLOC_OPTIONS=AU, and it seems that malloc()
is never called at all.


Frederick