initialization problems with static p11-kit on mingw

Mark Brand mabrand at
Fri Oct 28 15:02:35 PDT 2011


I'm trying to get p11-kit working with gnutls 3 in the mingw-cross-env 
environment, where all linking is static.

I've built p11-kit from 969bcab (3 commits after 0.8 which include some 
relevant fixes).

Running p11-kit.exe under Wine produces:

(p11-kit:40) p11_kit_initialize_registered: in
err:ntdll:RtlpWaitForCriticalSection section 0x4fcce0 "?" wait timed out 
in thread 0029, blocked by 0000, retrying (60 sec)

The line number in p11-kit can vary. I've seen from 13 to 70.

When run on Windows 7, it just crashes.

Using gdb I set a breakpoint at p11_kit_initialize_registered().

(gdb) backtrace
#0  p11_kit_initialize_registered () at modules.c:719
#1  0x00401f98 in list_modules (argc=0, argv=0x110458) at p11-kit.c:217
#2  0x00424952 in main (argc=0, argv=<optimized out>) at p11-kit.c:272

This is where it's stuck:

(gdb) next
p11_kit_initialize_registered () at modules.c:727
727             _p11_lock ();
(gdb) next

I seem to remember something like in an earlier version of libgpg_error, 
if that rings a bell.

Any help would be appreciated.



More information about the p11-glue mailing list