On 16. 12. 2010 14:02, Nelson Bolyard wrote:
On 2010-12-11 11:57 PDT, Matej Kurpel wrote:
Ah, that's because I tried CKR_FUNCTION_NOT_SUPPORTED then and copied
the wrong pkcs log. But that's not really the point since it crashes
everytime, no matter which CKR_ return code I use (apart from CKR_OK)
from the ones allowed by the pkcs11 specification.
So, you're a developer, developing code to run on windows. I suspect
you must have a windows compiler/debugger, such as a free MSVC version.
The next step is to use it to get a stack trace of the crash.
Even if you don't have full sources, you can still use Mozilla's symbol
server to provide the symbols for your stack. Point your debugger's
symbols client athttp://symbols.mozilla.org/firefox
I have installed the debug package for Windows where WinDbg resides (I
didn't have it installed previously). I have set up the symbols url as
shown on the web page (with /thunderbird and not /firefox at the end
since with /firefox it said it couldn't load the symbols when debugging
TB). Then I attached the debugger to a new Thunderbird session. I caused
the crash and saw this in the Command window:
(164c.1560): C++ EH exception - code e06d7363 (first chance)
(164c.1560): C++ EH exception - code e06d7363 (!!! second chance !!!)
KERNELBASE!RaiseException+0x58:
7675b727 c9 leave
0:000:x86> g
WARNING: Continuing a non-continuable exception
(164c.1560): Access violation - code c0000005 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
thunderbird!XPCWrappedNative::FinishInit+0x34:
01199547 f60102 test byte ptr [ecx],2
ds:002b:00090109=??
When pressing F5, the access violation always repeated.
And in the Calls window (I guess this is the stack trace you were
writing about):
# ChildEBP RetAddr Args to Child
00 0027e3f8 01199e98 0027e92c 019f721c 6b882629
thunderbird!XPCWrappedNative::FinishInit(class XPCCallContext * ccx =
0x0119b8ac)+0x34 (FPO: [1,0,0]) (CONV: thiscall)
[e:\buildbot\win32_build_31\build\mozilla\js\src\xpconnect\src\xpcwrappednative.cpp
@ 1191]
01 0027e410 0119b8ac 0027e92c 05f5f0c0 00000000
thunderbird!XPCWrappedNative::Init(class XPCCallContext * ccx =
0x0027e92c, struct JSObject * parent = 0x05f5f0c0, int isGlobal = 0n0,
class XPCNativeScriptableCreateInfo * sci = 0x0027e4a4)+0xeb (FPO:
[Non-Fpo]) (CONV: thiscall)
[e:\buildbot\win32_build_31\build\mozilla\js\src\xpconnect\src\xpcwrappednative.cpp
@ 1141]
02 0027e4c8 0119da26 0027e92c 08d93ce4 05f5b640
thunderbird!XPCWrappedNative::GetNewOrUsed(class XPCCallContext * ccx =
0x0027e92c, class nsISupports * Object = 0x08d93ce4, class
XPCWrappedNativeScope * Scope = 0x05f5b640, class XPCNativeInterface *
Interface = 0x0a7efee0, class nsWrapperCache * cache = 0x00000000, int
isGlobal = 0n0, class XPCWrappedNative ** resultWrapper =
0x0027e54c)+0x60c (FPO: [Non-Fpo]) (CONV: cdecl)
[e:\buildbot\win32_build_31\build\mozilla\js\src\xpconnect\src\xpcwrappednative.cpp
@ 571]
03 0027e550 0119e4fd 0027e5c8 0027e794 00000000
thunderbird!XPCConvert::NativeInterface2JSObject(class
XPCLazyCallContext * lccx = 0x0027e5c8, int * d = 0x0027e794, class
nsIXPConnectJSObjectHolder ** dest = 0x00000000, class nsISupports * src
= 0x08d93ce4, struct nsID * iid = 0x0027e858, class XPCNativeInterface
** Interface = 0x00000000, class nsWrapperCache * cache = 0x00000000,
struct JSObject * scope = 0x08d9ddc0, int allowNativeWrapper = 0n1, int
isGlobal = 0n0, unsigned int * pErr = 0x0027e77c)+0x199 (FPO: [Non-Fpo])
(CONV: cdecl)
[e:\buildbot\win32_build_31\build\mozilla\js\src\xpconnect\src\xpcconvert.cpp
@ 1199]
04 0027e594 0119849b 0027e5c8 0027e794 0027e6c4
thunderbird!XPCConvert::NativeData2JS(class XPCLazyCallContext * lccx =
0x0027e5c8, int * d = 0x0027e794, void * s = 0x0027e6c4, class nsXPTType
* type = 0x0027e79f, struct nsID * iid = 0x0027e858, struct JSObject *
scope = 0x08d9ddc0, unsigned int * pErr = 0x0027e77c)+0x314 (FPO:
[Non-Fpo]) (CONV: cdecl)
[e:\buildbot\win32_build_31\build\mozilla\js\src\xpconnect\src\xpcconvert.cpp
@ 471]
05 0027e684 0119abbf 0027e92c 0027e794 0027e6c4
thunderbird!XPCConvert::NativeData2JS(class XPCCallContext * ccx =
0x0027e92c, int * d = 0x0027e794, void * s = 0x0027e6c4, class nsXPTType
* type = 0x0027e79f, struct nsID * iid = 0x0027e858, struct JSObject *
scope = 0x08d9ddc0, unsigned int * pErr = 0x0027e77c)+0x4c (FPO:
[Non-Fpo]) (CONV: cdecl)
[e:\buildbot\win32_build_31\build\mozilla\js\src\xpconnect\src\xpcprivate.h
@ 2985]
06 0027e900 011a122b 0027e92c 00000000 00a83c00
thunderbird!XPCWrappedNative::CallMethod(class XPCCallContext * ccx =
0x0027e92c, XPCWrappedNative::CallMode mode = CALL_METHOD (0n0))+0xcec
(FPO: [Non-Fpo]) (CONV: cdecl)
[e:\buildbot\win32_build_31\build\mozilla\js\src\xpconnect\src\xpcwrappednative.cpp
@ 2810]
07 0027e9c4 6ba05afd 00a83c00 08d9ddc0 00000001
thunderbird!XPC_WN_CallMethod(struct JSContext * cx = 0x00a83c00, struct
JSObject * obj = 0x08d9ddc0, unsigned int argc = 1, int * argv =
0x00a6351c, int * vp = 0x0027ea3c)+0xfa (FPO: [Non-Fpo]) (CONV: cdecl)
[e:\buildbot\win32_build_31\build\mozilla\js\src\xpconnect\src\xpcwrappednativejsops.cpp
@ 1740]
08 0027ea68 6ba0af9e 00a83c00 00000001 00a63514 js3250!js_Invoke(struct
JSContext * cx = 0x00a83c00, unsigned int argc = 1, int * vp =
0x00a63514, unsigned int flags = 2)+0x48d (CONV: cdecl)
[e:\buildbot\win32_build_31\build\mozilla\js\src\jsinterp.cpp @ 1360]
09 0027ebf4 6ba05b08 00a83c00 00000000 0027ef08
js3250!js_Interpret(struct JSContext * cx = 0x00a83c00)+0x456e (CONV:
cdecl) [e:\buildbot\win32_build_31\build\mozilla\js\src\jsops.cpp @ 2241]
0a 0027ec88 011d5f59 00a83c00 00000003 00a63480 js3250!js_Invoke(struct
JSContext * cx = 0x00a83c00, unsigned int argc = 3, int * vp =
0x00a63480, unsigned int flags = 0)+0x498 (CONV: cdecl)
[e:\buildbot\win32_build_31\build\mozilla\js\src\jsinterp.cpp @ 1368]
0b 0027eebc 011d2812 046f4850 060c1ac0 00000003
thunderbird!nsXPCWrappedJSClass::CallMethod(class nsXPCWrappedJS *
wrapper = 0x060c1ac0, unsigned short methodIndex = 3, struct
XPTMethodDescriptor * info = 0x04680460, struct nsXPTCMiniVariant *
nativeParams = 0x0027eef8)+0xac6 (FPO: [Non-Fpo]) (CONV: stdcall)
[e:\buildbot\win32_build_31\build\mozilla\js\src\xpconnect\src\xpcwrappedjsclass.cpp
@ 1696]
0c 0027eed4 6b8b5d6f 060c1ac0 00000003 04680460
thunderbird!nsXPCWrappedJS::CallMethod(unsigned short methodIndex =
0xdc10, struct XPTMethodDescriptor * info = 0x00000003, struct
nsXPTCMiniVariant * params = 0x0027efb0)+0x27 (FPO: [4,0,0]) (CONV:
stdcall)
[e:\buildbot\win32_build_31\build\mozilla\js\src\xpconnect\src\xpcwrappedjs.cpp
@ 571]
0d 0027ef88 6b8b5dd6 0607dc10 00000003 0027efb0
xpcom_core!PrepareAndDispatch(class nsXPTCStubBase * self = 0x0607dc10,
unsigned int methodIndex = 3, unsigned int * args = 0x0027efb0, unsigned
int * stackBytesToPop = 0x0027efa0)+0xe7 (FPO: [Non-Fpo]) (CONV:
stdcall)
[e:\buildbot\win32_build_31\build\mozilla\xpcom\reflect\xptcall\src\md\win32\xptcstubs.cpp
@ 114]
0e 0027efa4 0127657a 0607dc10 0607dca0 01a1d2e0
xpcom_core!SharedStub(void)+0x16 (FPO: [Non-Fpo]) (CONV: cdecl)
[e:\buildbot\win32_build_31\build\mozilla\xpcom\reflect\xptcall\src\md\win32\xptcstubs.cpp
@ 142]
0f 0027f01c 0027f050 6b9b9e5f 00a1ff8c 6b9b6022
thunderbird!nsIdleService::CheckAwayState(void)+0xf3 (FPO: [Non-Fpo])
(CONV: thiscall)
[e:\buildbot\win32_build_31\build\mozilla\widget\src\xpwidgets\nsidleservice.cpp
@ 189]
WARNING: Frame IP not in any known module. Following frames may be wrong.
10 0027f020 6b9b9e5f 00a1ff8c 6b9b6022 00a1ff8c 0x27f050
11 0027f028 6b9b6022 00a1ff8c 6b8abca4 00a1ff70
nspr4!_PR_MD_UNLOCK(struct _MDLock * lock = 0x00000000)+0x1f (FPO:
[1,0,0]) (CONV: cdecl)
[e:\buildbot\win32_build_31\build\mozilla\nsprpub\pr\src\md\windows\w95cv.c
@ 347]
12 0027f030 6b8abca4 00a1ff70 00a1ff70 00000000 nspr4!PR_Unlock(struct
PRLock * lock = 0x00000000)+0x22 (FPO: [1,0,0]) (CONV: cdecl)
[e:\buildbot\win32_build_31\build\mozilla\nsprpub\pr\src\threads\combined\prulock.c
@ 347]
13 0027f050 00000000 00000000 c01b0000 00000000
xpcom_core!nsEventQueue::GetEvent(int mayWait = 0n0, class nsIRunnable
** result = 0xc01b0000)+0x83 (FPO: [Non-Fpo]) (CONV: thiscall)
[e:\buildbot\win32_build_31\build\mozilla\xpcom\threads\nseventqueue.cpp
@ 100]
That information don't really say anything useful to me.
If I can be of more help, please let me know what to do. Thank you in
advance.
M. Kurpel
--
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto