DragonFly BSD
DragonFly bugs List (threaded) for 2010-06
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: [issue1777] vn panic: Freeing already free credential! 0xdef403f8


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Sat, 5 Jun 2010 09:00:51 -0700 (PDT)

:> : 	 * Set credits in our softc
:> : 	 */
:> : 
:> :-	if (vn->sc_cred)
:> :+	if (vn->sc_cred && vn->sc_cred->cr_ref > 0)
:> : 		crfree(vn->sc_cred);
:> : 	vn->sc_cred = crdup(cred);
:> 
:>     That can't be right.  If vn->sc_cred is set at all there must be a
:>     ref on it.  If there isn't something is leaking a crfree() without
:>     clearing it.
:
:I've been looking at the backtrace and in frame 6 vn->sc_cred is 0x00
:but cr in frame 5 is non-NULL and appears to be corrupted.
:
:Joe

   Check the rest of the vn structure and see if it is corrupted.  If
   it isn't then what is probably happening is some other subsystem
   (possibly part of the call path into vn, before it gets to vn) might
   be blowing up the credential.  It might not be VN's fault.

					-Matt
					Matthew Dillon 
					<dillon@backplane.com>



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