From owner-freebsd-gecko@FreeBSD.ORG Thu Sep 1 11:07:02 2011 Return-Path: Delivered-To: gecko@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5DDFD106564A for ; Thu, 1 Sep 2011 11:07:02 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id A799D8FC1B for ; Thu, 1 Sep 2011 11:07:01 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id OAA07626 for ; Thu, 01 Sep 2011 14:07:00 +0300 (EEST) (envelope-from avg@FreeBSD.org) Message-ID: <4E5F6753.3070402@FreeBSD.org> Date: Thu, 01 Sep 2011 14:06:59 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:5.0) Gecko/20110705 Thunderbird/5.0 MIME-Version: 1.0 To: gecko@FreeBSD.org X-Enigmail-Version: 1.2pre Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: Subject: firefox-6.0_1 spinning on a cpu X-BeenThere: freebsd-gecko@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gecko Rendering Engine issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Sep 2011 11:07:02 -0000 I observe the following problem - sometimes a firefox processes starts consuming a lot of CPU for no apparent reason. ktrace shows that it does the following: 9332 179912 firefox-bin 0.000007 CALL poll(0x7fffff5fabc0,0x3,0x3e7fc18) 9332 179912 firefox-bin 0.000008 RET poll 2 9332 179912 firefox-bin 0.000007 CALL gettimeofday(0x7fffff5fadf0,0) 9332 179912 firefox-bin 0.000007 RET gettimeofday 0 9332 179912 firefox-bin 0.000009 CALL gettimeofday(0x7fffff5fadf0,0) 9332 179912 firefox-bin 0.000018 RET gettimeofday 0 9332 179912 firefox-bin 0.000009 CALL getpeername(0x42,0x7fffff5faa90,0x7fffff5faa4c) 9332 179912 firefox-bin 0.000008 RET getpeername -1 errno 57 Socket is not connected 9332 179912 firefox-bin 0.000008 CALL getpeername(0x43,0x7fffff5faa90,0x7fffff5faa4c) 9332 179912 firefox-bin 0.000008 RET getpeername -1 errno 57 Socket is not connected 9332 179912 firefox-bin 0.000007 CALL gettimeofday(0x7fffff5fab60,0) 9332 179912 firefox-bin 0.000008 RET gettimeofday 0 9332 179912 firefox-bin 0.000018 CALL poll(0x7fffff5fabc0,0x3,0x3e7fc18) 9332 179912 firefox-bin 0.000009 RET poll 2 9332 179912 firefox-bin 0.000007 CALL gettimeofday(0x7fffff5fadf0,0) 9332 179912 firefox-bin 0.000008 RET gettimeofday 0 9332 179912 firefox-bin 0.000009 CALL gettimeofday(0x7fffff5fadf0,0) 9332 179912 firefox-bin 0.000007 RET gettimeofday 0 9332 179912 firefox-bin 0.000008 CALL getpeername(0x42,0x7fffff5faa90,0x7fffff5faa4c) 9332 179912 firefox-bin 0.000014 RET getpeername -1 errno 57 Socket is not connected 9332 179912 firefox-bin 0.000008 CALL getpeername(0x43,0x7fffff5faa90,0x7fffff5faa4c) 9332 179912 firefox-bin 0.000007 RET getpeername -1 errno 57 Socket is not connected 9332 179912 firefox-bin 0.000008 CALL gettimeofday(0x7fffff5fab60,0) 9332 179912 firefox-bin 0.000007 RET gettimeofday 0 9332 179912 firefox-bin 0.000007 CALL poll(0x7fffff5fabc0,0x3,0x3e7fc18) and so on. The two sockets in question (66 and 67) appear as follows in sockstat output: avg firefox-bi 9332 66 tcp4 92.249.64.71:44862 63.245.217.114:443 avg firefox-bi 9332 67 tcp4 92.249.64.71:34232 63.245.217.114:443 Where: $ host 63.245.217.114 114.217.245.63.in-addr.arpa domain name pointer addons-versioncheck.zlb.phx.mozilla.net. So apparently this has something to do with automatic version check for addons. I am not sure if this is a general "cross-platform" bug or if it is specific to FreeBSD in some way. E.g. maybe the error code is unexpected or what poll(2) returns is different from e.g. Linux. Maybe this is already fixed in 6.0.1? Anyone gets the same? Anybody has an idea how to fix? Thank you! -- Andriy Gapon