Date: Wed, 17 Mar 1999 14:21:07 +0200 From: Vallo Kallaste <vallo@matti.ee> To: Greg Lehey <grog@lemis.com> Cc: freebsd-current@freebsd.org Subject: Crash while newfs'ing innocent vinum volume on fresh system. Message-ID: <19990317142107.A78437@matti.ee>
next in thread | raw e-mail | index | archive | help
Hello !
Before of all I want to make sure that you understand the conditions
here:
I have reinstalled fresh 3.1-RELEASE to the machine in question,
before swapped out two memory DIMM's to the single new 32MB one, just
to be sure it's not some kind of memory error. Installation went
fine, the developer type of installation with full sources but no
games, heh.
Then I downloaded your newest archive for vinum installation:
vinum-4.0-CURRENT.tar.gz from ftp.nanyang-computer.com/pub/vinum/.
It's marked as March 14. Packed it off over the /usr/src and done
compilations in module section and control program section. I also
done make cleandir; make clean in the appropriate directories
several times just to be sure. Compilations went fine and the module
and control program are in the right places with right dates showing
these are newer ones.
Copied the same kernel configuration file as usual to the right place
from backup. Made some minor changes to kernel configuration, removed
DMA support for ata disks, I don't trust the support very much yet.
Made new debug kernel, copied to /var/crash, stripped the original
with -g and installed. Reboot.
Machine goes up, multiuser mode. Right after reboot there are no
modules in loaded. Executed "vinum create stripe.conf", ok. Executed
vinum init, vinum debug 96, vinum saveconfig, vinum printconfig
blabla. All is ok yet.
Newfs -n1 -d0 -v /dev/vinum/rsvol .... two lines newfs output and
crash:
Script started on Wed Mar 17 13:24:45 1999
sh-2.02# gdb -k kernel.gdb vmcore.0
GDB is free software and you are welcome to distribute copies of it
under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.16 (i386-unknown-freebsd),
Copyright 1996 Free Software Foundation, Inc...
IdlePTD 2760704
initial pcb at 23af94
panicstr: from debugger
panic messages:
---
Fatal trap 12: page fault while in kernel mode
fault virtual address = 0xdeadc0e6
fault code = supervisor read, page not present
instruction pointer = 0x8:0xf0a4bc34
stack pointer = 0x10:0xf3db8da8
frame pointer = 0x10:0xf3db8db8
code segment = base 0x0, limit 0xfffff, type 0x1b
= DPL 0, pres 1, def32 1, gran 1
processor eflags = interrupt enabled, resume, IOPL = 0
current process = 259 (newfs)
interrupt mask =
panic: from debugger
panic: from debugger
dumping to dev 20001, offset 65536
dump 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
---
#0 boot (howto=260) at ../../kern/kern_shutdown.c:285
285 dumppcb.pcb_cr3 = rcr3();
(kgdb) add-symbol-file /modules/vinum.ko 0x00005ba8+
A syntax error in expression, near `'.
(kgdb) add-symbol-file /modules/vinum.ko 0x00005ba8
add symbol table from file "/modules/vinum.ko" at text_addr = 0x5ba8?
(y or n) y
(kgdb) bt
#0 boot (howto=260) at ../../kern/kern_shutdown.c:285
#1 0xf01324b5 in panic (fmt=0xf020e0cc "from debugger")
at ../../kern/kern_shutdown.c:446
#2 0xf01188fd in db_panic (addr=-257639372, have_addr=0, count=-1,
modif=0xf3db8c2c "") at ../../ddb/db_command.c:432
#3 0xf011889d in db_command (last_cmdp=0xf0227e7c, cmd_table=0xf0227cdc,
aux_cmd_tablep=0xf0238c80) at ../../ddb/db_command.c:332
#4 0xf0118962 in db_command_loop () at ../../ddb/db_command.c:454
#5 0xf011acb3 in db_trap (type=12, code=0) at ../../ddb/db_trap.c:71
#6 0xf01e1056 in kdb_trap (type=12, code=0, regs=0xf3db8d6c)
at ../../i386/i386/db_interface.c:157
#7 0xf01eb47c in trap_fatal (frame=0xf3db8d6c, eva=3735929062)
at ../../i386/i386/trap.c:937
#8 0xf01eb15b in trap_pfault (frame=0xf3db8d6c, usermode=0, eva=3735929062)
at ../../i386/i386/trap.c:835
#9 0xf01eadba in trap (frame={tf_es = -203751408, tf_ds = -203751408,
tf_edi = -559038242, tf_esi = -2147483648, tf_ebp = -203715144,
tf_isp = -203715180, tf_ebx = -258066920, tf_edx = 16384, tf_ecx = 14,
tf_eax = -16162, tf_trapno = 12, tf_err = 0, tf_eip = -257639372,
tf_cs = 8, tf_eflags = 66182, tf_esp = -257699840, tf_ss = -245981592})
at ../../i386/i386/trap.c:437
#10 0xf0a4bc34 in ?? ()
#11 0xf0a4bae1 in ?? ()
#12 0xf0a4b8b6 in ?? ()
---Type <return> to continue, or q <return> to quit---
#13 0xf012ffec in physio (strategy=0xf0a4b808 <swbuf+8322816>, bp=0x0,
dev=23296, rw=0, minp=0xf01300dc <minphys>, uio=0xf3db8f34)
at ../../kern/kern_physio.c:113
#14 0xf0a4c97c in ?? ()
#15 0xf0162f2f in spec_write (ap=0xf3db8ef8)
at ../../miscfs/specfs/spec_vnops.c:355
#16 0xf01c3b18 in ufsspec_write (ap=0xf3db8ef8)
at ../../ufs/ufs/ufs_vnops.c:1840
#17 0xf01c408d in ufs_vnoperatespec (ap=0xf3db8ef8)
at ../../ufs/ufs/ufs_vnops.c:2312
#18 0xf015d3b7 in vn_write (fp=0xf0a3ca80, uio=0xf3db8f34, cred=0xf0a39f80)
at vnode_if.h:331
#19 0xf013cf46 in write (p=0xf3d71b20, uap=0xf3db8f84)
at ../../kern/sys_generic.c:270
#20 0xf01eb68b in syscall (frame={tf_es = 39, tf_ds = 39, tf_edi = 134669408,
tf_esi = 8192, tf_ebp = -272641880, tf_isp = -203714604, tf_ebx = 64,
tf_edx = 0, tf_ecx = 32768, tf_eax = 4, tf_trapno = 12, tf_err = 2,
tf_eip = 134539244, tf_cs = 31, tf_eflags = 582, tf_esp = -272641916,
tf_ss = 39}) at ../../i386/i386/trap.c:1100
#21 0xf01e19ac in Xint0x80_syscall ()
#22 0x804b80d in ?? ()
#23 0x804b245 in ?? ()
#24 0x80490bc in ?? ()
#25 0x80480e9 in ?? ()
(kgdb) f 1
#1 0xf01324b5 in panic (fmt=0xf020e0cc "from debugger")
at ../../kern/kern_shutdown.c:446
446 boot(bootopt);
(kgdb) quit
sh-2.02# exit
Script done on Wed Mar 17 13:25:52 1999
kernel configuration:
# Vokk
machine "i386"
ident Vokk
maxusers 80
options PQ_NOOPT # color for 512k/16k cache
config kernel root on wd0
cpu "I686_CPU" # aka Pentium Pro(tm)
options "NO_F00F_HACK"
options "COMPAT_43"
options SYSVSHM
options SYSVSEM
options SYSVMSG
options "MD5"
options "VM86"
options DDB
options INVARIANTS
options INVARIANT_SUPPORT
options UCONSOLE
options INET #Internet communications protocols
pseudo-device ether #Generic Ethernet
pseudo-device loop #Network loopback device
pseudo-device bpfilter 4 #Berkeley packet filter
options "ICMP_BANDLIM"
options FFS #Fast filesystem
options NFS #Network File System
options "CD9660" #ISO 9660 filesystem
options MSDOSFS #MS DOS File System
options PROCFS #Process filesystem
options FFS_ROOT #FFS usable as root device
#options SOFTUPDATES
options "P1003_1B"
options "_KPOSIX_PRIORITY_SCHEDULING"
options "_KPOSIX_VERSION=199309L"
pseudo-device pty 32 #Pseudo ttys - can go as high as 256
pseudo-device vn 2 #Vnode driver (turns a file into a device)
pseudo-device snp 3 #Snoop device - to look at pty/vty/etc..
options "MSGBUF_SIZE=40960"
controller isa0
controller pnp0
device atkbdc0 at isa? port IO_KBD tty
device atkbd0 at isa? tty irq 1
device psm0 at isa? tty irq 12
device vga0 at isa? port ? conflicts
pseudo-device splash
device sc0 at isa? tty
options MAXCONS=8 # number of virtual consoles
options SC_HISTORY_SIZE=600 # number of history buffer lines
options VESA # needs VM86 defined too!!
device npx0 at isa? port IO_NPX iosiz 0x0 flags 0x0 irq 13
controller wdc0 at isa? port "IO_WD1" bio irq 14 flags 0x80ff80ff
disk wd0 at wdc0 drive 0
disk wd1 at wdc0 drive 1
controller wdc1 at isa? port "IO_WD2" bio irq 15 flags 0x80ff80ff
disk wd2 at wdc1 drive 0
disk wd3 at wdc1 drive 1
options ATAPI #Enable ATAPI support for IDE bus
options ATAPI_STATIC #Don't do it as an LKM
options IDE_DELAY=2000 # Be optimistic about Joe IDE device
device acd0
controller fdc0 at isa? port "IO_FD1" bio irq 6 drq 2
disk fd0 at fdc0 drive 0
device sio0 at isa? port "IO_COM1" tty flags 0x10 irq 4
device sio1 at isa? port "IO_COM2" tty irq 3
device pcm0 at isa? port ? tty irq ? drq ?
controller pci0
device fxp0
controller ppbus0
device nlpt0 at ppbus?
device plip0 at ppbus?
device ppi0 at ppbus?
controller ppc0 at isa? port ? tty irq 7
options CLK_CALIBRATION_LOOP
options "CLK_USE_I8254_CALIBRATION"
options CLK_USE_TSC_CALIBRATION
#options COMPAT_LINUX
options PANIC_REBOOT_WAIT_TIME=30
Stripe configuration:
# mingi konf vinumile
# Kettad
drive drive1 device /dev/wd1s1e
drive drive2 device /dev/wd2s1e
# Volume u"he stripitud plexiga
volume svol
plex org striped 256b
sd length 2380m drive drive1
sd length 2380m drive drive2
mount information:
/dev/wd0s1a on / (local, writes: sync 14 async 82)
/dev/wd0s1f on /usr (local, writes: sync 2 async 63)
/dev/wd0s1e on /var (local, writes: sync 93 async 215)
procfs on /proc (local)
swap information:
Device 1K-blocks Used Avail Capacity Type
/dev/wd0s1b 65536 0 65408 0% Interleaved
/dev/wd1s1b 65536 0 65408 0% Interleaved
/dev/wd2s1b 65536 0 65408 0% Interleaved
Total 196224 0 196224 0%
disklabels:
# /dev/rwd0c:
type: ESDI
disk: wd0s1
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 6255
sectors/unit: 6305985
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # milliseconds
track-to-track seek: 0 # milliseconds
drivedata: 0
8 partitions:
# size offset fstype [fsize bsize bps/cpg]
a: 262144 0 4.2BSD 1024 8192 16 # (Cyl. 0 - 260*)
b: 131072 262144 swap # (Cyl. 260*- 390*)
c: 6305985 0 unused 0 0 # (Cyl. 0 - 6255*)
e: 262144 393216 4.2BSD 1024 8192 16 # (Cyl. 390*- 650*)
f: 5650625 655360 4.2BSD 1024 8192 16 # (Cyl. 650*- 6255*)
# /dev/rwd1c:
type: ESDI
disk: wd1s1
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 15
sectors/cylinder: 945
cylinders: 5299
sectors/unit: 5008437
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # milliseconds
track-to-track seek: 0 # milliseconds
drivedata: 0
8 partitions:
# size offset fstype [fsize bsize bps/cpg]
b: 131072 0 swap # (Cyl. 0 - 138*)
c: 5008437 0 unused 0 0 # (Cyl. 0 - 5299*)
e: 4877365 131072 unused 0 0 # (Cyl. 138*- 5299*)
# /dev/rwd2c:
type: ESDI
disk: wd2s1
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 15
sectors/cylinder: 945
cylinders: 5299
sectors/unit: 5008437
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # milliseconds
track-to-track seek: 0 # milliseconds
drivedata: 0
8 partitions:
# size offset fstype [fsize bsize bps/cpg]
b: 131072 0 swap # (Cyl. 0 - 138*)
c: 5008437 0 unused 0 0 # (Cyl. 0 - 5299*)
e: 4877365 131072 unused 0 0 # (Cyl. 138*- 5299*)
Your access to the machine in question is alive when you need it. I
don't have any clue what's going on, the machine crashes left and
right with vinum under quite light load. Without it I'm able to do
buildworld -j8 without any trouble.
Thanks for your ongoing work
--
Vallo Kallaste
vallo@matti.ee
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990317142107.A78437>
