Crash in g_dev_strategy / CURRENT as of yesterday.

Terry Lambert tlambert2 at mindspring.com
Wed Aug 13 00:00:35 PDT 2003


Eivind Olsen wrote:
> (kgdb) fr 12
> #12 0xc030697e in spec_xstrategy (vp=0xc1fa9cc0, bp=0x0) at
> /usr/src/sys/fs/specfs/spec_vnops.c:512
> 512                     DEV_STRATEGY(bp);
> (kgdb) print *bp->b_dev
> There is no member named b_dev.

Uh, bp is 0 (NULL).  Even if there were a member, you're not
going to find out its value, since there isn't one.

A couple of things you might want to try is to chase down the
vnode, instead, e.g.:

print *vp
	(look for v_type)
print *(dn_p)vp->v_data
	(if it's a devfs vnode)
print *((dn_p)vp->v_data)->linklist->name
	(name of the device with the problem, if this is a devfs vp)
etc.

-- Terry


More information about the freebsd-current mailing list