From owner-freebsd-hackers@freebsd.org Fri Jan 8 20:17:03 2016 Return-Path: Delivered-To: freebsd-hackers@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 60F1EA66F08 for ; Fri, 8 Jan 2016 20:17:03 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::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 41A821DD6; Fri, 8 Jan 2016 20:17:03 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from ralph.baldwin.cx (c-73-231-226-104.hsd1.ca.comcast.net [73.231.226.104]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id B04EEB917; Fri, 8 Jan 2016 15:17:01 -0500 (EST) From: John Baldwin To: Andriy Gapon Cc: Ryan Stone , "freebsd-hackers@freebsd.org" Subject: Re: How to get anything useful out of kgdb? Date: Fri, 08 Jan 2016 12:05:59 -0800 Message-ID: <16207260.7oBjvc4tcM@ralph.baldwin.cx> User-Agent: KMail/4.14.3 (FreeBSD/10.2-STABLE; KDE/4.14.3; amd64; ; ) In-Reply-To: <560EF73A.8050505@FreeBSD.org> References: <554E41EE.2010202@ignoranthack.me> <1595419.L0rkNTMkPe@ralph.baldwin.cx> <560EF73A.8050505@FreeBSD.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Fri, 08 Jan 2016 15:17:01 -0500 (EST) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jan 2016 20:17:03 -0000 On Saturday, October 03, 2015 12:29:30 AM Andriy Gapon wrote: > On 02/10/2015 19:12, John Baldwin wrote: > > On Friday, October 02, 2015 09:26:23 AM Andriy Gapon wrote: > >> On 15/05/2015 20:57, Ryan Stone wrote: > >>> *Sigh*, kgdb isn't unwinding the trap frame properly. You can try this to > >>> figure out where it was running: > >> > >> I wonder, what is a reason for this? > >> Can that be fixed in kgdb itself? > >> It seems that usually kgdb handles trap frames just fine, but not always? > > > > It should be fixable. If this doesn't work under newer kgdb let me know and I'll > > try to fix it. > > Okay, letting you know :-) > The backtraces from the in-tree kgdb and the newer kgdb both abort at the same > frame (output from the newer kgdb is in my message in another kgdb related thread). So I figured out why newer kgdb wasn't unwinding through NULL function pointer traps yesterday. I'm not sure if the fix will help with your case as well, but it might be worth trying. The changes are in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=206044 -- John Baldwin