Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Oct 2009 15:07:46 GMT
From:      Mikolaj Golub <to.my.trociny@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/139721: New port: sysutils/bsdcrashtar -- archive FreeBSD kernel crash files
Message-ID:  <200910181507.n9IF7kAZ022175@www.freebsd.org>
Resent-Message-ID: <200910181510.n9IFA8KD094962@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         139721
>Category:       ports
>Synopsis:       New port: sysutils/bsdcrashtar -- archive FreeBSD kernel crash files
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Oct 18 15:10:07 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Mikolaj Golub
>Release:        
>Organization:
>Environment:
>Description:
The bsdcrashtar utility creates tar a archive that contains all files needed for debugging FreeBSD kernel crash (vmcore, kernel, loaded modules, sources that appear in backtrace). This is useful 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 archive 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).
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	bsdcrashtar
#	bsdcrashtar/Makefile
#	bsdcrashtar/pkg-descr
#	bsdcrashtar/distinfo
#
echo c - bsdcrashtar
mkdir -p bsdcrashtar > /dev/null 2>&1
echo x - bsdcrashtar/Makefile
sed 's/^X//' >bsdcrashtar/Makefile << '85c45df3364b21babf845254e27943fb'
X# New ports collection makefile for:	bsdcrashtar
X# Date created:				18 October 2009
X# Whom:					Mikolaj Golub <to.my.trociny@gmail.com>
X#
X# $FreeBSD: $
X#
X
XPORTNAME=	bsdcrashtar
XPORTVERSION=	0.1.0
XCATEGORIES=	sysutils
XMASTER_SITES=	GOOGLE_CODE
X
XMAINTAINER=	to.my.trociny@gmail.com
XCOMMENT=	Archive FreeBSD kernel crash files
X
XPLIST_FILES=	sbin/bsdcrashtar
XMAN8=		bsdcrashtar.8
XMANCOMPRESSED=	yes
X
X.include <bsd.port.mk>
85c45df3364b21babf845254e27943fb
echo x - bsdcrashtar/pkg-descr
sed 's/^X//' >bsdcrashtar/pkg-descr << '54eeec97de11c5ddb6a1b8ce73296338'
XThe bsdcrashtar utility creates tar a archive that contains all files needed
Xfor debugging FreeBSD kernel crash (vmcore, kernel, loaded modules, sources
Xthat appear in backtrace). This is useful for debugging a crash on another
Xhost, sending it to developers or if you are going to upgrade the kernel on
Xcrashed host but would like to keep crashdump in case the developers ask you to
Xprovide additional info.
X
XCreated tar archive contains also a script that when being run inside unpacked
Xarchive will give kgdb(1) session with crash core loaded in it. The script
Xshould be run with root privileges because it does chroot(8) before starting
Xkgdb(1).
X
XWWW: http://bsdcrashtar.googlecode.com/
XAuthor: Mikolaj Golub <to.my.trociny@gmail.com>
54eeec97de11c5ddb6a1b8ce73296338
echo x - bsdcrashtar/distinfo
sed 's/^X//' >bsdcrashtar/distinfo << '74ee8da8d184776de5c1a8c11d4f64a1'
XMD5 (bsdcrashtar-0.1.0.tar.gz) = bc6b3f73f1dbb76a0f714612364ceef8
XSHA256 (bsdcrashtar-0.1.0.tar.gz) = ad8edb2bb8db626f841fdde6472ee61a2a6da2f4cd517b6b09be49d625f96fad
XSIZE (bsdcrashtar-0.1.0.tar.gz) = 5238
74ee8da8d184776de5c1a8c11d4f64a1
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200910181507.n9IF7kAZ022175>