Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Oct 2005 22:48:29 -0600
From:      "Kenneth D. Merry" <ken@freebsd.org>
To:        Joe Marcus Clarke <marcus@marcuscom.com>
Cc:        gnome@freebsd.org, freebsd-ports@freebsd.org
Subject:   Re: firefox and mozilla install problem
Message-ID:  <20051015044829.GA96117@nargothrond.kdm.org>
In-Reply-To: <1129085609.49727.5.camel@shumai.marcuscom.com>
References:  <20051011232309.GA69983@nargothrond.kdm.org> <1129075502.10684.2.camel@shumai.marcuscom.com> <20051012001315.GA70433@nargothrond.kdm.org> <1129076166.10684.5.camel@shumai.marcuscom.com> <1129085609.49727.5.camel@shumai.marcuscom.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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@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@FreeBSD.ORG



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051015044829.GA96117>