Closed Bug 1670490 Opened 5 years ago Closed 5 years ago

Startup Crash in [@ mozilla::interceptor::WindowsDllDetourPatcher<T>::CreateTrampoline]

Categories

(Firefox :: Launcher Process, defect)

Unspecified
Windows
defect

Tracking

()

RESOLVED INVALID
Tracking Status
firefox-esr78 --- unaffected
firefox81 --- unaffected
firefox82 --- unaffected
firefox83 + fixed

People

(Reporter: aryx, Assigned: toshi)

References

(Regression)

Details

(Keywords: crash, regression)

Crash Data

Attachments

(1 obsolete file)

Regression from bug 1588245 on 4+ devices - reported as 5 installations: 4 crashes on Windows 8.1, 1 on Windows 10.

[Tracking Requested - why for this release]: Regression and startup crash.

Crash report: https://crash-stats.mozilla.org/report/index/96fb4591-abf2-4655-8d31-917770201010

MOZ_CRASH Reason: MOZ_DIAGNOSTIC_ASSERT(isSome())

Top 10 frames of crashing thread:

0 xul.dll mozilla::interceptor::WindowsDllDetourPatcher<mozilla::interceptor::VMSharingPolicyShared>::CreateTrampoline mozglue/misc/interceptor/PatcherDetour.h:1429
1 xul.dll mozilla::interceptor::WindowsDllDetourPatcher<mozilla::interceptor::VMSharingPolicyShared>::AddHook mozglue/misc/interceptor/PatcherDetour.h:460
2 xul.dll mozilla::interceptor::WindowsDllInterceptor<mozilla::interceptor::VMSharingPolicyShared>::AddDetour mozglue/misc/nsWindowsDllInterceptor.h:519
3 xul.dll mozilla::interceptor::WindowsDllInterceptor<mozilla::interceptor::VMSharingPolicyShared>::AddHook mozglue/misc/nsWindowsDllInterceptor.h:433
4 xul.dll static mozilla::interceptor::FuncHook<mozilla::interceptor::WindowsDllInterceptor<mozilla::interceptor::VMSharingPolicyShared>, HIMC__* mozglue/misc/nsWindowsDllInterceptor.h:200
5 ntdll.dll RtlRunOnceExecuteOnce 
6 kernelbase.dll InitOnceExecuteOnce 
7 xul.dll mozilla::plugins::BasicFunctionHook<mozilla::plugins::ID_CreateMutexW, void* dom/plugins/ipc/FunctionHook.h:183
8 xul.dll static mozilla::plugins::FunctionHook::HookFunctions dom/plugins/ipc/FunctionHook.cpp:51
9 xul.dll mozilla::plugins::PluginModuleChild::AllocPPluginInstanceChild dom/plugins/ipc/PluginModuleChild.cpp:1599
Flags: needinfo?(tkikuchi)
See Also: → 1670305

Sorry, it's my bad. I meant to call WindowsDllPatcherBase::SetLastError, but it was calling the WinAPI ::SetLastError. Let me quickly prepare a patch..

Calling SetLastError in a lambda unintentionally called ::SetLastError
instead of WindowsDllPatcherBase::SetLastError. The fix is to rename the
function to SetLastDetourError as well as adding the this-> prefix.

Assignee: nobody → tkikuchi
Status: NEW → ASSIGNED
See Also: → 1670546
Attachment #9180926 - Attachment is obsolete: true

The regressing change was backed out. This will be fixed by a newer fix on bug 1588245.

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Flags: needinfo?(tkikuchi)
Resolution: --- → INVALID
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: