NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/45369: reproducable crash when running out of disk space
The following reply was made to PR kern/45369; it has been noted by GNATS.
From: Martin Husemann <martin%duskware.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: kern/45369: reproducable crash when running out of disk space
Date: Sat, 17 Sep 2011 10:12:37 +0200
Here is a how to repeat it manually, without qemu. For easy of example
I assume you have run the mentioned anita command already, so all files
are in place (if not: workdir/download contains an amd64/ directory which
then contains the binary and the installation directory ...)
# create an empty test directory
mkdir /tmp/test
# create empty (and too small) disk image file
dd if=/dev/zero bs=1m count=512 of=/tmp/test/wd0.img
# create CD image for install sets
makefs -t cd9660 -o rockridge /tmp/test/inst.iso workdir/download
# invoke qemu with boot floppy
qemu-system-x86_64 -nographic -m 256M -cdrom /tmp/test/inst.iso -drive
file=/tmp/test/wd0.img,if=ide,index=0,media=disk -fda
workdir/download/amd64/installation/floppy/boot-com1.fs
# wait for disk change prompt, then use Ctrl-A c to switch from console to
# monitor and enter:
change floppy0 workdir/download/amd64/installation/floppy/boot2.fs
# verify the result:
info block
# return to console by another Ctrl-A c
# press enter, watch spinning...
# repeat for other floppies
# ...
# now sysinst shows up, ack "English" and "unchanged"
# select "Install"
# select "Yes"
# Hit enter to continue
# Custom installation
# select the following sets:
# kernel (GENERIC), modules, base, system, compiler tools,
# miscellaneous, test programs.
# install sets
# ack geometry
# use entire disk
# install bootcode
# set size of partitions
# accept suggested defaults
# ack partitions
# ack disk name
# select Yes to continue
# use serial port com 0 for bootblocks
# use CDROM
voila: crash happens when disk image fills up. Unfortunately the install
kernel on the boot floppies is stripped:
kernel diagnostic assertion "!pmap_extract(pmap_kernel(), va +
UBC_UMAP_ADDR(umap), NULL)" failed: file
"/home/builds/ab/HEAD/src/sys/uvm/uvm_bio.c", line 800
fatal breakpoint trap in supervisor mode
trap type 1 code 0 rip ffffffff80251e55 cs 8 rflags 246 cr2 ffff800012944000
cpl 0 rsp ffff800013254980
Stopped in pid 3023.1 (tar) at ffffffff80251e55: leave
db{0}> bt
?() at ffffffff80251e55
?() at ffffffff806a1263
?() at ffffffff80803599
?() at ffffffff8076f2ac
?() at ffffffff8077e928
?() at ffffffff8079d273
?() at ffffffff8079e0b6
?() at ffffffff80721526
?() at ffffffff807b0371
?() at ffffffff8079a3af
?() at ffffffff806ba62c
but it should be easy to modify the above procedure by using the bootable CD
image instead, key point only is the too small target disk image.
Martin
Home |
Main Index |
Thread Index |
Old Index