-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Firefox crashes on Windows because BCryptGenRandom fails #94098
Copy link
Copy link
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.E-help-wantedCall for participation: Help is requested to fix this issue.Call for participation: Help is requested to fix this issue.E-mediumCall for participation: Medium difficulty. Experience needed to fix: Intermediate.Call for participation: Medium difficulty. Experience needed to fix: Intermediate.O-windowsOperating system: WindowsOperating system: WindowsT-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.E-help-wantedCall for participation: Help is requested to fix this issue.Call for participation: Help is requested to fix this issue.E-mediumCall for participation: Medium difficulty. Experience needed to fix: Intermediate.Call for participation: Medium difficulty. Experience needed to fix: Intermediate.O-windowsOperating system: WindowsOperating system: WindowsT-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Hi, I'm an engineer working for Mozilla on Firefox. We recently noticed we'd been getting crash reports indicating Firefox crashes during
env_loggerinitialization. Upon debugging, we found out it was caused by a failure ofBCryptGenRandom, that was introduced by #84096.Almost all reports are from Windows 7 32-bit. We don't know the reason why
BCryptGenRandomfailed. Possibly the cryptography settings in the registry was corrupted and the process couldn't find the module.To mitigate this crash, can you add a fallback logic, using
RtlGenRandomifBCryptGenRandomfails for whatever reason. Probably we can limit it to Win7.Here's the link to the tracking bug in Bugzilla.
https://bugzilla.mozilla.org/show_bug.cgi?id=1754490