Hello,

I try to debug a PKCS#11 program using pkcs11-spy.
The problem is that for an unknown reason the C_Initialize() from the
spy is calling istelf instead of the C_Initialize from OpenSC.

After some 261418 calls the program crashes because of a stack
exhaustion of something similar.

With another program the pkcs11-spy works great. So the problem is not
general :-(


It looks like the C_Initialize symbol used by C_GetFunctionList() from
OpenSC is resolved using the C_Initialize from the spy and not the
C_Initialize from OpenSC.

If I rename the function C_Initialize into C_InitializeX in
src/pkcs11/pkcs11-global.c and use C_InitializeX to initialize
pkcs11_function_list it works but I get the problem on the next
PKCS#11 call, C_GetSlotList in my case.

The program exposing the problem is a C++ one. But maybe that is not related.
Anyone having the same problem?

Any idea how to solve this?

Thanks

-- 
 Dr. Ludovic Rousseau
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to