xfs
[Top] [All Lists]

xfsdump: drive_minrmt.c:1862: do_get_write_buf: Assertion `contextp->dc_

To: linux-xfs@xxxxxxxxxxx
Subject: xfsdump: drive_minrmt.c:1862: do_get_write_buf: Assertion `contextp->dc_nextp < contextp->dc_recendp' failed.
From: Bernhard Erdmann <be@xxxxxxxxxxx>
Date: Sun, 08 Dec 2002 13:13:57 +0100
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; IRIX64 IP28; en-US; rv:1.3a) Gecko/20021206
Hi,

xfsdump 2.0.1 of 2.4.18-SGI_XFS_1.1 crashes when using the minimal tape protocol and a blocksize of 512 bytes:

# xfsdump -J -F -b 512 -m -f /dev/st0 /
xfsdump: using minimum scsi tape (drive_minrmt) strategy
xfsdump: version 3.0 - Running single-threaded
xfsdump: WARNING: no session label specified
xfsdump: level 0 dump of apollo.berdmann.de:/
xfsdump: dump date: Sun Dec  8 13:07:17 2002
xfsdump: session id: 8b6fcdc9-f0cf-4367-86f4-7807cab42e09
xfsdump: session label: ""
xfsdump: ino map phase 1: skipping (no subtrees specified)
xfsdump: ino map phase 2: constructing initial dump list
xfsdump: ino map phase 3: skipping (no pruning necessary)
xfsdump: ino map phase 4: skipping (size estimated in phase 2)
xfsdump: ino map phase 5: skipping (only one dump stream)
xfsdump: ino map construction complete
xfsdump: estimated dump size: 142520256 bytes
xfsdump: preparing drive
xfsdump: bad media file header at BOT indicates foreign or corrupted tape
xfsdump: WARNING: media contains non-xfsdump data or a corrupt xfsdump media file header at beginning of media
xfsdump: WARNING: repositioning to overwrite
xfsdump: creating dump session media file 0 (media 0, file 1)
xfsdump: dumping ino map
xfsdump: drive_minrmt.c:1862: do_get_write_buf: Assertion `contextp->dc_nextp < contextp->dc_recendp' failed.
Aborted (core dumped)


It does work well using a blocksize of 32 KB:

# xfsdump -J -F -b 32768 -m -f /dev/st0 /
xfsdump: using minimum scsi tape (drive_minrmt) strategy
xfsdump: version 3.0 - Running single-threaded
xfsdump: WARNING: no session label specified
xfsdump: level 0 dump of apollo.berdmann.de:/
xfsdump: dump date: Sun Dec  8 12:52:31 2002
xfsdump: session id: c94b4dc2-67a9-4837-95ec-c93c5a81bf81
xfsdump: session label: ""
xfsdump: ino map phase 1: skipping (no subtrees specified)
xfsdump: ino map phase 2: constructing initial dump list
xfsdump: ino map phase 3: skipping (no pruning necessary)
xfsdump: ino map phase 4: skipping (size estimated in phase 2)
xfsdump: ino map phase 5: skipping (only one dump stream)
xfsdump: ino map construction complete
xfsdump: estimated dump size: 142106560 bytes
xfsdump: preparing drive
xfsdump: bad media file header at BOT indicates foreign or corrupted tape
xfsdump: WARNING: media contains non-xfsdump data or a corrupt xfsdump media file header at beginning of media
xfsdump: WARNING: repositioning to overwrite
xfsdump: creating dump session media file 0 (media 0, file 1)
xfsdump: dumping ino map
xfsdump: dumping directories
xfsdump: dumping non-directory files
xfsdump: dump size (non-dir files) : 62014080 bytes
xfsdump: NOTE: dump interrupted: 747 seconds elapsed
xfsdump: Dump Status: INTERRUPT


The tape drive is a Tandberg TDC 3820:

# mt status
SCSI 1 tape drive:
File number=0, block number=0.
Tape block size 512 bytes. Density code 0x10 (QIC-150/250 (GCR 10000 bpi)).
Soft error count since last status=0
General status bits on (41010000):
 BOT ONLINE IM_REP_EN


(gdb) bt
#0  0x40061921 in __kill () at __kill:-1
#1  0x4006169d in raise (sig=6) at ../sysdeps/posix/raise.c:27
#2  0x40062d08 in abort () at ../sysdeps/generic/abort.c:88
#3  0x4005ada1 in __assert_fail (
    assertion=0x80784c0 "contextp->dc_nextp < contextp->dc_recendp",
    file=0x807b8ba "drive_minrmt.c", line=1862,
    function=0x8077223 "do_get_write_buf") at assert.c:74
#4  0x08058f25 in strcpy () at ../sysdeps/generic/strcpy.c:31
#5  0x08061b4a in strcpy () at ../sysdeps/generic/strcpy.c:31
#6  0x080722d7 in strcpy () at ../sysdeps/generic/strcpy.c:31
#7  0x0806adef in strcpy () at ../sysdeps/generic/strcpy.c:31
#8  0x0805cf02 in strcpy () at ../sysdeps/generic/strcpy.c:31
#9  0x4004f336 in __libc_start_main (main=0x805c46c <strcpy+74440>, argc=9,
    ubp_av=0xbffffc54, init=0x80499ec <_init>, fini=0x80752d0 <_fini>,
    rtld_fini=0x4000d2fc <_dl_fini>, stack_end=0xbffffc4c)
    at ../sysdeps/generic/libc-start.c:129


<Prev in Thread] Current Thread [Next in Thread>