Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 May 2013 20:53:34 -0700
From:      Ted Faber <faber@lunabase.org>
To:        Dimitry Andric <dim@FreeBSD.org>
Cc:        Kostik Belousov <kostikbel@gmail.com>, Ted Faber <faber@lunabase.org>, freebsd-ports@freebsd.org
Subject:   Re: Another Firefox 21.0 crash (new backtrace)
Message-ID:  <20130529035333.GA2340@mail.lunabase.org>
In-Reply-To: <20130528155234.GA17344@mail.lunabase.org>
References:  <20130525230731.GA93415@mail.lunabase.org> <51A49C40.1080209@FreeBSD.org> <20130528155234.GA17344@mail.lunabase.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--QKdGvSO+nmPlgiQ/
Content-Type: multipart/mixed; boundary="7JfCtLOvnd9MIVvH"
Content-Disposition: inline


--7JfCtLOvnd9MIVvH
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, May 28, 2013 at 08:52:35AM -0700, Ted Faber wrote:
> On Tue, May 28, 2013 at 02:00:00PM +0200, Dimitry Andric wrote:
> > On 2013-05-26 01:07, Ted Faber wrote:
> > > I'm seeing a repeatable, consistent segmentation fault before the fir=
st
> > > window appears (though firefox -ProfileManager brings up the
> > > profile manager, but crashes when I try to actually start the browser=
).
>=20
> [ snip]
> >=20
> > Since it seems libthr.so is involved, and a lot of thread signalling is
> > going on, I suspect r251047 may help here.  It fixes a tricky problem
> > with deferred signal delivery, and it looks like this is what you are
> > experiencing here.  Can you please do a backtrace of all threads (e.g.
> > "thread apply all bt") too?
>=20
> Attached.
>=20
> >=20
> > Note that r251047 should apply cleanly to an up-to-date stable/9 tree,
> > but you will have to rebuild and reinstall libc and libthr (or just
> > build and install world).
>=20
> My svn fu is weak.  Any chance you can roll a quick patch for me?  (Or
> better yet, tell me the appropriate hex to start from?)
>=20
> I'm happy to try it out.

OK, I improved my svn fu, pulled the tree, extracted the patch, applied
it, made and installed world.

Now I see different behavior, but no better.  Still gets a SEGV, but a
different trace. (Attached)

Any ideas?
--=20
http://www.lunabase.org/~faber
Unexpected attachment? http://www.lunabase.org/~faber/FAQ.html#SIG

--7JfCtLOvnd9MIVvH
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=file
Content-Transfer-Encoding: quoted-printable

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 2d8c8e00 (LWP 100778/DOM Worker)]
0x282d19d0 in .cerror () from /lib/libc.so.7
(gdb) where
#0  0x282d19d0 in .cerror () from /lib/libc.so.7
#1  0x3612ab00 in ?? ()
#2  0x00000000 in ?? ()
(gdb)=20
thread apply all bt
Thread 19 (Thread 36d0a200 (LWP 100783/StreamTrans #4)):
#0  0x281bc313 in pthread_kill () from /lib/libthr.so.3
#1  0x281bba12 in pthread_kill () from /lib/libthr.so.3
#2  0x281be959 in pthread_cond_signal () from /lib/libthr.so.3
#3  0x2b383475 in PRP_NakedNotify () from /usr/local/lib/libplds4.so.1
#4  0x2b3842fa in PR_WaitCondVar () from /usr/local/lib/libplds4.so.1
#5  0x2b3843e7 in PR_Wait () from /usr/local/lib/libplds4.so.1
#6  0x29e13743 in XRE_AddJarManifestLocation ()
   from /usr/local/lib/firefox/libxul.so
#7  0x29e1388f in XRE_AddJarManifestLocation ()
   from /usr/local/lib/firefox/libxul.so
#8  0x29e118c4 in XRE_AddJarManifestLocation ()
   from /usr/local/lib/firefox/libxul.so
#9  0x29dcbf68 in std::vector<mozilla::plugins::IPCByteRange, std::allocato=
r<mozilla::plugins::IPCByteRange> >::_M_fill_insert ()
   from /usr/local/lib/firefox/libxul.so
#10 0x29e10e30 in XRE_AddJarManifestLocation ()
   from /usr/local/lib/firefox/libxul.so
#11 0x2b38a59a in PR_CreateThread () from /usr/local/lib/libplds4.so.1
#12 0x281b3f4a in pthread_getprio () from /lib/libthr.so.3
#13 0x00000000 in ?? ()

Thread 15 (Thread 362f5600 (LWP 100780/HTML5 Parser)):
#0  0x281bc313 in pthread_kill () from /lib/libthr.so.3
#1  0x281bba12 in pthread_kill () from /lib/libthr.so.3
#2  0x281be959 in pthread_cond_signal () from /lib/libthr.so.3
#3  0x2b384381 in PR_WaitCondVar () from /usr/local/lib/libplds4.so.1
#4  0x2b3843e7 in PR_Wait () from /usr/local/lib/libplds4.so.1
#5  0x29e10022 in XRE_AddJarManifestLocation ()
   from /usr/local/lib/firefox/libxul.so
#6  0x29e11898 in XRE_AddJarManifestLocation ()
   from /usr/local/lib/firefox/libxul.so
#7  0x29dcbf68 in std::vector<mozilla::plugins::IPCByteRange, std::allocato=
r<mozilla::plugins::IPCByteRange> >::_M_fill_insert ()
   from /usr/local/lib/firefox/libxul.so
#8  0x29e10e30 in XRE_AddJarManifestLocation ()
   from /usr/local/lib/firefox/libxul.so
#9  0x2b38a59a in PR_CreateThread () from /usr/local/lib/libplds4.so.1
#10 0x281b3f4a in pthread_getprio () from /lib/libthr.so.3
#11 0x00000000 in ?? ()

Thread 14 (Thread 362bef80 (LWP 100779/Cache I/O)):
#0  0x281bc313 in pthread_kill () from /lib/libthr.so.3
#1  0x281bba12 in pthread_kill () from /lib/libthr.so.3
#2  0x281be959 in pthread_cond_signal () from /lib/libthr.so.3
#3  0x2b384381 in PR_WaitCondVar () from /usr/local/lib/libplds4.so.1
#4  0x2b3843e7 in PR_Wait () from /usr/local/lib/libplds4.so.1
#5  0x29e10022 in XRE_AddJarManifestLocation ()
   from /usr/local/lib/firefox/libxul.so
#6  0x29e11898 in XRE_AddJarManifestLocation ()
   from /usr/local/lib/firefox/libxul.so
#7  0x29dcbf68 in std::vector<mozilla::plugins::IPCByteRange, std::allocato=
r<mozilla::plugins::IPCByteRange> >::_M_fill_insert ()
   from /usr/local/lib/firefox/libxul.so
#8  0x29e10e30 in XRE_AddJarManifestLocation ()
   from /usr/local/lib/firefox/libxul.so
#9  0x2b38a59a in PR_CreateThread () from /usr/local/lib/libplds4.so.1
#10 0x281b3f4a in pthread_getprio () from /lib/libthr.so.3
#11 0x00000000 in ?? ()

Thread 13 (Thread 2d8c8e00 (LWP 100778/DOM Worker)):
#0  0x282d19d0 in .cerror () from /lib/libc.so.7
#1  0x3612ab00 in ?? ()
#2  0x00000000 in ?? ()

Thread 11 (Thread 2d8c5e80 (LWP 100776/Timer)):
#0  0x281bc313 in pthread_kill () from /lib/libthr.so.3
#1  0x281bba12 in pthread_kill () from /lib/libthr.so.3
#2  0x281be959 in pthread_cond_signal () from /lib/libthr.so.3
#3  0x2b383475 in PRP_NakedNotify () from /usr/local/lib/libplds4.so.1
#4  0x2b3842fa in PR_WaitCondVar () from /usr/local/lib/libplds4.so.1
#5  0x29e167e3 in XRE_AddJarManifestLocation ()
   from /usr/local/lib/firefox/libxul.so
#6  0x29e118c4 in XRE_AddJarManifestLocation ()
   from /usr/local/lib/firefox/libxul.so
#7  0x29dcbf68 in std::vector<mozilla::plugins::IPCByteRange, std::allocato=
r<mozilla::plugins::IPCByteRange> >::_M_fill_insert ()
   from /usr/local/lib/firefox/libxul.so
#8  0x29e10e30 in XRE_AddJarManifestLocation ()
   from /usr/local/lib/firefox/libxul.so
#9  0x2b38a59a in PR_CreateThread () from /usr/local/lib/libplds4.so.1
#10 0x281b3f4a in pthread_getprio () from /lib/libthr.so.3
#11 0x00000000 in ?? ()

Thread 10 (Thread 28504c80 (LWP 100775/JS Watchdog)):
#0  0x281bc313 in pthread_kill () from /lib/libthr.so.3
#1  0x281bba12 in pthread_kill () from /lib/libthr.so.3
#2  0x281be959 in pthread_cond_signal () from /lib/libthr.so.3
#3  0x2b383475 in PRP_NakedNotify () from /usr/local/lib/libplds4.so.1
#4  0x2b3842fa in PR_WaitCondVar () from /usr/local/lib/libplds4.so.1
#5  0x29640962 in js::BaseProxyHandler::isOuterWindow ()
   from /usr/local/lib/firefox/libxul.so
#6  0x2eb3ad50 in ?? ()
#7  0x000003e8 in ?? ()
#8  0x2d896550 in ?? ()
#9  0x2b39d988 in ?? () from /usr/local/lib/libplds4.so.1
#10 0xbf2f6fa8 in ?? ()
#11 0x2b38a59a in PR_CreateThread () from /usr/local/lib/libplds4.so.1
Previous frame identical to this frame (corrupt stack?)

Thread 9 (Thread 28504a00 (LWP 100774/firefox)):
#0  0x281bc313 in pthread_kill () from /lib/libthr.so.3
#1  0x281bba12 in pthread_kill () from /lib/libthr.so.3
#2  0x281be959 in pthread_cond_signal () from /lib/libthr.so.3
#3  0x2b384381 in PR_WaitCondVar () from /usr/local/lib/libplds4.so.1
#4  0x2a474533 in JS_InitReflect () from /usr/local/lib/firefox/libxul.so
#5  0x2b38a59a in PR_CreateThread () from /usr/local/lib/libplds4.so.1
#6  0x281b3f4a in pthread_getprio () from /lib/libthr.so.3
#7  0x00000000 in ?? ()

Thread 8 (Thread 28504780 (LWP 100773/JS GC Helper)):
#0  0x281bc313 in pthread_kill () from /lib/libthr.so.3
#1  0x281bba12 in pthread_kill () from /lib/libthr.so.3
#2  0x281be959 in pthread_cond_signal () from /lib/libthr.so.3
#3  0x2b384381 in PR_WaitCondVar () from /usr/local/lib/libplds4.so.1
#4  0x2a3f28b1 in js_RemoveRoot () from /usr/local/lib/firefox/libxul.so
#5  0x2b38a59a in PR_CreateThread () from /usr/local/lib/libplds4.so.1
#6  0x281b3f4a in pthread_getprio () from /lib/libthr.so.3
#7  0x00000000 in ?? ()

Thread 7 (Thread 28503380 (LWP 100772/Hang Monitor)):
#0  0x281bc313 in pthread_kill () from /lib/libthr.so.3
#1  0x281bba12 in pthread_kill () from /lib/libthr.so.3
#2  0x281be959 in pthread_cond_signal () from /lib/libthr.so.3
#3  0x2b384381 in PR_WaitCondVar () from /usr/local/lib/libplds4.so.1
#4  0x29e171a2 in XRE_AddJarManifestLocation ()
   from /usr/local/lib/firefox/libxul.so
#5  0x2b38a59a in PR_CreateThread () from /usr/local/lib/libplds4.so.1
#6  0x281b3f4a in pthread_getprio () from /lib/libthr.so.3
#7  0x00000000 in ?? ()

Thread 6 (Thread 28502e80 (LWP 100771/Socket Thread)):
#0  0x282678cb in poll () from /lib/libc.so.7
#1  0x281b6c32 in poll () from /lib/libthr.so.3
#2  0x2b386021 in PR_Poll () from /usr/local/lib/libplds4.so.1
#3  0x288febc9 in XRE_GetFileFromPath () from /usr/local/lib/firefox/libxul=
=2Eso
#4  0x288ffaa9 in XRE_GetFileFromPath () from /usr/local/lib/firefox/libxul=
=2Eso
#5  0x288ff6e4 in XRE_GetFileFromPath () from /usr/local/lib/firefox/libxul=
=2Eso
#6  0x288ffdaf in XRE_GetFileFromPath () from /usr/local/lib/firefox/libxul=
=2Eso
#7  0x29e118c4 in XRE_AddJarManifestLocation ()
   from /usr/local/lib/firefox/libxul.so
#8  0x29dcbf68 in std::vector<mozilla::plugins::IPCByteRange, std::allocato=
r<mozilla::plugins::IPCByteRange> >::_M_fill_insert ()
   from /usr/local/lib/firefox/libxul.so
#9  0x29e10e30 in XRE_AddJarManifestLocation ()
   from /usr/local/lib/firefox/libxul.so
#10 0x2b38a59a in PR_CreateThread () from /usr/local/lib/libplds4.so.1
#11 0x281b3f4a in pthread_getprio () from /lib/libthr.so.3
#12 0x00000000 in ?? ()

Thread 5 (Thread 2d861f80 (LWP 100770/XPCOM CC)):
#0  0x281bc313 in pthread_kill () from /lib/libthr.so.3
#1  0x281bba12 in pthread_kill () from /lib/libthr.so.3
#2  0x281be959 in pthread_cond_signal () from /lib/libthr.so.3
#3  0x2b384381 in PR_WaitCondVar () from /usr/local/lib/libplds4.so.1
#4  0x29e23b57 in NS_CycleCollectorForget2_P ()
   from /usr/local/lib/firefox/libxul.so
#5  0x29e118c4 in XRE_AddJarManifestLocation ()
   from /usr/local/lib/firefox/libxul.so
#6  0x29dcbf68 in std::vector<mozilla::plugins::IPCByteRange, std::allocato=
r<mozilla::plugins::IPCByteRange> >::_M_fill_insert ()
   from /usr/local/lib/firefox/libxul.so
#7  0x29e10e30 in XRE_AddJarManifestLocation ()
   from /usr/local/lib/firefox/libxul.so
#8  0x2b38a59a in PR_CreateThread () from /usr/local/lib/libplds4.so.1
#9  0x281b3f4a in pthread_getprio () from /lib/libthr.so.3
#10 0x00000000 in ?? ()

Thread 4 (Thread 28501d00 (LWP 100769/Gecko_IOThread)):
#0  0x282b037b in kevent () from /lib/libc.so.7
#1  0x2b191657 in kq_dispatch () from /usr/local/lib/event2/libevent-2.0.so=
=2E6
#2  0x2b17ee5a in event_base_loop ()
   from /usr/local/lib/event2/libevent-2.0.so.6
#3  0x29e6c108 in std::vector<FilePath, std::allocator<FilePath> >::_M_inse=
rt_aux () from /usr/local/lib/firefox/libxul.so
#4  0x29e4569d in std::vector<int, std::allocator<int> >::operator=3D ()
   from /usr/local/lib/firefox/libxul.so
#5  0x29e54a62 in std::vector<base::SystemMonitor::PowerObserver*, std::all=
ocator<base::SystemMonitor::PowerObserver*> >::_M_insert_aux ()
   from /usr/local/lib/firefox/libxul.so
#6  0x29e6c7bc in std::vector<FilePath, std::allocator<FilePath> >::_M_inse=
rt_aux () from /usr/local/lib/firefox/libxul.so
#7  0x281b3f4a in pthread_getprio () from /lib/libthr.so.3
#8  0x00000000 in ?? ()

Thread 3 (Thread 28501f80 (LWP 100768/firefox)):
#0  0x282678cb in poll () from /lib/libc.so.7
#1  0x281b6c32 in poll () from /lib/libthr.so.3
#2  0x2b5067eb in g_poll () from /usr/local/lib/libglib-2.0.so.0
#3  0x2b4f9167 in g_main_context_acquire ()
   from /usr/local/lib/libglib-2.0.so.0
#4  0x2b4fa3cc in g_main_loop_run () from /usr/local/lib/libglib-2.0.so.0
#5  0x2bc2a17c in g_dbus_proxy_get_cached_property_names ()
   from /usr/local/lib/libgio-2.0.so.0
#6  0x2b51cf42 in g_thread_proxy () from /usr/local/lib/libglib-2.0.so.0
#7  0x281b3f4a in pthread_getprio () from /lib/libthr.so.3
#8  0x00000000 in ?? ()

Thread 2 (Thread 28501080 (LWP 100628/firefox)):
#0  0x2a473c06 in JS_InitReflect () from /usr/local/lib/firefox/libxul.so
#1  0x2a475ba2 in JS_InitReflect () from /usr/local/lib/firefox/libxul.so
#2  0x2a4fd117 in js::StackSpace::sizeOf ()
   from /usr/local/lib/firefox/libxul.so
#3  0x2a503851 in js::StackSpace::sizeOf ()
   from /usr/local/lib/firefox/libxul.so
#4  0x2a4fe074 in js::StackSpace::sizeOf ()
   from /usr/local/lib/firefox/libxul.so
#5  0x2a509438 in js::StackSpace::sizeOf ()
   from /usr/local/lib/firefox/libxul.so
#6  0x2a4fdf5c in js::StackSpace::sizeOf ()
   from /usr/local/lib/firefox/libxul.so
#7  0x2a5063f7 in js::StackSpace::sizeOf ()
   from /usr/local/lib/firefox/libxul.so
#8  0x2a4fd9c8 in js::StackSpace::sizeOf ()
   from /usr/local/lib/firefox/libxul.so
#9  0x2a4fb2ba in js::StackSpace::sizeOf ()
   from /usr/local/lib/firefox/libxul.so
#10 0x2a39e88f in JS::Compile () from /usr/local/lib/firefox/libxul.so
#11 0x2918d995 in std::vector<mozilla::gfx::Glyph, std::allocator<mozilla::=
gfx::Glyph> >::_M_insert_aux () from /usr/local/lib/firefox/libxul.so
#12 0x29452e4b in std::_Rb_tree<ogg_packet*, std::pair<ogg_packet* const, l=
ong>, std::_Select1st<std::pair<ogg_packet* const, long> >, std::less<ogg_p=
acket*>, std::allocator<std::pair<ogg_packet* const, long> > >::_M_insert_u=
nique ()
   from /usr/local/lib/firefox/libxul.so
#13 0x2916d78e in std::vector<mozilla::gfx::Glyph, std::allocator<mozilla::=
gfx::Glyph> >::_M_insert_aux () from /usr/local/lib/firefox/libxul.so
#14 0x2916da0f in std::vector<mozilla::gfx::Glyph, std::allocator<mozilla::=
gfx::Glyph> >::_M_insert_aux () from /usr/local/lib/firefox/libxul.so
#15 0x28901dea in XRE_GetFileFromPath () from /usr/local/lib/firefox/libxul=
=2Eso
#16 0x28a8dc81 in std::_Rb_tree<sigslot::_signal_base_interface*, sigslot::=
_signal_base_interface*, std::_Identity<sigslot::_signal_base_interface*>, =
std::less<sigslot::_signal_base_interface*>, std::allocator<sigslot::_signa=
l_base_interface*> >::erase () from /usr/local/lib/firefox/libxul.so
#17 0x28a8dd28 in std::_Rb_tree<sigslot::_signal_base_interface*, sigslot::=
_signal_base_interface*, std::_Identity<sigslot::_signal_base_interface*>, =
std::less<sigslot::_signal_base_interface*>, std::allocator<sigslot::_signa=
l_base_interface*> >::erase () from /usr/local/lib/firefox/libxul.so
#18 0x288dda49 in XRE_GetFileFromPath () from /usr/local/lib/firefox/libxul=
=2Eso
#19 0x288dd668 in XRE_GetFileFromPath () from /usr/local/lib/firefox/libxul=
=2Eso
#20 0x288ddac1 in XRE_GetFileFromPath () from /usr/local/lib/firefox/libxul=
=2Eso
#21 0x29dfa7a4 in mozilla::services::_external_GetHistoryService ()
   from /usr/local/lib/firefox/libxul.so
#22 0x29e118c4 in XRE_AddJarManifestLocation ()
   from /usr/local/lib/firefox/libxul.so
#23 0x29dcbf68 in std::vector<mozilla::plugins::IPCByteRange, std::allocato=
r<mozilla::plugins::IPCByteRange> >::_M_fill_insert ()
   from /usr/local/lib/firefox/libxul.so
#24 0x29a352cb in std::_Rb_tree<std::string, std::pair<std::string const, s=
td::string>, std::_Select1st<std::pair<std::string const, std::string> >, s=
td::less<std::string>, std::allocator<std::pair<std::string const, std::str=
ing> > >::_M_erase () from /usr/local/lib/firefox/libxul.so
#25 0x29e4569d in std::vector<int, std::allocator<int> >::operator=3D ()
   from /usr/local/lib/firefox/libxul.so
#26 0x2994694b in JSD_GetValueForObject ()
   from /usr/local/lib/firefox/libxul.so
#27 0x28589780 in ?? ()
#28 0x00000000 in ?? ()
#0  0x282d19d0 in .cerror () from /lib/libc.so.7

--7JfCtLOvnd9MIVvH--

--QKdGvSO+nmPlgiQ/
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (FreeBSD)

iEYEARECAAYFAlGle70ACgkQaUz3f+Zf+XtwtQCfdWorarqLQ4uu+hOLRgnJ1qDQ
ygQAoJSXzMgHBguWb0WoTqU/F5v3IUY1
=Di3f
-----END PGP SIGNATURE-----

--QKdGvSO+nmPlgiQ/--



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