Date: Tue, 23 Mar 2004 09:03:48 -0500 From: Joe Marcus Clarke <marcus@FreeBSD.org> To: Alexander Leidinger <Alexander@Leidinger.net> Cc: "Russell D. Murphy Jr." <rdmurphy@vt.edu> Subject: Re: Mozilla crash and burn? Message-ID: <1080050628.777.2.camel@gyros> In-Reply-To: <20040323121441.1e535e57@Magellan.Leidinger.net> References: <16479.30826.56912.226587@knock.econ.vt.edu> <20040322180728.F5352@carver.gumbysoft.com> <20040323121441.1e535e57@Magellan.Leidinger.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--=-9/wrdcZZIBMeTyGsVElj Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Tue, 2004-03-23 at 06:14, Alexander Leidinger wrote: > On Mon, 22 Mar 2004 18:07:54 -0800 (PST) > Doug White <dwhite@gumbysoft.com> wrote: >=20 > > On Mon, 22 Mar 2004, Russell D. Murphy Jr. wrote: > >=20 > > > > > > Mozilla has been non-functional since I updated my machine on Friday. > > > > > > FreeBSD knock.econ.vt.edu 5.2-CURRENT FreeBSD 5.2-CURRENT #0: > > > Fri Mar 19 05:13:08 EST 2004 > > > root@knock.econ.vt.edu:/usr/obj/usr/src/sys/KNOCK i386 > > > > > > I've rebuilt mozilla (portupgrade -fRr mozilla), gotten rid of all > > > plugins and it still dies. > > > > > > The symptom is that it starts and opens up the initial window (a > > > collection of bookmarks - a local file). If I click on one of the > > > links, the title is displayed in the window frame, the URL is > > > displayed in the address box, and mozilla claims to be "transferring > > > data from ...". Then mozilla crashes. No window, no remaining > > > process. > >=20 > > Any output on the terminal you launched mozilla from? >=20 > No. And trying to run mozilla within gdb ("mozilla -g"), doesn't work > (gdb aborts). I can reproduce it with www.gnomedesktop.org and > www.invdeo.org. >=20 >=20 > I'm building a debug version of mozilla (--enable-debug, --enable-tests, > --disable-strip) and I get abort traps while building mozilla (this is > with mozilla-devel, but I've also seen the above mentioned behavior with > 1.6, I reverted to 1.5 a while ago, but decided to give 1.7 a try after > a resolver, expat and freetype recompile orgy): >=20 > ---snip--- > gmake[4]: Leaving directory `/big/usr/ports/www/mozilla-devel/work/mozill= a/secur > ity/nss/cmd/shlibsign/mangle' > FreeBSD5.2_DBG.OBJ/shlibsign -v -i /big/usr/ports/www/mozilla-devel/work/= mozilla > /dist/lib/libsoftokn3.so > Assertion failure: _PT_PTHREAD_MUTEX_IS_LOCKED(lock->mutex), at ptsynch.c= :207 > Abort trap (core dumped) > gmake[3]: *** [/big/usr/ports/www/mozilla-devel/work/mozilla/dist/lib/lib= softokn > 3.chk] Error 134 > gmake[3]: Leaving directory `/big/usr/ports/www/mozilla-devel/work/mozill= a/secur > ity/nss/cmd/shlibsign' > gmake[2]: *** [libs] Error 2 > gmake[2]: Leaving directory `/big/usr/ports/www/mozilla-devel/work/mozill= a/secur > ity/manager' > gmake[1]: *** [tier_40] Error 2 > gmake[1]: Leaving directory `/big/usr/ports/www/mozilla-devel/work/mozill= a' > gmake: *** [default] Error 2 > *** Error code 2 > ---snip-- >=20 > Running this application within gdb works as intented (no abort), but > further in the build I get: >=20 > ---snip--- > gmake[1]: Leaving directory `/big/usr/ports/www/mozilla-devel/work/mozill= a' > /usr/bin/sed -e "s|%%PREFIX%%|/usr/X11R6|g" -e "s|%%MOZILLA%%|mozilla-dev= el|g" > /big/usr/ports/www/mozilla-devel/files/mozilla.sh >/big/usr/ports/www/moz= illa-de > vel/work/mozilla/mozilla-devel > (cd /big/usr/ports/www/mozilla-devel/work/mozilla/dist/bin; /usr/bin/env= LD_LIB > RARY_PATH=3D. MOZILLA_FIVE_HOME=3D. ./regxpcom; /usr/bin/env LD_LIBRARY_= PATH=3D. MOZI > LLA_FIVE_HOME=3D. ./regchrome; /usr/bin/touch ./chrome/user-skins.rdf ./= chrome/us > er-locales.rdf) > Assertion failure: _PT_PTHREAD_MUTEX_IS_LOCKED(lock->mutex), at ptsynch.c= :207 > Abort trap (core dumped) > *** Error code 134 >=20 > # cd /big/usr/ports/www/mozilla-devel/work/mozilla/dist/bin; /usr/bin/en= v LD_LI > BRARY_PATH=3D. MOZILLA_FIVE_HOME=3D. gdb ./regxpcom; /usr/bin/env LD_LIB= RARY_PATH=3D. > MOZILLA_FIVE_HOME=3D. gdb ./regchrome; /usr/bin/touch ./chrome/user-ski= ns.rdf ./ > chrome/user-locales.rdf > GNU gdb 5.2.1 (FreeBSD) > Copyright 2002 Free Software Foundation, Inc. >=20 > Starting program: /big/usr/ports/www/mozilla-devel/work/mozilla/xpcom/too= ls/regi > stry/regxpcom > Assertion failure: _PT_PTHREAD_MUTEX_IS_LOCKED(lock->mutex), at ptsynch.c= :207 >=20 > Program received signal SIGABRT, Aborted. > 0x281d97e7 in kill () from /lib/libc.so.5 > tarting program: /big/usr/ports/www/mozilla-devel/work/mozilla/rdf/chrome= /tools/ > chromereg/regchrome > Assertion failure: _PT_PTHREAD_MUTEX_IS_LOCKED(lock->mutex), at ptsynch.c= :207 >=20 > Program received signal SIGABRT, Aborted. > 0x2839f7e7 in kill () from /lib/libc.so.5 > (gdb) bt > #0 0x2839f7e7 in kill () from /lib/libc.so.5 > #1 0x282822e2 in raise () from /usr/lib/libpthread.so.1 > #2 0x283f4a37 in abort () from /lib/libc.so.5 > #3 0x2825951b in PR_Assert () at prlog.c:530 > #4 0x2826892f in PR_Unlock (lock=3D0x28272b80) at ptsynch.c:207 > #5 0x282613f0 in PR_GetEnv (var=3D0x28272263 "NSPR_FD_CACHE_SIZE_LOW") > at prenv.c:80 > #6 0x28255553 in _PR_InitFdCache () at prfdcach.c:259 > #7 0x2826a4d7 in _PR_InitIO () at ptio.c:1153 > #8 0x28261b87 in _PR_InitStuff () at prinit.c:235 > #9 0x282591de in PR_NewLogModule (name=3D0x2813e5cb "nsTimerImpl") > at prlog.c:343 > #10 0x28113aec in __static_initialization_and_destruction_0 (__initialize= _p=3D1, > __priority=3D65535) at nsTimerImpl.h:52 > #11 0x28113b07 in _GLOBAL__I__ZN11TimerThread6AddRefEv () at nsTimerImpl.= h:494 > #12 0x2813e235 in __do_global_ctors_aux () from ./libxpcom.so > #13 0x280b8242 in _init () from ./libxpcom.so > #14 0x280517ce in _rtld () from /libexec/ld-elf.so.1 > (gdb) up 5 > #5 0x282613f0 in PR_GetEnv (var=3D0x28272263 "NSPR_FD_CACHE_SIZE_LOW") > at prenv.c:80 > 80 _PR_UNLOCK_ENV(); > Current language: auto; currently c > (gdb) list > 75 > 76 if (!_pr_initialized) _PR_ImplicitInitialization(); > 77 > 78 _PR_LOCK_ENV(); > 79 ev =3D _PR_MD_GET_ENV(var); > 80 _PR_UNLOCK_ENV(); > 81 return ev; > 82 } > 83 > 84 PR_IMPLEMENT(PRStatus) PR_SetEnv(const char *string) > (gdb) down 1 > #4 0x2826892f in PR_Unlock (lock=3D0x28272b80) at ptsynch.c:207 > 207 PR_ASSERT(_PT_PTHREAD_MUTEX_IS_LOCKED(lock->mutex)); > (gdb) list > 202 PR_IMPLEMENT(PRStatus) PR_Unlock(PRLock *lock) > 203 { > 204 PRIntn rv; > 205 > 206 PR_ASSERT(lock !=3D NULL); > 207 PR_ASSERT(_PT_PTHREAD_MUTEX_IS_LOCKED(lock->mutex)); > 208 PR_ASSERT(PR_TRUE =3D=3D lock->locked); > 209 PR_ASSERT(pthread_equal(lock->owner, pthread_self())); > 210 > 211 if (!lock->locked || !pthread_equal(lock->owner, pthread_self= ())) > (gdb) quit >=20 > #0 0x281d97e7 in kill () from /lib/libc.so.5 > #1 0x280bc2e2 in raise () from /usr/lib/libpthread.so.1 > #2 0x2822ea37 in abort () from /lib/libc.so.5 > #3 0x2809351b in PR_Assert () at prlog.c:530 > #4 0x280a292f in PR_Unlock (lock=3D0x280acb80) at ptsynch.c:207 > #5 0x2809b3f0 in PR_GetEnv (var=3D0x280ac263 "NSPR_FD_CACHE_SIZE_LOW") > at prenv.c:80 > #6 0x2808f553 in _PR_InitFdCache () at prfdcach.c:259 > #7 0x280a44d7 in _PR_InitIO () at ptio.c:1153 > #8 0x2809bb87 in _PR_InitStuff () at prinit.c:235 > #9 0x280969f9 in pr_LoadLibraryByPathname (name=3D0x804b80a "libxpcom.so= ", > flags=3D671832520) at prlink.c:921 > #10 0x2809698d in PR_LoadLibraryWithFlags (libSpec=3D > {type =3D PR_LibSpec_Pathname, value =3D {pathname =3D 0x804b80= a "libxpcom.s > o", mac_named_fragment =3D {fsspec =3D 0x804b80a, name =3D 0x1068310 <Err= or reading ad > dress 0x1068310: Bad address>}, mac_indexed_fragment =3D {fsspec =3D 0x80= 4b80a, inde > x =3D 17203984}}}, flags=3D33434) at prlink.c:612 > #11 0x0804a331 in XPCOMGlueStartup (xpcomFile=3D0x0) at nsXPCOMGlue.cpp:1= 08 > #12 0x080491df in startup_xpcom() () at regxpcom.cpp:141 > #13 0x080497de in main (argc=3D0, argv=3D0xbfbfeaf8) at regxpcom.cpp:389 > #14 0x08048d14 in _start () > (gdb) up 5 > #5 0x2809b3f0 in PR_GetEnv (var=3D0x280ac263 "NSPR_FD_CACHE_SIZE_LOW") > at prenv.c:80 > 80 _PR_UNLOCK_ENV(); > Current language: auto; currently c > (gdb) list > 75 > 76 if (!_pr_initialized) _PR_ImplicitInitialization(); > 77 > 78 _PR_LOCK_ENV(); > 79 ev =3D _PR_MD_GET_ENV(var); > 80 _PR_UNLOCK_ENV(); > 81 return ev; > 82 } > 83 > 84 PR_IMPLEMENT(PRStatus) PR_SetEnv(const char *string) > (gdb) print ev > $1 =3D 0x0 > (gdb) down 1 > #4 0x280a292f in PR_Unlock (lock=3D0x280acb80) at ptsynch.c:207 > 207 PR_ASSERT(_PT_PTHREAD_MUTEX_IS_LOCKED(lock->mutex)); > (gdb) list > 202 PR_IMPLEMENT(PRStatus) PR_Unlock(PRLock *lock) > 203 { > 204 PRIntn rv; > 205 > 206 PR_ASSERT(lock !=3D NULL); > 207 PR_ASSERT(_PT_PTHREAD_MUTEX_IS_LOCKED(lock->mutex)); > 208 PR_ASSERT(PR_TRUE =3D=3D lock->locked); > 209 PR_ASSERT(pthread_equal(lock->owner, pthread_self())); > 210 > 211 if (!lock->locked || !pthread_equal(lock->owner, pthread_self= ())) > (gdb) print lock > $2 =3D (PRLock *) 0x280acb80 > (gdb) print *lock > $3 =3D {mutex =3D 0x65737341, notified =3D {length =3D 1869182066, cv =3D= {{ > cv =3D 0x6166206e, times =3D 1920298089}, {cv =3D 0x25203a65, > times =3D 1629498483}, {cv =3D 0x73252074, times =3D 174335290}, = { > cv =3D 0x6d727000, times =3D 779116909}, {cv =3D 0x63, times =3D = 0}, { > cv =3D 0x0, times =3D 0}}, link =3D 0x0}, locked =3D 0, owner =3D= 0x746f7270} > (gdb) up 6 > #10 0x2809698d in PR_LoadLibraryWithFlags (libSpec=3D > {type =3D PR_LibSpec_Pathname, value =3D {pathname =3D 0x804b80= a "libxpcom.s > o", mac_named_fragment =3D {fsspec =3D 0x804b80a, name =3D 0x1068310 <Err= or reading ad > dress 0x1068310: Bad address>}, mac_indexed_fragment =3D {fsspec =3D 0x80= 4b80a, inde > x =3D 17203984}}}, flags=3D33434) at prlink.c:612 > 612 return pr_LoadLibraryByPathname(libSpec.value.pathnam= e, flag > s); > (gdb) list > 607 if (flags =3D=3D 0) { > 608 flags =3D _PR_DEFAULT_LD_FLAGS; > 609 } > 610 switch (libSpec.type) { > 611 case PR_LibSpec_Pathname: > 612 return pr_LoadLibraryByPathname(libSpec.value.pathnam= e, flag > s); > 613 #ifdef XP_MAC > 614 case PR_LibSpec_MacNamedFragment: > 615 return pr_Mac_LoadNamedFragment( > 616 libSpec.value.mac_named_fragment.fsspec, > (gdb) print libSpec.value.pathname > $5 =3D 0x804b80a "libxpcom.so" > (gdb) print flags > $6 =3D 33434 > (gdb) quit > ---snip--- >=20 > I reviewed: > ---snip--- > # grep -R _PT_PTHREAD_MUTEX_IS_LOCKED . | grep define > ./nsprpub/pr/include/md/_pth.h:#define _PT_PTHREAD_MUTEX_IS_LOCKED(m) = (0 =3D=3D p > thread_mutex_trylock(&(m))) > ./nsprpub/pr/include/md/_pth.h:#define _PT_PTHREAD_MUTEX_IS_LOCKED(m) = (EBUSY > =3D=3D pthread_mutex_trylock(&(m))) > ./nsprpub/pr/include/md/_pth.h:#define _PT_PTHREAD_MUTEX_IS_LOCKED(m) = (EBUSY > =3D=3D pthread_mutex_trylock(&(m))) > ./dist/include/nspr/md/_pth.h:#define _PT_PTHREAD_MUTEX_IS_LOCKED(m) (= 0 =3D=3D pt > hread_mutex_trylock(&(m))) > ./dist/include/nspr/md/_pth.h:#define _PT_PTHREAD_MUTEX_IS_LOCKED(m) (= EBUSY =3D > =3D pthread_mutex_trylock(&(m))) > ./dist/include/nspr/md/_pth.h:#define _PT_PTHREAD_MUTEX_IS_LOCKED(m) (= EBUSY =3D > =3D pthread_mutex_trylock(&(m))) > ./dist/sdk/nspr/include/md/_pth.h:#define _PT_PTHREAD_MUTEX_IS_LOCKED(m) = (0 =3D > =3D pthread_mutex_trylock(&(m))) > ./dist/sdk/nspr/include/md/_pth.h:#define _PT_PTHREAD_MUTEX_IS_LOCKED(m) = (EBU > SY =3D=3D pthread_mutex_trylock(&(m))) > ./dist/sdk/nspr/include/md/_pth.h:#define _PT_PTHREAD_MUTEX_IS_LOCKED(m) = (EBU > SY =3D=3D pthread_mutex_trylock(&(m))) >=20 > # grep -R _PR_LOCK_ENV . | grep define > ./nsprpub/pr/src/misc/prenv.c:#define _PR_LOCK_ENV() > ./nsprpub/pr/src/misc/prenv.c:#define _PR_LOCK_ENV() if (_pr_primordialCP= U) _PR_ > INTSOFF(_is); > ./nsprpub/pr/src/misc/prenv.c:#define _PR_LOCK_ENV() { if (_pr_envLock) P= R_Lock( > _pr_envLock); } > ---snip--- >=20 > Unfortunately I haven't found a problem. And I don't know where to look > further... :-( >=20 > Feel free to make suggestions. I keep the work directory of the port in > case someone has a clever idea what to try next... Me, either. Mozilla works just fine for me. I've never seen any of the crashes you describe. The URLs you mentioned above work fine for me (I go to GnomeDesktop a lot). I'm running -CURRENT from yesterday with all debugging disabled. Perhaps this is something triggered by WITNESS... Joe >=20 > Bye, > Alexander. --=20 Joe Marcus Clarke FreeBSD GNOME Team :: marcus@FreeBSD.org gnome@FreeBSD.org FreeNode / #freebsd-gnome http://www.FreeBSD.org/gnome --=-9/wrdcZZIBMeTyGsVElj Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQBAYEPEb2iPiv4Uz4cRAnZpAJwKS2lZ47S1IbLfcvl/BwAPIklPHgCdEMxg 2KqZ8hwSIy5GReJ64Cqqs38= =Bmxx -----END PGP SIGNATURE----- --=-9/wrdcZZIBMeTyGsVElj--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1080050628.777.2.camel>