panic: mutex Giant not owned at sys/kern/kern_exit.c:122

From: Simon L. Nielsen <simon_at_nitro.dk>
Date: Sun, 6 Apr 2003 15:30:09 +0200
Hello

When i try to create an RAID array with atacontol I get the following
panic when the rebuild is complete.

The problem seems to be that exit1 requires that giant is held but it
isn't. I have no idea where it should be aquired so it will be released
again.

#0  doadump () at /data/FreeBSD/CURRENT/sys/kern/kern_shutdown.c:239
#1  0xc0300403 in boot (howto=256)
    at /data/FreeBSD/CURRENT/sys/kern/kern_shutdown.c:371
#2  0xc0300703 in panic ()
    at /data/FreeBSD/CURRENT/sys/kern/kern_shutdown.c:542
#3  0xc02f743c in _mtx_assert (m=0xc053cc00, what=0, 
    file=0xc04e6095 "/data/FreeBSD/CURRENT/sys/kern/kern_exit.c", line=122)
    at /data/FreeBSD/CURRENT/sys/kern/kern_mutex.c:844
#4  0xc02e9583 in exit1 (td=0xc284a000, rv=4352)
    at /data/FreeBSD/CURRENT/sys/kern/kern_exit.c:122
#5  0xc02ee946 in kthread_exit ()
    at /data/FreeBSD/CURRENT/sys/kern/kern_kthread.c:135
#6  0xc01cf4c5 in ar_rebuild ()
    at /data/FreeBSD/CURRENT/sys/dev/ata/ata-raid.c:859
#7  0xc02ec8d4 in fork_exit (callout=0xc01cf080 <ar_rebuild>, arg=0x0, 
    frame=0x0) at /data/FreeBSD/CURRENT/sys/kern/kern_fork.c:796

Btw. the -CURRENT is from today.

-- 
Simon L. Nielsen

Received on Sun Apr 06 2003 - 04:30:12 UTC

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