Index: sys/kern/imgact_elf.c =================================================================== RCS file: /home/dcvs/src/sys/kern/imgact_elf.c,v retrieving revision 1.12 diff -u -b -B -r1.12 imgact_elf.c --- sys/kern/imgact_elf.c 20 Oct 2003 06:50:51 -0000 1.12 +++ sys/kern/imgact_elf.c 9 Nov 2003 19:32:57 -0000 @@ -1247,12 +1247,19 @@ if (fp->f_type != DTYPE_VNODE) continue; if (dst) { + vp = (struct vnode *)fp->f_data; + /* it looks like a bug in ptrace is marking + * a non-vnode as a vnode - until we find the + * root cause this will at least prevent + * further panics from truss + */ + if (vp == NULL || vp->v_mount == NULL) + continue; cfh->cfh_nfiles++; cfi = (struct ckpt_fileinfo *)((char *)dst + *off); cfi->cfi_index = i; cfi->cfi_flags = fp->f_flag; cfi->cfi_offset = fp->f_offset; - vp = (struct vnode *)fp->f_data; cfi->cfi_fh.fh_fsid = vp->v_mount->mnt_stat.f_fsid; error = VFS_VPTOFH(vp, &cfi->cfi_fh.fh_fid); }