Closed Bug 1712806 Opened 5 years ago Closed 5 years ago

Intermittent Assertion failure: mActor->mLinkStatus == LinkStatus::Destroyed (Deallocating non-destroyed actor!), at /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:277

Categories

(Core :: IPC, defect, P5)

defect

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: intermittent-bug-filer, Unassigned)

References

Details

(Keywords: assertion, intermittent-failure)

Filed by: ncsoregi [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=340748989&repo=mozilla-central
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/GsyIYeDeTJGmgnBk7heZMw/runs/0/artifacts/public/logs/live_backing.log


[task 2021-05-25T16:29:06.867Z] 16:29:06     INFO - GECKO(6508) | Assertion failure: mActor->mLinkStatus == LinkStatus::Destroyed (Deallocating non-destroyed actor!), at /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:277
[task 2021-05-25T16:29:07.030Z] 16:29:07     INFO -  Initializing stack-fixing for the first stack frame, this may take a while...
[task 2021-05-25T16:29:17.032Z] 16:29:17     INFO - GECKO(6508) | #01: mozilla::ipc::ActorLifecycleProxy::~ActorLifecycleProxy() [ipc/glue/ProtocolUtils.cpp:276]
[task 2021-05-25T16:29:17.032Z] 16:29:17     INFO - GECKO(6508) | #02: mozilla::ipc::ActorLifecycleProxy::Release() [ipc/glue/ProtocolUtils.h:667]
[task 2021-05-25T16:29:17.033Z] 16:29:17     INFO - GECKO(6508) | #03: mozilla::dom::PBrowserParent::ClearSubtree() [s3:gecko-generated-sources:f184362dee67e3002594b6564e1094b5224a2de88bf62bb3bef0a33aa2b71ff4f78d9b236e294067f6ac3904ada3c98fa38ad76852efcab6475d101367885eed/ipc/ipdl/PBrowserParent.cpp::7076]
[task 2021-05-25T16:29:17.034Z] 16:29:17     INFO - GECKO(6508) | #04: mozilla::dom::PContentParent::ClearSubtree() [s3:gecko-generated-sources:778c2c5be0a81ca6207a0a9591eb6505803dfc2499ef205e41b7242c020667675c65ff59748ef6853b434f3dc49adb2444255d4bd8ae402cb9ca5bf2ca744798/ipc/ipdl/PContentParent.cpp::15731]
[task 2021-05-25T16:29:17.034Z] 16:29:17     INFO - GECKO(6508) | #05: mozilla::dom::PContentParent::OnChannelError() [s3:gecko-generated-sources:778c2c5be0a81ca6207a0a9591eb6505803dfc2499ef205e41b7242c020667675c65ff59748ef6853b434f3dc49adb2444255d4bd8ae402cb9ca5bf2ca744798/ipc/ipdl/PContentParent.cpp::15722]
[task 2021-05-25T16:29:17.034Z] 16:29:17     INFO - GECKO(6508) | #06: mozilla::dom::ContentParent::OnChannelError() [dom/ipc/ContentParent.cpp:1971]
[task 2021-05-25T16:29:17.034Z] 16:29:17     INFO - GECKO(6508) | #07: mozilla::detail::RunnableMethodImpl<mozilla::ipc::MessageChannel *,void (mozilla::ipc::MessageChannel::*)(),0,mozilla::RunnableKind::Cancelable>::Run() [xpcom/threads/nsThreadUtils.h:1206]
[task 2021-05-25T16:29:17.034Z] 16:29:17     INFO - GECKO(6508) | #08: mozilla::RunnableTask::Run() [xpcom/threads/TaskController.cpp:483]
[task 2021-05-25T16:29:17.035Z] 16:29:17     INFO - GECKO(6508) | #09: mozilla::TaskController::DoExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex &> const&) [xpcom/threads/TaskController.cpp:766]
[task 2021-05-25T16:29:17.035Z] 16:29:17     INFO - GECKO(6508) | #10: mozilla::TaskController::ExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex &> const&) [xpcom/threads/TaskController.cpp:621]
[task 2021-05-25T16:29:17.036Z] 16:29:17     INFO - GECKO(6508) | #11: mozilla::TaskController::ProcessPendingMTTask(bool) [xpcom/threads/TaskController.cpp:405]
[task 2021-05-25T16:29:17.036Z] 16:29:17     INFO - GECKO(6508) | #12: mozilla::detail::RunnableFunction<`lambda at /builds/worker/checkouts/gecko/xpcom/threads/TaskController.cpp:138:7'>::Run() [xpcom/threads/nsThreadUtils.h:535]
[task 2021-05-25T16:29:17.037Z] 16:29:17     INFO - GECKO(6508) | #13: nsThread::ProcessNextEvent(bool, bool*) [xpcom/threads/nsThread.cpp:1163]
[task 2021-05-25T16:29:17.037Z] 16:29:17     INFO - GECKO(6508) | #14: NS_ProcessNextEvent(nsIThread*, bool) [xpcom/threads/nsThreadUtils.cpp:548]
[task 2021-05-25T16:29:17.038Z] 16:29:17     INFO - GECKO(6508) | #15: mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate*) [ipc/glue/MessagePump.cpp:85]
[task 2021-05-25T16:29:17.038Z] 16:29:17     INFO - GECKO(6508) | #16: MessageLoop::RunHandler() [ipc/chromium/src/base/message_loop.cc:329]
[task 2021-05-25T16:29:17.038Z] 16:29:17     INFO - GECKO(6508) | #17: MessageLoop::Run() [ipc/chromium/src/base/message_loop.cc:311]
[task 2021-05-25T16:29:17.039Z] 16:29:17     INFO - GECKO(6508) | #18: nsBaseAppShell::Run() [widget/nsBaseAppShell.cpp:139]
[task 2021-05-25T16:29:17.039Z] 16:29:17     INFO - GECKO(6508) | #19: nsAppShell::Run() [widget/windows/nsAppShell.cpp:603]
[task 2021-05-25T16:29:17.039Z] 16:29:17     INFO - GECKO(6508) | #20: nsAppStartup::Run() [toolkit/components/startup/nsAppStartup.cpp:274]
[task 2021-05-25T16:29:17.040Z] 16:29:17     INFO - GECKO(6508) | #21: XREMain::XRE_mainRun() [toolkit/xre/nsAppRunner.cpp:5244]
[task 2021-05-25T16:29:17.040Z] 16:29:17     INFO - GECKO(6508) | #22: XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) [toolkit/xre/nsAppRunner.cpp:5442]
[task 2021-05-25T16:29:17.040Z] 16:29:17     INFO - GECKO(6508) | #23: XRE_main(int, char**, mozilla::BootstrapConfig const&) [toolkit/xre/nsAppRunner.cpp:5501]
[task 2021-05-25T16:29:17.094Z] 16:29:17     INFO - GECKO(6508) | #24: NS_internal_main(int, char**, char**) [browser/app/nsBrowserApp.cpp:351]
[task 2021-05-25T16:29:17.094Z] 16:29:17     INFO - GECKO(6508) | #25: wmain(int, wchar_t**) [toolkit/xre/nsWindowsWMain.cpp:131]
[task 2021-05-25T16:29:17.094Z] 16:29:17     INFO - GECKO(6508) | #26: __scrt_common_main_seh() [/builds/worker/workspace/obj-build/browser/app/f:/dd/vctools/crt/vcstartup/src/startup/exe_common.inl:288]
[task 2021-05-25T16:29:17.098Z] 16:29:17     INFO -  fix-stacks: error: failed to read debug info file `wkernel32.pdb` for `C:\Windows\System32\KERNEL32.DLL`
[task 2021-05-25T16:29:17.099Z] 16:29:17     INFO -  fix-stacks: note: this is expected and harmless for all PDB files on opt automation runs
[task 2021-05-25T16:29:17.099Z] 16:29:17     INFO -  fix-stacks: The system cannot find the file specified. (os error 2)
[task 2021-05-25T16:29:17.099Z] 16:29:17     INFO - GECKO(6508) | #27: BaseThreadInitThunk [C:\Windows\System32\KERNEL32.DLL + 0x13034]
[task 2021-05-25T16:29:17.105Z] 16:29:17     INFO -  fix-stacks: error: failed to read debug info file `wntdll.pdb` for `C:\Windows\SYSTEM32\ntdll.dll`
[task 2021-05-25T16:29:17.105Z] 16:29:17     INFO -  fix-stacks: note: this is expected and harmless for all PDB files on opt automation runs
[task 2021-05-25T16:29:17.105Z] 16:29:17     INFO -  fix-stacks: The system cannot find the file specified. (os error 2)

Happened in browser/components/sessionstore/test/browser_revive_crashed_bg_tabs.js which intentionally crashes a process, so maybe some kind of issue with ContentParent teardown in case of an error?

The generated OnChannelError method first calls DestroySubtree, which in theory should set mLinkStatus to Destroyed on everything in the subtree, and then calls ClearSubtree… but somehow we find something managed by a PBrowser which isn't Destroyed yet? I don't know how we'd get into that state.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → INCOMPLETE
See Also: → 1770414
You need to log in before you can comment on or make changes to this bug.