From owner-freebsd-current@FreeBSD.ORG Fri Sep 11 16:04:12 2009 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4E2DF1065670 for ; Fri, 11 Sep 2009 16:04:12 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from mail-gw0.york.ac.uk (mail-gw0.york.ac.uk [144.32.128.245]) by mx1.freebsd.org (Postfix) with ESMTP id C06668FC08 for ; Fri, 11 Sep 2009 16:04:11 +0000 (UTC) Received: from mail-gw6.york.ac.uk (mail-gw6.york.ac.uk [144.32.129.26]) by mail-gw0.york.ac.uk (8.13.6/8.13.6) with ESMTP id n8BG488o010158; Fri, 11 Sep 2009 17:04:08 +0100 (BST) Received: from buffy-128.york.ac.uk ([144.32.128.160] helo=buffy.york.ac.uk) by mail-gw6.york.ac.uk with esmtps (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1Mm8bY-0002Kw-RB; Fri, 11 Sep 2009 17:04:08 +0100 Received: from buffy.york.ac.uk (localhost [127.0.0.1]) by buffy.york.ac.uk (8.14.3/8.14.3) with ESMTP id n8BG48tB053211; Fri, 11 Sep 2009 17:04:08 +0100 (BST) (envelope-from gavin@FreeBSD.org) Received: (from ga9@localhost) by buffy.york.ac.uk (8.14.3/8.14.3/Submit) id n8BG48Sr053210; Fri, 11 Sep 2009 17:04:08 +0100 (BST) (envelope-from gavin@FreeBSD.org) X-Authentication-Warning: buffy.york.ac.uk: ga9 set sender to gavin@FreeBSD.org using -f From: Gavin Atkinson To: Andriy Gapon In-Reply-To: <4AAA61A0.2040600@icyb.net.ua> References: <4AAA54FF.9080701@icyb.net.ua> <1252679211.31066.43.camel@buffy.york.ac.uk> <4AAA61A0.2040600@icyb.net.ua> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Fri, 11 Sep 2009 17:04:08 +0100 Message-Id: <1252685048.31066.55.camel@buffy.york.ac.uk> Mime-Version: 1.0 X-Mailer: Evolution 2.22.2 FreeBSD GNOME Team Port X-York-MailScanner: Found to be clean X-York-MailScanner-From: gavin@freebsd.org Cc: freebsd-current@FreeBSD.org Subject: Re: crashinfo issue in HEAD X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Sep 2009 16:04:12 -0000 On Fri, 2009-09-11 at 17:41 +0300, Andriy Gapon wrote: > on 11/09/2009 17:26 Gavin Atkinson said the following: > > On Fri, 2009-09-11 at 16:47 +0300, Andriy Gapon wrote: > >> I had a panic (provoked via sw watchdog, nothing exciting) and after reboot I > >> noticed that couple of processes dumped core, apparently while running as part of > >> crashinfo procedure. > >> > >> savecore: reboot after panic: watchdog timeout > >> savecore: writing core to vmcore.0 > >> kernel: pid 725 (ps), uid 0: exited on signal 11 (core dumped) > >> kernel: pid 742 (fstat), uid 0: exited on signal 11 > >> > >> core.0.txt accordingly has: > >> ------------------------------------------------------------------------ > >> ps -axl > >> Segmentation fault (core dumped) > > > > You need at least r196990 (which has not yet been MFC'd) and > > http://people.freebsd.org/~gavin/PRs/137890.2.diff . Hopefully both of > > these will appear in 8.x. > > I mentioned HEAD in the subject, but didn't say specifically that this is very > recent HEAD - r197046. And amd64. Sorry for withholding such important details. > So that patch is not in HEAD yet? I will try it then, thanks! Hmm, in that case this is probably a different bug to the ones already found, and that patch won't help. Can you recompile ps and libkvm with debugging symbols, run it under gdb and get a backtrace? Your original stack trace shows kvm_getprocs() calling _kvm_freeprocs(), however the code doesn't appear to ever do this: indeed, nothing in libkvm calls _kvm_freeprocs() directly. Gavin