Re: firefox3-bin crashes near arc4random_buf()

From: Jos Backus <jos_at_catnook.com>
Date: Sat, 4 Oct 2008 15:22:49 -0700
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
Received on Sat Oct 04 2008 - 20:22:28 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:36 UTC