Date: Sun, 22 Feb 1998 15:03:21 +0100 From: Ollivier Robert <roberto@keltia.freenix.fr> To: current@FreeBSD.ORG Subject: Re: New SoftUpdates test kit Message-ID: <19980222150321.02448@keltia.freenix.fr> In-Reply-To: <34EE3060.4487EB71@whistle.com>; from Julian Elischer on Fri, Feb 20, 1998 at 05:39:45PM -0800 References: <34EE3060.4487EB71@whistle.com>
index | next in thread | previous in thread | raw e-mail
According to Julian Elischer:
> This is quite solid. Enjoy!
I still get the "vm_fault on nofault entry" panic with this code, sorry.
kgdb output follows. Tell me if you want more info on a specific frame or
variable. I always get this when uuxqt is working at unbatching news...
#0 boot (howto=260) at ../../kern/kern_shutdown.c:296
296 dumppcb.pcb_cr3 = rcr3();
(kgdb) where
#0 boot (howto=260) at ../../kern/kern_shutdown.c:296
#1 0xf01135a7 in panic (fmt=0xf01013e8 "from debugger")
at ../../kern/kern_shutdown.c:436
#2 0xf0101405 in db_panic (addr=-266775763, have_addr=0, count=-1,
modif=0xf4ad7a04 "") at ../../ddb/db_command.c:432
#3 0xf01012e5 in db_command (last_cmdp=0xf01c9ad4, cmd_table=0xf01c9934,
aux_cmd_tablep=0xf01d89f8) at ../../ddb/db_command.c:332
#4 0xf0101472 in db_command_loop () at ../../ddb/db_command.c:454
#5 0xf0103b33 in db_trap (type=3, code=0) at ../../ddb/db_trap.c:71
#6 0xf0195101 in kdb_trap (type=3, code=0, regs=0xf4ad7af0)
at ../../i386/i386/db_interface.c:157
#7 0xf019f628 in trap (frame={tf_es = 16, tf_ds = 16, tf_edi = 0,
tf_esi = -266851232, tf_ebp = -189957324, tf_isp = -189957352,
tf_ebx = 256, tf_edx = -266775819, tf_ecx = 0, tf_eax = 18,
tf_trapno = 3, tf_err = 0, tf_eip = -266775763, tf_cs = 8,
tf_eflags = 582, tf_esp = -266775835, tf_ss = -267307716})
at ../../i386/i386/trap.c:474
#8 0xf019532d in Debugger (msg=0xf011353c "panic")
at ../../i386/i386/db_interface.c:316
#9 0xf011359e in panic (
fmt=0xf0182c60 "vm_fault: fault on nofault entry, addr: %lx")
at ../../kern/kern_shutdown.c:434
#10 0xf0182d94 in vm_fault (map=0xf01e3f00, vaddr=4070191104,
fault_type=3 '\003', fault_flags=0) at ../../vm/vm_fault.c:225
#11 0xf019f888 in trap_pfault (frame=0xf4ad7c5c, usermode=0)
at ../../i386/i386/trap.c:724
#12 0xf019f507 in trap (frame={tf_es = 16, tf_ds = 16, tf_edi = -224776192,
tf_esi = -219834368, tf_ebp = -189956920, tf_isp = -189956988,
tf_ebx = -226566988, tf_edx = 4096, tf_ecx = 512, tf_eax = -4941824,
tf_trapno = 12, tf_err = 2, tf_eip = -266739278, tf_cs = 8,
tf_eflags = 66070, tf_esp = -258382464, tf_ss = -258561600})
at ../../i386/i386/trap.c:363
#13 0xf019e1b2 in generic_bcopy ()
#14 0xf017256f in softdep_setup_allocindir_page (ip=0xf0907000, lbn=13,
bp=0xf27edcb4, ptrno=1, newblkno=171112, oldblkno=0, nbp=0xf284a53c)
at ../../ufs/ffs/ffs_softdep.c:1416
#15 0xf016fafd in ffs_balloc (ap=0xf4ad7e58) at ../../ufs/ffs/ffs_balloc.c:302
#16 0xf01790ac in ffs_write (ap=0xf4ad7eac) at vnode_if.h:995
#17 0xf013ac27 in vn_write (fp=0xf0996440, uio=0xf4ad7f30, cred=0xf082f100)
at vnode_if.h:331
#18 0xf011bb9f in writev (p=0xf4ac69c0, uap=0xf4ad7f84)
at ../../kern/sys_generic.c:354
#19 0xf01a00ef in syscall (frame={tf_es = 39, tf_ds = 39, tf_edi = 184,
tf_esi = 4, tf_ebp = -272639252, tf_isp = -189956140,
tf_ebx = -272638608, tf_edx = 26, tf_ecx = 5806, tf_eax = 121,
tf_trapno = 7, tf_err = 7, tf_eip = 537360513, tf_cs = 31,
tf_eflags = 514, tf_esp = -272639280, tf_ss = 39})
at ../../i386/i386/trap.c:994
#20 0x20077881 in ?? ()
#21 0x1869 in ?? ()
#22 0x1b34 in ?? ()
#23 0x1d4f in ?? ()
#24 0x1095 in ?? ()
(kgdb) info registers
eax 0x0 0
ecx 0x0 0
edx 0x0 0
ebx 0x0 0
esp 0xf4ad79a0 0xf4ad79a0
ebp 0xf4ad79b4 0xf4ad79b4
esi 0xf01013e8 -267381784
edi 0x104 260
eip 0xf01132bb 0xf01132bb
eflags 0x0 0
cs 0x0 0
ss 0x0 0
ds 0x0 0
es 0x0 0
fs 0x0 0
gs 0x0 0
(kgdb) up
#14 0xf017256f in softdep_setup_allocindir_page (ip=0xf0907000, lbn=13,
bp=0xf27edcb4, ptrno=1, newblkno=171112, oldblkno=0, nbp=0xf284a53c)
at ../../ufs/ffs/ffs_softdep.c:1416
1416 setup_allocindir_phase2(bp, ip, aip);
(kgdb) list
1411 if ((ip->i_mode & IFMT) == IFDIR &&
1412 pagedep_lookup(ip, lbn, DEPALLOC, &pagedep) == 0)
1413 WORKLIST_INSERT(&nbp->b_dep, &pagedep->pd_list);
1414 WORKLIST_INSERT(&nbp->b_dep, &aip->ai_list);
1415 FREE_LOCK(&lk);
1416 setup_allocindir_phase2(bp, ip, aip);
1417 }
1418
1419 /*
1420 * Called just before setting an indirect block pointer to a
(kgdb) print *bp
$3 = {b_hash = {le_next = 0xf2834cc4, le_prev = 0xf01dfa9c}, b_vnbufs = {
le_next = 0x0, le_prev = 0xf284a544}, b_freelist = {tqe_next = 0xf2825d3c,
tqe_prev = 0xf27ebcd4}, b_act = {tqe_next = 0x0, tqe_prev = 0xf07bad14},
b_proc = 0x0, b_flags = 536870960, b_qindex = 0, b_usecount = 7 '\a',
b_error = 0, b_bufsize = 4096, b_bcount = 4096, b_resid = 0,
b_dev = 4294967295, b_data = 0xf2e59000 "8\234\002",
b_kvabase = 0xf2e59000 "8\234\002", b_kvasize = 4096, b_lblkno = -12,
b_blkno = -12, b_iodone = 0, b_iodone_chain = 0x0, b_vp = 0xf4b5abe0,
b_dirtyoff = 0, b_dirtyend = 0, b_generation = 12, b_rcred = 0x0,
b_wcred = 0x0, b_validoff = 0, b_validend = 0, b_pblkno = 1964649,
b_saveaddr = 0x0, b_savekva = 0x0, b_driver1 = 0x0, b_driver2 = 0x0,
b_spc = 0x0, b_cluster = {cluster_head = {tqh_first = 0x0, tqh_last = 0x0},
cluster_entry = {tqe_next = 0x0, tqe_prev = 0x0}}, b_pages = {0xf04847a8,
0x0 <repeats 31 times>}, b_npages = 1, b_dep = {lh_first = 0x0}}
(kgdb) print ip
$7 = (struct inode *) 0xf27edcb4
(kgdb) print *ip
$4 = {i_lock = {lk_interlock = {lock_data = -226276156},
lk_flags = 4028496540, lk_sharecount = 0, lk_waitcount = -226187964,
lk_exclusivecount = 23868, lk_prio = -3454,
lk_wmesg = 0xf27ebcd4 "<]\202òh\225}ò", lk_timo = 0,
lk_lockholder = -260330220}, i_hash = {le_next = 0x0,
le_prev = 0x20000030}, i_vnode = 0x70000, i_devvp = 0x0, i_flag = 4096,
i_dev = 4096, i_number = 0, i_effnlink = -1, inode_u = {fs = 0xf2e59000,
e2fs = 0xf2e59000}, i_dquot = {0xf2e59000, 0x1000},
i_modrev = 0xfffffff4fffffff4, i_lockf = 0x0, i_count = 0,
i_endoff = -189420576, i_diroff = 0, i_offset = 0, i_ino = 12, i_reclen = 0,
i_spare = {0, 0, 0, 1964649, 0}, i_din = {di_mode = 0, di_nlink = 0, di_u = {
oldids = {0, 0}, inumber = 0}, di_size = 0, di_atime = 0,
di_atimensec = 0, di_mtime = -263698520, di_mtimensec = 0, di_ctime = 0,
di_ctimensec = 0, di_db = {0 <repeats 12 times>}, di_ib = {0, 0, 0},
di_flags = 0, di_blocks = 0, di_gen = 0, di_uid = 0, di_gid = 0,
di_spare = {0, 0}}}
(kgdb) print *aip
$5 = {ai_list = {wk_list = {le_next = 0x0, le_prev = 0x0}, wk_type = 0,
wk_state = 0}, ai_next = {le_next = 0x0, le_prev = 0x0}, ai_offset = 0,
ai_newblkno = 0, ai_oldblkno = 0, ai_freefrag = 0x0, ai_indirdep = 0x0,
ai_deps = {le_next = 0x0, le_prev = 0x0}, ai_buf = 0x0}
(kgdb) print aip
$6 = (struct allocindir *) 0xf2e59800
--
Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto@keltia.freenix.fr
FreeBSD keltia.freenix.fr 3.0-CURRENT #3: Fri Feb 20 22:55:09 CET 1998
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980222150321.02448>
