Timothy J. Miller wrote:
Geoff Elgey wrote:

I can't recall the code mentioned above, but it's very possible that
something quickly written as an example to a mailing list could be
buggy...


The code is from this message:

http://archives.neohapsis.com/archives/dev/muscle/2005-q2/0230.html

And you're right, it might be. However, I'm seeing the exact same log sequence followed by a segfault with pam_pkcs11 as I did with your example.

I'll dig deeper into debugging today and maybe I can find out more.

-- Tim



Tim,
the segfault is happening at:

muscleframework-1.1.5.orig/libmusclepkcs11/src/p11x_session.c:136
[while( prev->hnext != session ) {]
while being called from
closeSessionLocked (hSession=1) at p11_session.c:104
[else if (!CKR_ERROR(rv = session_FreeSession(session)))]

on what looked to me to be the second pass through the function after being called from
main:115
[rv = (*pFunctionList->C_CloseSession) (hSession);]


It looks like the cause is that before calling the while, there is no verification that (prev !=NULL) and it is.

--
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to