firefox and mozilla install problem

Kenneth D. Merry ken at freebsd.org
Fri Oct 14 21:48:32 PDT 2005


On Tue, Oct 11, 2005 at 22:53:29 -0400, Joe Marcus Clarke wrote:
> On Tue, 2005-10-11 at 20:16 -0400, Joe Marcus Clarke wrote:
> > On Tue, 2005-10-11 at 18:13 -0600, Kenneth D. Merry wrote:
> > > On Tue, Oct 11, 2005 at 20:05:02 -0400, Joe Marcus Clarke wrote:
> > > > On Tue, 2005-10-11 at 17:23 -0600, Kenneth D. Merry wrote:
> > > > > I'm having a problem installing firefox and mozilla.  I'm running
> > > > > FreeBSD-current from October 10th.
> > > > > 
> > > > > # uname -a
> > > > > FreeBSD erebor.kdm.org 7.0-CURRENT FreeBSD 7.0-CURRENT #2: Tue Oct 11 13:16:04 MDT 2005     ken at erebor.kdm.org:/usr/obj/usr/home/ken/perforce/FreeBSD-ken/src/sys/erebor  i386
> > > > > 
> > > > > regchrome core dumps:
> > > > > 
> > > > > ===========================================================================
> > > > > # portupgrade -P -R -N mozilla
> > > > > [Updating the pkgdb <format:dbm_hash> in /var/db/pkg ... - 330 packages found (-1 +0) (...) done]
> > > > > --->  Found 2 ports matching 'mozilla':
> > > > >         www/mozilla
> > > > >         www/mozilla-devel
> > > > > Install 'www/mozilla'? [yes]
> > > > > Install 'www/mozilla-devel'? [yes] n
> > > > > --->  Checking for the latest package of 'www/mozilla'
> > > > > --->  Found a package of 'www/mozilla': /usr/ports/packages/All/mozilla-1.7.12,2.tbz (mozilla-1.7.12,2)
> > > > > --->  Installing 'mozilla-1.7.12,2' from a package
> > > > > --->  Installing the new version via the package
> > > > > ===> Building Chrome's registry...
> > > > > Segmentation fault (core dumped)
> > > > > [Updating the pkgdb <format:dbm_hash> in /var/db/pkg ... - 331 packages found (-0 +1) . done]
> > > > > ===========================================================================
> > > > > 
> > > > > Here's the stack trace from regchrome:
> > > > > 
> > > > > #0  0x28344227 in pthread_testcancel () from /usr/lib/libpthread.so.2
> > > > > [New Thread 0x807b800 (runnable)]
> > > > > [New LWP 100110]
> > > > > (gdb) where
> > > > > #0  0x28344227 in pthread_testcancel () from /usr/lib/libpthread.so.2
> > > > > #1  0x2833cbdc in pthread_mutexattr_init () from /usr/lib/libpthread.so.2
> > > > > #2  0x00000000 in ?? ()
> > > > > (gdb) 
> > > > > 
> > > > > Firefox has pretty much the same problem.
> > > > > 
> > > > > Anyone have any ideas on how to fix this?
> > > > 
> > > > What CFLAGS are you using?  This problem is usually caused by
> > > > over-optimizing.  You might try a make clean in www/mozilla, then
> > > > rebuild with default CFLAGS.
> > > 
> > > I don't have any CFLAGS set in make.conf.
> > > 
> > > The problem happens whether I'm installing from a package or the port.
> > > (The above is from the package install.)
> > 
> > I'll try a portupgrade on my -CURRENT machine after updating to today's
> > -CURRENT, but I did not encounter this problem on previous builds, so it
> > may be a hardware or other machine-dependent problem.
> 
> Okay, I've now rebuilt Mozilla on:
> 
> FreeBSD jclarke-pc.cisco.com 7.0-CURRENT FreeBSD 7.0-CURRENT #43: Tue Oct 11 21:15:41 EDT 2005     marcus at jclarke-pc.cisco.com:/usr/obj/usr/src/sys/JCLARKE-PC i386
> 
> And I have no problems building the chrome registry, or running Mozilla.
> If there was something wrong in -CURRENT, it has been since fixed.

Thanks for looking into this.

I have fixed the problem.  Just for the record/archives, the following
things didn't work:

 - portupgrade -P -R -N mozilla
   (i.e. install mozilla using a port if available, and upgrade everything
    it depends on as well.)
 - portupgrade -P -R -N firefox
   (i.e. install firefox using a port if available, and upgrade everything
    it depends on as well.)
 - buildworld/installworld with the latest sources, GENERIC or non-GENERIC
   kernel

What did eventually work was the following:

portupgrade -P -R gnome2

That upgraded a whole ton of things, one of which was evidently causing
regchrome to blow up, but wasn't registered as an explicit dependency.

So now regchrome works and mozilla and firefox seem to work fine.

The bizzare thing about this is that regchrome was crashing inside the
thread library, but that really wasn't the issue at all.  Maybe it was a
memory spammage issue caused by an out of date library somewhere.

portupgrade is a very handy tool...saves all sorts of effort with
upgrading lots of ports by hand.

Thanks,

Ken
-- 
Kenneth Merry
ken at FreeBSD.ORG


More information about the freebsd-ports mailing list