Closed Bug 1661959 Opened 5 years ago Closed 5 years ago

Crash in [@ CxxThrowException | Botan::hex_decode]

Categories

(MailNews Core :: Security: OpenPGP, defect)

Unspecified
Windows 10
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1653884

People

(Reporter: wsmwk, Unassigned)

References

Details

(Keywords: crash)

Crash Data

all crashes are version 78, at least for the past month.

Crash report: https://crash-stats.mozilla.org/report/index/857f563e-6fdc-4efc-b34c-a5ee10200830

Top 10 frames of crashing thread:

0 kernelbase.dll RaiseException 
1 rnp.dll CxxThrowException /builds/worker/workspace/obj-build/comm/third_party/rnp/f:/dd/vctools/crt/vcruntime/src/eh/throw.cpp:129
2 rnp.dll Botan::hex_decode comm/third_party/botan/src/lib/codec/hex/hex.cpp:112
3 rnp.dll Botan::hex_decode comm/third_party/botan/src/lib/codec/hex/hex.cpp:192
4 rnp.dll std::_Func_impl_no_alloc<`lambda at /builds/worker/checkouts/gecko/comm/third_party/botan/src/lib/ffi/ffi.cpp:264:37', int>::_Do_call 
5 rnp.dll botan_hex_decode comm/third_party/botan/src/lib/ffi/ffi.cpp:264
6 rnp.dll rnp_hex_decode comm/third_party/rnp/src/lib/misc.cpp:440
7 rnp.dll str_to_locator comm/third_party/rnp/src/lib/rnp.cpp:3418
8 rnp.dll rnp_locate_key comm/third_party/rnp/src/lib/rnp.cpp:3507
9 xul.dll ffi_call_win64 
Flags: needinfo?(kaie)

Yes same.

I've reported the issue at https://github.com/rnpgp/rnp/issues/1287

The RNP library should be fixed to prevent this crash, by using try/catch

Flags: needinfo?(kaie)

Nickolay, once this is fixed, could you please point us to an updated RNP revision suitable for inclusion in the Thunderbird stable branch? Thanks.

Flags: needinfo?(o.nickolay)
Crash Signature: [@ CxxThrowException | Botan::hex_decode] → [@ CxxThrowException | Botan::hex_decode] [@ Botan::hex_decode]

Kai, sure. Actually I'm surprised why and how this could happen, let's first resolve this (together with RSA key generation issue, probably).

Flags: needinfo?(o.nickolay)

https://github.com/rnpgp/rnp/issues/1287 notes on Sept 24, 2020, "The issue is fixed by using the /EHs clang compiler flag. (Which Botan's build system already uses, but the Thunderbird build system didn't...)"

And the crashes ended in September. Did we implement the fix mentioned above?

Flags: needinfo?(rob)

(In reply to Wayne Mery (:wsmwk) from comment #5)

And the crashes ended in September. Did we implement the fix mentioned above?

Yes, in bug 1653884.

Status: NEW → RESOLVED
Closed: 5 years ago
Flags: needinfo?(rob)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.