Closed martinpaljak closed 5 years ago
This seems to be a common problem: https://www.google.com/search?rls=en&q=pthread_join_common.c
May this be the cause why Chromium crashes randomly after a couple of minutes with the plugin enabled? I don't have any logs to tie the crashing to open-eid, but the crashes disappeared after removing open-eid and everything related (and there weren't any before the inclusion of this middleware). Can anyone confirm this?
Have not tried with Chromium, but apparently having the PKCS#11 module loaded to Firefox (on Debian that is) resulted in random crashes of Firefox. As both are based on NSS on Linux, I assume the symptoms are the same. Keep in mind that open-eid should contain multiple PKCS#11 modules and only the Oberthur one seems to cause the random crashes (as currently observed)
C_Finalize always hangs:
It seems that it only hangs if no card reader is connected:
2: C_GetSlotList
2019-05-09 11:42:17.939
[in] tokenPresent = 0x0
[out] pSlotList:
Count is 0
[out] *pulCount = 0x0
Returned: 0 CKR_OK
...
4: C_Finalize
2019-05-09 11:42:17.941
^C
With one connected, it works:
2: C_GetSlotList
2019-05-09 11:42:08.528
[in] tokenPresent = 0x0
[out] pSlotList:
Count is 1
[out] *pulCount = 0x1
Returned: 0 CKR_OK
...
5: C_Finalize
2019-05-09 11:42:08.530
Returned: 0 CKR_OK
Connecting a card reader while the library is hung also wakes it up.
"May this be the cause why Chromium crashes randomly after a couple of minutes with the plugin enabled?"
"awp" dependency is removed now: https://github.com/open-eid/linux-installer/pull/49/files Hope there will be 19.06 release soon: https://installer.id.ee/media/ubuntu/
C_Finalize always hangs:
(running this via gdb)