Subject: bin/21020: /sbin/dump fails in traverse.c:mapdirs()
To: None <gnats-bugs@gnats.netbsd.org>
From: None <gcw@pobox.com>
List: netbsd-bugs
Date: 04/05/2003 17:58:16
>Number:         21020
>Category:       bin
>Synopsis:       /sbin/dump fails in traverse.c:mapdirs()
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 05 00:29:02 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Geoff C. Wing
>Release:        NetBSD 1.6Q (2003/04/05)
>Organization:
Geoff Wing : <gcw@pobox.com>
Rxvt Stuff : <gcw@rxvt.org>
Zsh Stuff  : <gcw@zsh.org>
>Environment:
System: NetBSD sparkles.primenet.com.au 1.6Q NetBSD 1.6Q (SPARKLES) #0: Sat Apr 5 17:25:19 EST 2003 gcw@sparkles.primenet.com.au:/usr/netbsd/src/sys/arch/i386/compile/SPARKLES i386
Architecture: i386
Machine: i386
>Description:
	dump is segfaulting always for me after UFS2 update.
	segfault occurs on return from mapdirs() and the stack is trashed.

	e.g.
	% /sbin/dump -4u -f /tmp/foo /var
	DUMP: Found /dev/rwd0f on /var in /etc/fstab
	DUMP: Date of this level 4 dump: Sat Apr  5 17:55:38 2003
	DUMP: Date of last level 2 dump: Thu Apr  3 03:00:03 2003
	DUMP: Dumping /dev/rwd0f (/var) to /tmp/foo
	DUMP: Label: none
	DUMP: mapping (Pass I) [regular files]
	DUMP: mapping (Pass II) [directories]
	[1]   Segmentation fault      /sbin/dump -4u -f /tmp/foo /var

	Note, it won't fail if it compares with the epoch.
>How-To-Repeat:
	See above
>Fix:
	? still looking
>Release-Note:
>Audit-Trail:
>Unformatted: