From owner-freebsd-hackers@FreeBSD.ORG Sun Oct 4 18:40:40 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F29251065672 for ; Sun, 4 Oct 2009 18:40:40 +0000 (UTC) (envelope-from to.my.trociny@gmail.com) Received: from mail-bw0-f227.google.com (mail-bw0-f227.google.com [209.85.218.227]) by mx1.freebsd.org (Postfix) with ESMTP id 815078FC14 for ; Sun, 4 Oct 2009 18:40:39 +0000 (UTC) Received: by bwz27 with SMTP id 27so1905395bwz.43 for ; Sun, 04 Oct 2009 11:40:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:to:subject:organization:from :date:message-id:user-agent:mime-version:content-type; bh=81IkPzkpLvPfla6mDeSdEp7ZsrHkQAy2SwjMkBI9z1k=; b=kn4SBUNSVJk7z3vJdBD3tbeD5+u5VaIZIFPDLSijjhqwLayodpfoMjq5Naii4zfihB 7SLW4cm5yv5C7aQ7xCxCXKzmU92iyUvyrcetP7vlWYI/2lUaYNHQPmBh4yqsaFQR5HeN kv/6b2y4RKvb6tdFKc19CxwSjkCU/VWFsPDpo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=to:subject:organization:from:date:message-id:user-agent :mime-version:content-type; b=dnmxVIX+FtuC28A4ELtpKBWkw+j7WM+1DO9a9hULuRoTk288eUCcIG0HqVUz7Ie5Q1 tqjYhIEHUj0P9b5FunVzDYpwAGl0ooOdG+B4PAYy3I5nIgnzUiYVJ39AWHvwXRO1abD3 nEJLPoUWRkMBqnOPOGuyuHyIKWZCwHrwuGJHo= Received: by 10.204.3.207 with SMTP id 15mr3283728bko.106.1254681639091; Sun, 04 Oct 2009 11:40:39 -0700 (PDT) Received: from localhost ([95.69.165.162]) by mx.google.com with ESMTPS id 18sm2661763fks.10.2009.10.04.11.40.37 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 04 Oct 2009 11:40:38 -0700 (PDT) To: freebsd-hackers@freebsd.org Organization: TOA Ukraine From: Mikolaj Golub Date: Sun, 04 Oct 2009 21:40:34 +0300 Message-ID: <86pr9380kd.fsf@kopusha.onet> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: crashtar X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Oct 2009 18:40:41 -0000 Hi, http://trociny.googlecode.com/files/crashtar This simple script is useful for me and might be useful for other people too. The script creates tar archive that contains all files needed for debugging FreeBSD kernel crash (vmcore, kernel, loaded modules, sources that appear in backtrace). This is useful e.g. for debugging a crash on another host, sending it to developers or if you are going to upgrade the kernel on crashed host but would like to keep crashdump in case the developers ask you to provide additional info. Created tar contains also a script that when being run inside unpacked archive will give kgdb(1) session with crash core loaded in it. The script should be run with root privileges because it does chroot(8) before starting kgdb(1). I think I don't have to warn here that a crashdump may be sent only to person you trust :-). -- Mikolaj Golub