Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Jun 2013 08:55:02 -0700
From:      Jeremy Chadwick <jdc@koitsu.org>
To:        Michiel Boland <boland37@xs4all.nl>
Cc:        Konstantin Belousov <kostikbel@gmail.com>, FreeBSD Stable <freebsd-stable@freebsd.org>
Subject:   Re: system sporadically hangs on shutdown after switching to WITH_NEW_XORG
Message-ID:  <20130616155502.GA26171@icarus.home.lan>
In-Reply-To: <51BDDE64.2040801@xs4all.nl>
References:  <51BDD593.5000102@xs4all.nl> <20130616153710.GT91021@kib.kiev.ua> <51BDDE64.2040801@xs4all.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jun 16, 2013 at 05:48:52PM +0200, Michiel Boland wrote:
> On 06/16/2013 17:37, Konstantin Belousov wrote:
> >On Sun, Jun 16, 2013 at 05:11:15PM +0200, 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.
> >>
> >>I paniced the machine in ddb, so I have a crash dump if someone want to look at
> >>it. The crashinfo is at http://barrytown.boland.org/core.txt (I would have
> >>pasted it here but it is a bit verbose.)
> >>
> >>Machine has an Intel G41 chipset, with a SAMSUNG SSD 830 Series HD, running
> >>9.1-STABLE r251803. Serial console. GENERIC kernel, expect for options DDB and
> >>ALT_BREAK_TO_DEBUGGER.
> >>
> >>Who knows what's going on here?
> >
> >I do not see anything related to i915 in the core.txt you provided.
> >
> >Next time the machine hangs, start with the output of ps command from
> >ddb and 'show allpcpu', together with 'alltrace'.
> >
> 
> Ok.
> 
> I appended 'thread apply all bt' from kgdb to the core.txt, maybe
> there is something interesting in there.
> 
> I did notice the following
> 
> Thread 17 (Thread 100007):
> #0  cpustop_handler () at /usr/src/sys/amd64/amd64/mp_machdep.c:1392
> #1  0xffffffff80cbebbd in ipi_nmi_handler () at
> /usr/src/sys/amd64/amd64/mp_machdep.c:1374
> #2  0xffffffff80ccc159 in trap (frame=0xffffffff81424890) at
> /usr/src/sys/amd64/amd64/trap.c:211
> #3  0xffffffff80cb55af in nmi_calltrap () at
> /usr/src/sys/amd64/amd64/exception.S:501
> #4  0xffffffff80d0c029 in vga_txtmouse (scp=0xfffffe0005586600,
> x=320, y=200, on=<value optimized out>) at cpufunc.h:186
> Previous frame inner to this frame (corrupt stack?)
> 
> Maybe the hang is caused by the removal of the text mouse cursor?
> (Just guessing here.)

vga_txtmouse comes from syscons(4).

Are you making use of vidcontrol(1) in any way to set the system console
(outside of X) to something that uses the VGA framebuffer?  There are
probably some loader.conf or rc.conf variables that control this (I do
not know).

Are you running moused(8)?  Actually, I can see quite clearly that you
are in your core.txt:

Starting ums0 moused.

Try turning that off.  Don't ask me how, because devd(8) / devd.conf(5)
might be involved.

-- 
| Jeremy Chadwick                                   jdc@koitsu.org |
| UNIX Systems Administrator                http://jdc.koitsu.org/ |
| Making life hard for others since 1977.             PGP 4BD6C0CB |




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130616155502.GA26171>