From owner-freebsd-stable@FreeBSD.ORG Mon Jun 17 19:17:13 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id EA1CB4D7 for ; Mon, 17 Jun 2013 19:17:13 +0000 (UTC) (envelope-from boland37@xs4all.nl) Received: from smtp-vbr5.xs4all.nl (smtp-vbr5.xs4all.nl [194.109.24.25]) by mx1.freebsd.org (Postfix) with ESMTP id 8D30D19E8 for ; Mon, 17 Jun 2013 19:17:12 +0000 (UTC) Received: from charlemagne.boland.org (37-251-76-95.FTTH.ispfabriek.nl [37.251.76.95]) (authenticated bits=0) by smtp-vbr5.xs4all.nl (8.13.8/8.13.8) with ESMTP id r5HJGvIr088547 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 17 Jun 2013 21:16:57 +0200 (CEST) (envelope-from boland37@xs4all.nl) Message-ID: <51BF60A8.6000503@xs4all.nl> Date: Mon, 17 Jun 2013 21:16:56 +0200 From: Michiel Boland User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130615 Thunderbird/17.0.6 MIME-Version: 1.0 To: FreeBSD Stable Subject: Re: system sporadically hangs on shutdown after switching to WITH_NEW_XORG References: <51BDD593.5000102@xs4all.nl> In-Reply-To: <51BDD593.5000102@xs4all.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by XS4ALL Virus Scanner X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jun 2013 19:17:14 -0000 On 06/16/2013 17:11, Michiel Boland wrote: > Hi. Recently I switched to WITH_NEW_XORG, primarily because the stock X server > with Intel driver has some issues that make it unusable for me. > > The new X server and Intel driver works extremely well, so kudos to whoever made > this possible. > > Unfortunately, I am now experiencing random hangs on shutdown. On shutdown the > system randomly freezes after > > [...] syslogd: exiting on signal 15 > > I would then expect to see 'Waiting (max 60 seconds) for system process 'XXX' to > stop messages, but these never arrive. So it turns out that init hangs because vga_txtmouse (draw_txtmouse in fact) is hogging the clock swi. The routine is waiting for a vertical retrace which never arrives. (The new intel driver can't return to text console, so the screen just goes blank when X exits.) Some workarounds: - don't run moused (i.e. disable it in rc.conf and devd.conf) instead run the X server in combination with hald - do run moused, but then either - unplug the mouse before shutting down - build a kernel with VGA_NO_FONT_LOADING Of course the long-term fix is to remove the possibly infinite loop in draw_txtmouse. Thanks to Konstantin for his patience in helping me track this down. Cheers Michiel