need some debugging help

Pawel Jakub Dawidek nick at garage.freebsd.pl
Sun Aug 31 17:21:27 PDT 2003


On Mon, Sep 01, 2003 at 02:13:45AM +0200, Pawel Jakub Dawidek wrote:
+> I was getting same panics while I was working on GEOM Gate.
+> After many hours of debugging I've tracked this down - I've initialized
+> a mutex, but I haven't destroy it.
+> 
+> As I susspect you're loading cd(4) as kld module?

No, you don't need to load it as kld module, because you initiate
this mutex on every function call (and mutex is locally allocated to),
so try to put mtx_destroy() on the end of this function, this should help.
(I hope there is no problem with calling msleep(9) with mutex from stack)

-- 
Pawel Jakub Dawidek                       pawel at dawidek.net
UNIX Systems Programmer/Administrator     http://garage.freebsd.pl
Am I Evil? Yes, I Am!                     http://cerber.sourceforge.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 305 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20030901/7c12ed39/attachment.bin


More information about the freebsd-current mailing list