Thunderbird crashes [@ _invalid_parameter ] when smart card inserted
Categories
(Thunderbird :: Security, defect)
Tracking
(Not tracked)
People
(Reporter: nevenr, Unassigned)
Details
(Keywords: crash)
Crash Data
Hi,
I registered security device, smart card, as PKCS#11 module (proper dll is loaded) and I logged in successfully. Afterwards I was successful with signing/encrypting/decrypting sent/received emails.
Now if smart card is removed from reader and other smart card (different type) is inserted Thunderbird crashes. Even restarts fails until second card is still inserted in reader.
I believe root cause is in PKCS#11 module but Thunderbird should handle it differently.
Crash report is submitted with comment.
#osIntegration #encryption #security
Thanks.
Regards,
Neven.
Comment 1•3 years ago
|
||
nevenr,
Please post your crash IDs into this bug report from https://support.mozilla.org/en-US/kb/mozilla-crash-reporter-tb#w_viewing-crash-reports
Hi,
Crash Reports IDs:
- bp-04c75456-aae0-41f2-9996-747880221226
- bp-f97b2e0f-a51e-4b86-b5d3-c63f00221226
- bp-44b6b884-fe7f-4546-a115-036520221226
- bp-c3cc89af-4b2f-4d1c-a062-c02bb0221226
- bp-b21f8732-9ff1-4596-a614-364ee0221226
Thanks.
Regards,
N.
Updated•3 years ago
|
Comment 3•2 years ago
|
||
Are you still crashing?
Might this be related to bug 1675742 ?
Hi,
Still the same behavior with TB 115.8.1 (64-bit).
https://crash-stats.mozilla.org/report/index/48e16057-9924-47ef-aadf-9eb740240314
Regards,
N.
Comment 5•2 years ago
|
||
Thanks for the additional information.
(In reply to nevenr from comment #4)
https://crash-stats.mozilla.org/report/index/48e16057-9924-47ef-aadf-9eb740240314
Crash report: https://crash-stats.mozilla.org/report/index/48e16057-9924-47ef-aadf-9eb740240314
Reason: STATUS_INVALID_CRUNTIME_PARAMETER
Top 10 frames of crashing thread:
0 msvcr90.dll _invalid_parameter f:\dd\vctools\crt_bld\self_64_amd64\crt\src\invarg.c:115
1 msvcr90.dll _invalid_parameter_noinfo f:\dd\vctools\crt_bld\self_64_amd64\crt\src\invarg.c:125
2 netsetpkcs11_x64.dll netsetpkcs11_x64.dll@0x508c5
3 netsetpkcs11_x64.dll netsetpkcs11_x64.dll@0x55bfc
4 msvcp90.dll std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::~basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > f:\dd\vctools\crt_bld\self_64_amd64\crt\src\xstring:916
5 netsetpkcs11_x64.dll netsetpkcs11_x64.dll@0x314e0
6 netsetpkcs11_x64.dll netsetpkcs11_x64.dll@0x14f51f
7 netsetpkcs11_x64.dll netsetpkcs11_x64.dll@0x14f51f
8 WinSCard.dll <unknown in WinSCard.dll>
9 WinSCard.dll <unknown in WinSCard.dll>
Comment 6•1 year ago
|
||
now everything just comes up Crash Reason STATUS_INVALID_PARAMETER
nevenr, do you still crash?
(In reply to Wayne Mery (:wsmwk) from comment #6)
now everything just comes up Crash Reason STATUS_INVALID_PARAMETER
nevenr, do you still crash?
Hi Mery,
Yes, still with TB 128.9.2esr behavior is the same, when card is changed TB crashes ....
Regards,
N.
Comment 8•1 year ago
|
||
What is your crash ID please?
(In reply to Wayne Mery (:wsmwk) from comment #8)
What is your crash ID please?
Hi,
Here you are:
- bp-3af7204a-79b5-44ab-ba1c-488eb0250422
- bp-6120cacd-bc3b-4b30-8904-291410250422
- bp-10499fdb-6787-4155-b00a-aa94d0250422
Regards,
N.
Comment 10•1 year ago
|
||
Excellent, thanks. All three are same as the previously cited signature @ _invalid_parameter
Crash report: https://crash-stats.mozilla.org/report/index/3af7204a-79b5-44ab-ba1c-488eb0250422
Reason:
STATUS_INVALID_CRUNTIME_PARAMETER
Top 10 frames:
0 msvcr90.dll _invalid_parameter(wchar_t const*, wchar_t const*, wchar_t const*, unsigned i... f:\dd\vctools\crt_bld\self_64_amd64\crt\src\invarg.c:115
1 msvcr90.dll _invalid_parameter_noinfo() f:\dd\vctools\crt_bld\self_64_amd64\crt\src\invarg.c:125
2 netsetpkcs11_x64.dll netsetpkcs11_x64.dll@0x508c5
3 netsetpkcs11_x64.dll netsetpkcs11_x64.dll@0x55bfc
4 msvcp90.dll std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>... f:\dd\vctools\crt_bld\self_64_amd64\crt\src\xstring:916
5 netsetpkcs11_x64.dll netsetpkcs11_x64.dll@0x314e0
6 netsetpkcs11_x64.dll netsetpkcs11_x64.dll@0x14f51f
7 netsetpkcs11_x64.dll netsetpkcs11_x64.dll@0x14f51f
8 netsetpkcs11_x64.dll netsetpkcs11_x64.dll@0x15043f
9 netsetpkcs11_x64.dll netsetpkcs11_x64.dll@0x14f51f
Comment 11•1 year ago
|
||
You are crashing in a third party software module, a pkcs#11 driver.
This is outside of the scope of Thunderbird.
Please report the issue to the provider of the module netsetpkcs11_x64.dll
| Reporter | ||
Comment 12•1 year ago
|
||
(In reply to Kai Engert [:KaiE:] from comment #11)
You are crashing in a third party software module, a pkcs#11 driver.
This is outside of the scope of Thunderbird.
Please report the issue to the provider of the module netsetpkcs11_x64.dll
Hi,
As you can see in the initial report I suspected that from beginning.
I though that TB should handle such issues differently, like report issue and continue working without that module or something similar.
Anyway thanks.
Regards,
N.
Comment 13•1 year ago
|
||
We currently don't have isolation of third party pkcs#11 modules.
If that module crashes, it will crash the whole application.
That means we cannot handle that automatically in a better way.
It would require more indirection layers.
The way it's currently designed is that pkcs#11 drivers directly interact at the C level, and if they function incorrectly and crash, there's nothing really we can do.
| Reporter | ||
Comment 14•1 year ago
|
||
Hi Kai,
Thanks for clarification.
All the best,
N.
Description
•