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

Matthew Dillon dillon at apollo.backplane.com
Sat Jun 5 09:01:30 PDT 2010


:> : 	 * 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 at backplane.com>





More information about the Bugs mailing list