From owner-freebsd-current@FreeBSD.ORG Sat Oct 4 22:22:28 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CDD56106568F for ; Sat, 4 Oct 2008 22:22:28 +0000 (UTC) (envelope-from jos@catnook.com) Received: from lizzy.dyndns.org (209-204-188-132.dsl.static.sonic.net [209.204.188.132]) by mx1.freebsd.org (Postfix) with SMTP id 6BD5A8FC12 for ; Sat, 4 Oct 2008 22:22:28 +0000 (UTC) (envelope-from jos@catnook.com) Received: (qmail 53142 invoked by uid 1000); 4 Oct 2008 22:22:49 -0000 Date: Sat, 4 Oct 2008 15:22:49 -0700 From: Jos Backus To: Andrey Chernov , freebsd-current@freebsd.org Message-ID: <20081004222249.GA48928@lizzy.catnook.local> References: <20081004080511.GA72641@lizzy.catnook.local> <20081004161024.GA67323@nagual.pp.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081004161024.GA67323@nagual.pp.ru> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: Subject: Re: firefox3-bin crashes near arc4random_buf() X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: jos@catnook.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Oct 2008 22:22:28 -0000 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 > > #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