From owner-freebsd-current@freebsd.org Tue Dec 27 09:33:51 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A4C08C92A71; Tue, 27 Dec 2016 09:33:51 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2451A1FC9; Tue, 27 Dec 2016 09:33:50 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id uBR9XdW8086571 (version=TLSv1 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Tue, 27 Dec 2016 11:33:40 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua uBR9XdW8086571 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id uBR9Xd30086570; Tue, 27 Dec 2016 11:33:39 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Tue, 27 Dec 2016 11:33:39 +0200 From: Konstantin Belousov To: Subbsd Cc: freebsd-gecko@freebsd.org, freebsd-current Current Subject: Re: Mozilla firefox freezes/zombie on FreeBSD current Message-ID: <20161227093339.GS94325@kib.kiev.ua> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.7.2 (2016-11-26) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Dec 2016 09:33:51 -0000 On Mon, Dec 26, 2016 at 10:29:33PM +0300, Subbsd wrote: > Hi, > > On recent FreeBSD version (tested on two host: one from > svn://svn.freebsd.org/base/head ( r310507 now) and second from > https://github.com/FreeBSDDesktop/freebsd-base-graphics.git / > drm-next-4.7 ) and latest firefox ( firefox-50.1.0_4,1 ) I often get > into a situation where firefox is hands. Which graphics driver do you use with pristine head ? > > It looks like unresponsive window: https://snag.gy/gKPhnb.jpg > > with follow information from procstat: > > --- > % procstat -t 18827 > PID TID COMM TDNAME CPU PRI STATE WCHAN > 18827 101546 firefox Compositor -1 152 sleep vmpfw > 18827 101546 firefox Compositor mi_switch > sleepq_wait _sleep vm_page_busy_sleep vm_page_sleep_if_busy > vm_fault_hold vm_fault trap_pfault trap calltrap This thread is problematic. It waits for a page ceasing the busy state, in the page fault handler. The question to answer first is, who is the owner of the busy state and why the page is not released. Using the command ps -H -o pid,lwp,mwchan,nwchan find the thread which is hung, and the numerical address of the wait channel where the thread is blocked, from the NWCHAN column of ps output. Start kgdb on the live system as kgdb /kernel.full /dev/mem and do (kgdb) p/x *(struct vm_page *) If the output above shows non-zero object, also please do (kgdb) p/x *(struct vm_object *)