Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Sep 1999 17:30:31 +0200 (CEST)
From:      Nick Hibma <hibma@skylink.it>
To:        justin@freebsd.org, FreeBSD CURRENT Mailing list <current@freebsd.org>
Subject:   detach of CAM bus
Message-ID:  <Pine.BSF.4.10.9909051506090.889-100000@heidi.plazza.it>

next in thread | raw e-mail | index | archive | help

After detaching the USB Iomega Zip drive and doing a camcontrol devlist
the kernel panics with the following backtrace.

This is caused, I presume, by unfinished support for removing an xpt.

int32_t
xpt_bus_deregister(path_id)
        u_int8_t path_id;
{
        /* XXX */
        return (CAM_SUCCESS);
}


Are there any plans to make this work in the near future? Would it
otherwise be wise to make xpt_bus_deregister fail, i.e. return
CAM_FAILURE?

Nick


#0  strncpy (dst=0xc35200b0 "", src=0x0, n=16) at
../../libkern/strncpy.c:56
#1  0xc011edd1 in xptedtbusfunc (bus=0xc0872680, arg=0xc0838000) at
../../cam/cam_xpt.c:1913
#2  0xc011f633 in xptbustraverse (start_bus=0x0, tr_func=0xc011ecb4
<xptedtbusfunc>, arg=0xc0838000) at ../../cam/cam_xpt.c:2395
#3  0xc011f379 in xptedtmatch (cdm=0xc0838000) at
../../cam/cam_xpt.c:2199
#4  0xc012004e in xpt_action (start_ccb=0xc0838000) at
../../cam/cam_xpt.c:3097
#5  0xc011e1aa in xptioctl (dev=0xc0814e00, cmd=3248493058,
addr=0xc0838000 "", flag=3, p=0xc4c028c0) at ../../cam/cam_xpt.c:1051
#6  0xc017a2bf in spec_ioctl (ap=0xc4ef2e08) at
../../miscfs/specfs/spec_vnops.c:434
#7  0xc0179f65 in spec_vnoperate (ap=0xc4ef2e08) at
../../miscfs/specfs/spec_vnops.c:125
#8  0xc01e5809 in ufs_vnoperatespec (ap=0xc4ef2e08) at
../../ufs/ufs/ufs_vnops.c:2313
#9  0xc01747c0 in vn_ioctl (fp=0xc0872280, com=3248493058,
data=0xc0838000 "", p=0xc4c028c0) at vnode_if.h:395
#10 0xc0153947 in ioctl (p=0xc4c028c0, uap=0xc4ef2f80) at
../../kern/sys_generic.c:564
#11 0xc02240b2 in syscall (frame={tf_fs = 47, tf_es = 47, tf_ds = 47,
tf_edi = 1, tf_esi = 0, tf_ebp = -1077945864, tf_isp = -990957612,
tf_ebx = 134664240, tf_edx = 15, tf_ecx = 3, tf_eax = 54, tf_trapno =
12, tf_err = 2, tf_eip = 134546360, tf_cs = 31, tf_eflags = 662, tf_esp
= -1077946668, tf_ss = 47}) at ../../i386/i386/trap.c:1056
#12 0xc02187e6 in Xint0x80_syscall ()
#13 0x804bb21 in ?? ()
#14 0x80480e9 in ?? ()
(xxgdb) 

-- 
e-Mail: hibma@skylink.it




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?Pine.BSF.4.10.9909051506090.889-100000>