Re: Crash in g_dev_strategy / CURRENT as of yesterday.

From: Terry Lambert <tlambert2_at_mindspring.com>
Date: Tue, 12 Aug 2003 23:59:24 -0700
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
Received on Tue Aug 12 2003 - 22:00:34 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:18 UTC