Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: netbsd-8 crash



On Sat, Aug 04, 2018 at 08:28:32PM +0200, 6bone%6bone.informatik.uni-leipzig.de@localhost wrote:
> #2  0xffffffff80c95445 in kern_assert (fmt=fmt@entry=0xffffffff810dd3b0
> "kernel %sassertion \"%s\" failed: file \"%s\", line %d ")
>     at /usr/src/sys/lib/libkern/kern_assert.c:51
> #3  0xffffffff8052c021 in ciss_cmd (ccb=0xffff8001cbed1400,
> flags=flags@entry=1, wait=<optimized out>) at /usr/src/sys/dev/ic/ciss.c:633
> #4  0xffffffff8052c6bb in ciss_ldid (sc=sc@entry=0xfffffe812c06dc08,
> target=<optimized out>, id=id@entry=0xffff8001d035a000) at
> /usr/src/sys/dev/ic/ciss.c:912
> #5  0xffffffff8052cc15 in ciss_ioctl_vol (sc=0xfffffe812c06dc08,
> bv=bv@entry=0xffff8001daffddc8) at /usr/src/sys/dev/ic/ciss.c:1417
> #6  0xffffffff8052ce33 in ciss_sensor_refresh (sme=<optimized out>,
> edata=0xfffffe812c0cf0d0) at /usr/src/sys/dev/ic/ciss.c:1573
> #7  0xffffffff8066f975 in sysmon_envsys_refresh_sensor
> (sme=sme@entry=0xfffffe812c0cf208, edata=edata@entry=0xfffffe812c0cf0d0)
>     at /usr/src/sys/dev/sysmon/sysmon_envsys.c:2109

Looks like a bug in the ciss driver.

                /* if never got a chance to be done above... */
                if (ccb->ccb_state != CISS_CCB_FREE) {
                        KASSERT(error);
                        ccb->ccb_err.cmd_stat = CISS_ERR_TMO;
                        error = ciss_done(ccb);
                }


Could you try to change that KASSERT(error); into a KASSERTMSG() and
print ccb->ccb_state? When savecore runs, it should log the full panic
message (in case you can not capture it at crash time).

Martin


Home | Main Index | Thread Index | Old Index