bin/51655: savecore needs ${dumpdev} as an argument when it is set

NAKAJI Hiroyuki nakaji at
Thu May 1 05:00:31 PDT 2003

>Number:         51655
>Category:       bin
>Synopsis:       savecore needs ${dumpdev} as an argument when it is set
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 01 05:00:28 PDT 2003
>Originator:     NAKAJI Hiroyuki
>Release:        FreeBSD 5.0-CURRENT i386
System: FreeBSD 5.0-CURRENT FreeBSD 5.0-CURRENT #19: Thu May 1 10:50:26 JST 2003 root at i386

	/etc/rc.d/savecore is executed when ${dumpdev} is set in
/etc/rc.conf. And savecore is invoked from /etc/rc.d/savecore without
${dumpdev}. But no vmcore.0 is available after panic if ${dumpdev} is
not same as the first swap partition.


In /etc/rc.conf two parameters are set:
dumpdir="/home/crash" # my /var is short

$ sudo savecore /home/crash 
checking for kernel dump on device /dev/da2s1b
mediasize = 209715200
sectorsize = 512
magic mismatch on last dump header on /dev/da2s1b
savecore: no dumps found

where /dev/da2s1b is the first swap partition set in /etc/fstab.


Index: savecore
RCS file: /net/pcat/home/ncvs/src/etc/rc.d/savecore,v
retrieving revision 1.3
diff -u -u -r1.3 savecore
--- savecore	6 Sep 2002 16:18:05 -0000	1.3
+++ savecore	1 May 2003 11:43:23 -0000
@@ -67,7 +67,7 @@
 		echo "Checking for core dump..."
-		savecore ${savecore_flags} ${DUMPDIR}
+		savecore ${savecore_flags} ${DUMPDIR} ${dumpdev}
 load_rc_config $name

More information about the freebsd-bugs mailing list