From owner-freebsd-stable@freebsd.org Mon Apr 2 13:44:39 2018 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D6BB0F63B4E for ; Mon, 2 Apr 2018 13:44:38 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [78.47.246.247]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 6C70A7F4CC for ; Mon, 2 Apr 2018 13:44:38 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221] (may be forged)) by hz.grosbein.net (8.15.2/8.15.2) with ESMTPS id w32DiTx2007648 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 2 Apr 2018 15:44:29 +0200 (CEST) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: markk@knigma.org Received: from eg.sd.rdtc.ru (eugen@localhost [127.0.0.1]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTP id w32DiIEb079596; Mon, 2 Apr 2018 20:44:18 +0700 (+07) (envelope-from eugen@grosbein.net) Subject: Re: FreeBSD 10.4 kernel breaks on i7-7700 / PRIME H270M-PLUS To: markk@knigma.org, freebsd-stable@freebsd.org References: <5AC1C628.6030309@grosbein.net> <3c184bf8-8651-22a7-a040-8260b44647da@knigma.org> From: Eugene Grosbein X-Enigmail-Draft-Status: N1110 Message-ID: <5AC233B2.2050805@grosbein.net> Date: Mon, 2 Apr 2018 20:44:18 +0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <3c184bf8-8651-22a7-a040-8260b44647da@knigma.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=4.8 required=5.0 tests=BAYES_00, DATE_IN_FUTURE_96_Q, LOCAL_FROM, RDNS_NONE autolearn=no autolearn_force=no version=3.4.1 X-Spam-Report: * 2.6 DATE_IN_FUTURE_96_Q Date: is 4 days to 4 months after Received: date * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 1.9 RDNS_NONE Delivered to internal network by a host with no rDNS * 2.6 LOCAL_FROM From my domains X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on hz.grosbein.net X-Spam-Level: **** X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.25 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, 02 Apr 2018 13:44:39 -0000 On 02.04.2018 19:27, Mark Knight wrote: >> What does it show if you press "CTRL-T" to see a status of "hung" process? > > Typically CTRL-T shows [sysctl mem]. In some circumstances I can CTRL-C > (e.g. if su hangs), in others I cannot (e.g. with sudo). > >> Does it help if you comment out the line mentioning /dev/console in the /etc/syslog.conf >> and apply the change with killall -1 syslogd ? > > Doing that "killall -HUP syslogd" hangs with (sysctl mem) - as does > "service syslogd restart" but after a fresh reboot, no - removing that > line didn't help at all. Thanks for getting my hopes up :) > > Moving ~/myuser/.bashrc out of the way (it really doesn't contain much > apart from setting a bunch of aliases), allows me to login as myself, > but "sudo -u myuser -s" still hangs. > > I just got a truss output of "sudo -u myuser -s" per the file below, > perhaps that contains a clue? > > # sudo -u myuser -s >& sudo.truss.log > > http://www.knigma.org/scratch/sudo.truss.log > > Flipping back to a 10.3 kernel makes everything happy (just as well, as > the machine in question is my main router/firewall, so it's a right pain > when it's not working). > > Thanks in advance for any fresh ideas; I'm really not sure where to go > with this! 1. Make sure you have kernel dumps enabled. Verify that dump can be properly generated and saved after reboot using "sysctl debug.kdb.panic=1" (this produced a panic). You should have crashdump in /var/crash after reboot. 2. Rebuild kernel using new updated sources but this time add to its config file: options KDB # Enable kernel debugger support. options KDB_UNATTENDED options KDB_TRACE options DDB # Support DDB. options GDB # Support remote GDB. options INVARIANTS # Enable calls of extra sanity checking options INVARIANT_SUPPORT # Extra sanity checks of internal structures, required by INVARIANTS options WITNESS # Enable checks to detect deadlocks and cycles options WITNESS_SKIPSPIN # Don't run witness on spinlocks for speed 3. Boot new kernel using nextboot(8) and see if it will crash instead of deadlock and if so, fill the PR to Bugzilla.