Subject: bin/14348: trifling error of dump command
To: None <gnats-bugs@gnats.netbsd.org>
From: Hideo Saito <saito@densan.co.jp>
List: netbsd-bugs
Date: 10/25/2001 00:00:29
>Number: 14348
>Category: bin
>Synopsis: DUMP: SIGSEGV: ABORTING!
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Oct 25 00:01:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Hideo Saito
>Release: NetBSD 1.5.1
>Organization:
>Environment:
System: NetBSD vw5 1.5.1 NetBSD 1.5.1 (GENERIC) #6: Tue Sep 11 15:17:23 JST 2001 saito@vw4:/user5/NetBSD-1.5.1/usr/src/sys/arch/devosppc/compile/GENERIC devosppc
>Description:
I compiled 1.5.1 and 1.5.2 by gcc-3.0.1.
I could not execute /sbin/dump command.
% /sbin/dump 0f - / > /dev/null
DUMP: Date of this level 0 dump: Thu Oct 25 15:44:17 2001
DUMP: Date of last level 0 dump: the epoch
DUMP: Dumping /dev/rsd0a (/) to standard output
DUMP: Label: none
DUMP: SIGSEGV: ABORTING!
Segmentation fault
>How-To-Repeat:
>Fix:
--- sbin/dump/optr.c.org Wed Oct 18 09:39:44 2000
+++ sbin/dump/optr.c Thu Oct 25 15:35:59 2001
@@ -354,6 +354,11 @@
(void) vfprintf(stderr, fmt, ap);
(void) fflush(stdout);
(void) fflush(stderr);
+#if __STDC__
+ va_start(ap, fmt);
+#else
+ va_start(ap);
+#endif
(void) vsnprintf(lastmsg, sizeof lastmsg, fmt, ap);
va_end(ap);
}
>Release-Note:
>Audit-Trail:
>Unformatted: