Re: Panic in 8.1 in softclock(): mutex Giant not owned at ../../../../sys/kern/kern_mutex.c:185

2012-02-17 Thread Ryan Stone
On Wed, Feb 15, 2012 at 10:20 PM, Vijay Singh vijju.si...@gmail.com wrote: I hit the assert in line 405. So right after locking Giant, it is found unlocked!!! Try running kldload/kldunload with INVARIANTS enabled. I would suspect that you're hitting a case where the kldload code is unlocking

Re: Panic in 8.1 in softclock(): mutex Giant not owned at ../../../../sys/kern/kern_mutex.c:185

2012-02-17 Thread Ryan Stone
On Fri, Feb 17, 2012 at 3:14 PM, Ryan Stone ryst...@gmail.com wrote: On Wed, Feb 15, 2012 at 10:20 PM, Vijay Singh vijju.si...@gmail.com wrote: I hit the assert in line 405. So right after locking Giant, it is found unlocked!!! Try running kldload/kldunload with INVARIANTS enabled.  I would

Re: Panic in 8.1 in softclock(): mutex Giant not owned at ../../../../sys/kern/kern_mutex.c:185

2012-02-15 Thread Vijay Singh
Hi John, (kgdb-amd64-6.8-71) f 5 #5  0x803b73e6 in softclock (arg=0x80c90f40) at ../../../../sys/kern/kern_timeout.c:461 461                                           class-lc_unlock(c_lock); (kgdb-amd64-6.8-71) l 456                                           lastfunc =

Re: Panic in 8.1 in softclock(): mutex Giant not owned at ../../../../sys/kern/kern_mutex.c:185

2012-02-15 Thread Arnaud Lacombe
Hi, Vijay Singh wrote; In the code below: (kgdb-amd64-6.8-48) l 402 if (c_lock != NULL) { 403 if (c_lock == Giant.lock_object) { 404 mtx_lock(Giant); 405

Re: Panic in 8.1 in softclock(): mutex Giant not owned at ../../../../sys/kern/kern_mutex.c:185

2012-02-15 Thread Vijay Singh
Out of curiosity, where does your code comes from ? The same snippet from the  `release/8.1.0' branch does not refer to `Giant' at all, it only reads:               if (c_lock != NULL) {                       class-lc_lock(c_lock, sharedlock); Arnaud, I added that code to track down the

Re: Panic in 8.1 in softclock(): mutex Giant not owned at ../../../../sys/kern/kern_mutex.c:185

2011-11-08 Thread John Baldwin
On Sunday, November 06, 2011 6:49:43 pm Vijay Singh wrote: Hackers. I am hitting a panic on 8.1 in the softclock() code. Anyone seen this? PANIC : mutex Giant not owned at ../../../../sys/kern/kern_mutex.c:185 (kgdb-amd64-6.8-71) bt #0 breakpoint () at ./machine/cpufunc.h:64 #1

Panic in 8.1 in softclock(): mutex Giant not owned at ../../../../sys/kern/kern_mutex.c:185

2011-11-06 Thread Vijay Singh
Hackers. I am hitting a panic on 8.1 in the softclock() code. Anyone seen this? PANIC : mutex Giant not owned at ../../../../sys/kern/kern_mutex.c:185 (kgdb-amd64-6.8-71) bt #0 breakpoint () at ./machine/cpufunc.h:64 #1 0x803d8b82 in kdb_enter (why=0x806ca339 panic,