Date: Sat, 4 Oct 2008 15:22:49 -0700 From: Jos Backus <jos@catnook.com> To: Andrey Chernov <ache@nagual.pp.ru>, freebsd-current@freebsd.org Subject: Re: firefox3-bin crashes near arc4random_buf() Message-ID: <20081004222249.GA48928@lizzy.catnook.local> In-Reply-To: <20081004161024.GA67323@nagual.pp.ru> References: <20081004080511.GA72641@lizzy.catnook.local> <20081004161024.GA67323@nagual.pp.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Oct 04, 2008 at 08:10:24PM +0400, Andrey Chernov wrote:
> On Sat, Oct 04, 2008 at 01:05:11AM -0700, Jos Backus wrote:
> > For a few weeks now firefox3-bin has been crashing semi-regularly for me.
> > Backtrace attached. I selected `Build a debugging image' but the resulting
> > binary is stripped, so no symbols.
> > #3 0x28237381 in XRE_InitEmbedding () from /usr/local/lib/firefox3/libxul.so
> > #4 <signal handler called>
> > #5 0x2a39eb2d in arc4random_buf () from /lib/libc.so.7
> > #6 0x2a39aa7d in dbopen () from /lib/libc.so.7
> > #7 0x2a39973a in __srget () from /lib/libc.so.7
> > #8 0x2a39ab49 in dbopen () from /lib/libc.so.7
> > #9 0x2a39916f in __srget () from /lib/libc.so.7
> > #10 0x2a39c220 in __hash_open () from /lib/libc.so.7
> > #11 0x2aae9b9c in ?? () from /usr/local/lib/firefox3/libnssdbm3.so
>
> It looks like stack damaged at this moment. No libc functions, including
> db* functions calls arc4random_buf().
I was surprised to see that, too. The problem is perfectly repeatable on my
system. I tried building firefox3 using
WITH_DEBUG=true STRIP= make deinstall reinstall clean
but the resulting binary is still stripped:
lizzy:~% file /usr/local/lib/firefox3/firefox-bin
/usr/local/lib/firefox3/firefox-bin: ELF 32-bit LSB executable, Intel 80386,
version 1 (FreeBSD), for FreeBSD 8.0 (800049), dynamically linked (uses shared
libs), FreeBSD-style, stripped
lizzy:~%
A few weeks ago, after these crashes had started happening, I rebuilt most
ports on this machine, hoping it would fix the issue, but it has not.
Any suggestions on how to debug this?
--
Jos Backus
jos at catnook.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081004222249.GA48928>
