From owner-freebsd-arm@freebsd.org Tue Apr 26 20:40:12 2016 Return-Path: Delivered-To: freebsd-arm@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 DAE8DB1DABD for ; Tue, 26 Apr 2016 20:40:12 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [69.239.235.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "www.zefox.org", Issuer "www.zefox.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id A36F419FC for ; Tue, 26 Apr 2016 20:40:12 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (localhost [127.0.0.1]) by www.zefox.net (8.15.2/8.15.2) with ESMTPS id u3QKeHb6063328 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 26 Apr 2016 20:40:18 GMT (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.15.2/8.15.2/Submit) id u3QKeGDq063327; Tue, 26 Apr 2016 13:40:17 -0700 (PDT) (envelope-from fbsd) Date: Tue, 26 Apr 2016 13:40:16 -0700 From: bob prohaska To: Svatopluk Kraus Cc: "freebsd-arm@freebsd.org" Subject: Re: Another reboot hang Message-ID: <20160426204016.GO71221@www.zefox.net> References: <20160426183030.GN71221@www.zefox.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Apr 2016 20:40:13 -0000 On Tue, Apr 26, 2016 at 10:18:24PM +0200, Svatopluk Kraus wrote: > > exception_exit() at exception_exit > > pc = 0xc05687fc lr = 0xc0515a44 (ffs_sync+0x104) > > sp = 0xd75ebb88 fp = 0xd75ebba8 > > r0 = 0x00000004 r1 = 0xc3a5f000 > > r2 = 0xc3fdb2c0 r3 = 0xc3a5f000 > > r4 = 0xc0620546 r5 = 0x00000001 > > r6 = 0xc3fdb2c0 r7 = 0x00000608 > > r8 = 0x00000000 r9 = 0xc3fdb2b0 > > r10 = 0xd75ebbf0 r12 = 0xc061cf05 > > The break to debugger happened here. So system was in > __mtx_lock_flags() called from ffs_sync(). It's impossible to say from > the backtrace if system was stuck or you just break it there. However, > interrupts was working, so system was not dead totally. One method how > to learn more is to break to debugger repeatedly to see if system is > stuck to one place or not. You also can try to type the following > commands in ddb to see if there is any deadlock. > > show all pcpu > show all procs > show all locks > > For the second command, kernel must be built with WITNESS option. > In past occurences I've waited considerably longer than the normal reboot time, so it really did seem stuck. The hangs aren't repeatable, so I'll try the first and third comands at the next opportunity and turn on WITNESS as a last resort; it really slows the machine down. Thanks for your help! bob prohaska