Closed Bug 1614350 Opened 5 years ago Closed 5 years ago

Assertion failure: parent, at /builds/worker/workspace/build/src/docshell/base/BrowsingContext.cpp:1264 in debug mode, crash [@ mozilla::dom::BrowsingContext::CreateFromIPC(...)] in opt mode

Categories

(Core :: DOM: Navigation, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1580565

People

(Reporter: ehsan.akhgari, Unassigned)

References

(Blocks 1 open bug)

Details

We hit this assertion when running browser/base/content/test/trackingUI/browser_trackingUI_socialtracking.js in debug mode.

The assertion comes from this RELEASE_ASSERT failing which is called from here.

This pernosco session captures this assertion failure: https://pernos.co/debug/FT29R9IFYe-FBerTw_9u5Q/index.html

Component: IPC → DOM: Navigation
See Also: → 1588284
Blocks: fission-mochitests
No longer blocks: fission

I was wondering if this was something that bug 1582832 would fix, but judging by the Pernosco session, those patches are already applied.

Of course, if you're so inclined to run the same test with Fission in opt mode, you will experience the assertion failure as a crash in BrowsingContext::CreateFromIPC.

https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=288206168&repo=try&lineNumber=4579
https://treeherder.mozilla.org/#/jobs?repo=try&selectedJob=288206168&revision=bc441638df0c27d94b8ca17fa2dbfb8e936f2023

[task 2020-02-10T16:03:01.904Z] 16:03:01     INFO - PROCESS-CRASH | Main app process exited normally | application crashed [@ mozilla::dom::BrowsingContext::CreateFromIPC(mozilla::dom::BrowsingContext::IPCInitializer&&, mozilla::dom::BrowsingContextGroup*, mozilla::dom::ContentParent*)]
[task 2020-02-10T16:03:01.904Z] 16:03:01     INFO - Mozilla crash reason: MOZ_RELEASE_ASSERT(parent)
[task 2020-02-10T16:03:01.904Z] 16:03:01     INFO - Crash dump filename: /tmp/tmp7lOKC1.mozrunner/minidumps/4be0a17d-4745-10ee-9c69-8e4017181129.dmp
[task 2020-02-10T16:03:01.904Z] 16:03:01     INFO - Operating system: Linux
[task 2020-02-10T16:03:01.904Z] 16:03:01     INFO -                   0.0.0 Linux 4.4.0-1014-aws #14taskcluster1-Ubuntu SMP Tue Apr 3 10:27:00 UTC 2018 x86_64
[task 2020-02-10T16:03:01.906Z] 16:03:01     INFO - CPU: amd64
[task 2020-02-10T16:03:01.906Z] 16:03:01     INFO -      family 6 model 85 stepping 4
[task 2020-02-10T16:03:01.906Z] 16:03:01     INFO -      2 CPUs
[task 2020-02-10T16:03:01.906Z] 16:03:01     INFO - 
[task 2020-02-10T16:03:01.906Z] 16:03:01     INFO - GPU: UNKNOWN
[task 2020-02-10T16:03:01.907Z] 16:03:01     INFO - 
[task 2020-02-10T16:03:01.907Z] 16:03:01     INFO - Crash reason:  SIGSEGV /SEGV_MAPERR
[task 2020-02-10T16:03:01.908Z] 16:03:01     INFO - Crash address: 0x0
[task 2020-02-10T16:03:01.908Z] 16:03:01     INFO - Process uptime: not available
[task 2020-02-10T16:03:01.908Z] 16:03:01     INFO - 
[task 2020-02-10T16:03:01.908Z] 16:03:01     INFO - Thread 0 (crashed)
[task 2020-02-10T16:03:01.908Z] 16:03:01     INFO -  0  libxul.so!mozilla::dom::BrowsingContext::CreateFromIPC(mozilla::dom::BrowsingContext::IPCInitializer&&, mozilla::dom::BrowsingContextGroup*, mozilla::dom::ContentParent*) [BrowsingContext.cpp:bc441638df0c27d94b8ca17fa2dbfb8e936f2023 : 251 + 0x11]
[task 2020-02-10T16:03:01.909Z] 16:03:01     INFO -     rax = 0x00007f90a2d1a601   rdx = 0x00007f90adf602a0
[task 2020-02-10T16:03:01.909Z] 16:03:01     INFO -     rcx = 0x000055c95ed63d48   rbx = 0x0000000000000000
[task 2020-02-10T16:03:01.910Z] 16:03:01     INFO -     rsi = 0x00007ffec7444fa8   rdi = 0x00007f9097194aa0
[task 2020-02-10T16:03:01.910Z] 16:03:01     INFO -     rbp = 0x00007ffec7444fe0   rsp = 0x00007ffec7444fa0
[task 2020-02-10T16:03:01.910Z] 16:03:01     INFO -      r8 = 0x0000000000000000    r9 = 0x00000000ffffc000
[task 2020-02-10T16:03:01.910Z] 16:03:01     INFO -     r10 = 0x00000000ffffc00e   r11 = 0x00007f90ae2b5e10
[task 2020-02-10T16:03:01.911Z] 16:03:01     INFO -     r12 = 0x0000000000000000   r13 = 0x0000000000000000
[task 2020-02-10T16:03:01.911Z] 16:03:01     INFO -     r14 = 0x00007f9096764168   r15 = 0x00007f90964f9af0
[task 2020-02-10T16:03:01.912Z] 16:03:01     INFO -     rip = 0x00007f90a040ae0d
[task 2020-02-10T16:03:01.912Z] 16:03:01     INFO -     Found by: given as instruction pointer in context
[task 2020-02-10T16:03:01.913Z] 16:03:01     INFO -  1  libxul.so!mozilla::dom::ContentChild::RecvRegisterBrowsingContextGroup(nsTArray<mozilla::dom::BrowsingContext::IPCInitializer>&&, nsTArray<mozilla::dom::WindowContext::IPCInitializer>&&) [ContentChild.cpp:bc441638df0c27d94b8ca17fa2dbfb8e936f2023 : 3963 + 0x7]
[task 2020-02-10T16:03:01.913Z] 16:03:01     INFO -     rbx = 0x00007f90964f9af0   rbp = 0x00007ffec7445040
[task 2020-02-10T16:03:01.914Z] 16:03:01     INFO -     rsp = 0x00007ffec7444ff0   r12 = 0x0000000000000008
[task 2020-02-10T16:03:01.914Z] 16:03:01     INFO -     r13 = 0x0000000000000000   r14 = 0x0000000000000001
[task 2020-02-10T16:03:01.914Z] 16:03:01     INFO -     r15 = 0x0000000000000018   rip = 0x00007f909f328d73
[task 2020-02-10T16:03:01.915Z] 16:03:01     INFO -     Found by: call frame info
[task 2020-02-10T16:03:01.915Z] 16:03:01     INFO -  2  libxul.so!mozilla::dom::PContentChild::OnMessageReceived(IPC::Message const&) [PContentChild.cpp: : 12586 + 0x8]
[task 2020-02-10T16:03:01.915Z] 16:03:01     INFO -     rbx = 0x00007ffec74450f0   rbp = 0x00007ffec7446170
[task 2020-02-10T16:03:01.915Z] 16:03:01     INFO -     rsp = 0x00007ffec7445050   r12 = 0x00007f90967690a8
[task 2020-02-10T16:03:01.915Z] 16:03:01     INFO -     r13 = 0x00007f90a3e76d10   r14 = 0x00007f90967690b0
[task 2020-02-10T16:03:01.916Z] 16:03:01     INFO -     r15 = 0x00007f90adfed020   rip = 0x00007f909d5bb856
[task 2020-02-10T16:03:01.916Z] 16:03:01     INFO -     Found by: call frame info
[task 2020-02-10T16:03:01.916Z] 16:03:01     INFO -  3  libxul.so!mozilla::ipc::MessageChannel::DispatchAsyncMessage(mozilla::ipc::ActorLifecycleProxy*, IPC::Message const&) [MessageChannel.cpp:bc441638df0c27d94b8ca17fa2dbfb8e936f2023 : 2215 + 0xd]
[task 2020-02-10T16:03:01.917Z] 16:03:01     INFO -     rbx = 0x00007f90adfed118   rbp = 0x00007ffec74461b0
[task 2020-02-10T16:03:01.917Z] 16:03:01     INFO -     rsp = 0x00007ffec7446180   r12 = 0x0000000000000001
[task 2020-02-10T16:03:01.918Z] 16:03:01     INFO -     r13 = 0x0000000000000000   r14 = 0x00007f90967690a8
[task 2020-02-10T16:03:01.918Z] 16:03:01     INFO -     r15 = 0x00007f90971513e0   rip = 0x00007f909d50a997
[task 2020-02-10T16:03:01.918Z] 16:03:01     INFO -     Found by: call frame info
[task 2020-02-10T16:03:01.918Z] 16:03:01     INFO -  4  libxul.so!mozilla::ipc::MessageChannel::DispatchMessage(IPC::Message&&) [MessageChannel.cpp:bc441638df0c27d94b8ca17fa2dbfb8e936f2023 : 2137 + 0x5]
[task 2020-02-10T16:03:01.919Z] 16:03:01     INFO -     rbx = 0x00007f9097150f20   rbp = 0x00007ffec7446270
[task 2020-02-10T16:03:01.919Z] 16:03:01     INFO -     rsp = 0x00007ffec74461c0   r12 = 0x00007f90adfed118
[task 2020-02-10T16:03:01.919Z] 16:03:01     INFO -     r13 = 0x0000000000000000   r14 = 0x00007f90967690a8
[task 2020-02-10T16:03:01.920Z] 16:03:01     INFO -     r15 = 0x00000000ffffffff   rip = 0x00007f909d50987f
[task 2020-02-10T16:03:01.920Z] 16:03:01     INFO -     Found by: call frame info
[task 2020-02-10T16:03:01.921Z] 16:03:01     INFO -  5  libxul.so!mozilla::ipc::MessageChannel::RunMessage(mozilla::ipc::MessageChannel::MessageTask&) [MessageChannel.cpp:bc441638df0c27d94b8ca17fa2dbfb8e936f2023 : 1976 + 0xb]
[task 2020-02-10T16:03:01.921Z] 16:03:01     INFO -     rbx = 0x00007f90adf1c5e0   rbp = 0x00007ffec74462c0
[task 2020-02-10T16:03:01.922Z] 16:03:01     INFO -     rsp = 0x00007ffec7446280   r12 = 0x00007f9096769050
[task 2020-02-10T16:03:01.922Z] 16:03:01     INFO -     r13 = 0x0000000000000000   r14 = 0x00007f90adfed118
[task 2020-02-10T16:03:01.922Z] 16:03:01     INFO -     r15 = 0x00007f90967690a8   rip = 0x00007f909d509fb7
[task 2020-02-10T16:03:01.922Z] 16:03:01     INFO -     Found by: call frame info
[task 2020-02-10T16:03:01.922Z] 16:03:01     INFO -  6  libxul.so!mozilla::ipc::MessageChannel::MessageTask::Run() [MessageChannel.cpp:bc441638df0c27d94b8ca17fa2dbfb8e936f2023 : 2007 + 0xc]
[task 2020-02-10T16:03:01.923Z] 16:03:01     INFO -     rbx = 0x00007f9096769050   rbp = 0x00007ffec74462e0
[task 2020-02-10T16:03:01.923Z] 16:03:01     INFO -     rsp = 0x00007ffec74462d0   r12 = 0x00007f9096769050
[task 2020-02-10T16:03:01.924Z] 16:03:01     INFO -     r13 = 0x0000000000000000   r14 = 0x00007f9097150f20
[task 2020-02-10T16:03:01.925Z] 16:03:01     INFO -     r15 = 0x00007f90adf93c00   rip = 0x00007f909d50a2de
[task 2020-02-10T16:03:01.925Z] 16:03:01     INFO -     Found by: call frame info
[task 2020-02-10T16:03:01.926Z] 16:03:01     INFO -  7  libxul.so!nsThread::ProcessNextEvent(bool, bool*) [nsThread.cpp:bc441638df0c27d94b8ca17fa2dbfb8e936f2023 : 1220 + 0xa]
[task 2020-02-10T16:03:01.926Z] 16:03:01     INFO -     rbx = 0x00007f90adf93cc0   rbp = 0x00007ffec74467f0
[task 2020-02-10T16:03:01.926Z] 16:03:01     INFO -     rsp = 0x00007ffec74462f0   r12 = 0x00007f9096769050
[task 2020-02-10T16:03:01.927Z] 16:03:01     INFO -     r13 = 0x0000000000000000   r14 = 0x0000000000000000
[task 2020-02-10T16:03:01.927Z] 16:03:01     INFO -     r15 = 0x00007f90adf93c00   rip = 0x00007f909cfe4a2e
[task 2020-02-10T16:03:01.927Z] 16:03:01     INFO -     Found by: call frame info
[task 2020-02-10T16:03:01.928Z] 16:03:01     INFO -  8  libxul.so!NS_ProcessNextEvent(nsIThread*, bool) [nsThreadUtils.cpp:bc441638df0c27d94b8ca17fa2dbfb8e936f2023 : 486 + 0xd]
[task 2020-02-10T16:03:01.928Z] 16:03:01     INFO -     rbx = 0x0000000000000001   rbp = 0x00007ffec7446820
[task 2020-02-10T16:03:01.928Z] 16:03:01     INFO -     rsp = 0x00007ffec7446800   r12 = 0x00007f90adf9ccb0
[task 2020-02-10T16:03:01.929Z] 16:03:01     INFO -     r13 = 0x00007f90adf9cc90   r14 = 0x00007ffec7446958
[task 2020-02-10T16:03:01.929Z] 16:03:01     INFO -     r15 = 0x0000000000000000   rip = 0x00007f909cfe7698
[task 2020-02-10T16:03:01.929Z] 16:03:01     INFO -     Found by: call frame info
[task 2020-02-10T16:03:01.929Z] 16:03:01     INFO -  9  libxul.so!mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate*) [MessagePump.cpp:bc441638df0c27d94b8ca17fa2dbfb8e936f2023 : 109 + 0xa]
[task 2020-02-10T16:03:01.930Z] 16:03:01     INFO -     rbx = 0x0000000000000000   rbp = 0x00007ffec7446860
[task 2020-02-10T16:03:01.930Z] 16:03:01     INFO -     rsp = 0x00007ffec7446830   r12 = 0x00007f90adf9ccb0
[task 2020-02-10T16:03:01.931Z] 16:03:01     INFO -     r13 = 0x00007f90adf9cc90   r14 = 0x00007ffec7446958
[task 2020-02-10T16:03:01.931Z] 16:03:01     INFO -     r15 = 0x0000000000000000   rip = 0x00007f909d50cb2f
[task 2020-02-10T16:03:01.931Z] 16:03:01     INFO -     Found by: call frame info
[task 2020-02-10T16:03:01.932Z] 16:03:01     INFO - 10  libxul.so!MessageLoop::Run() [message_loop.cc:bc441638df0c27d94b8ca17fa2dbfb8e936f2023 : 290 + 0xc]
[task 2020-02-10T16:03:01.932Z] 16:03:01     INFO -     rbx = 0x00007f9096770040   rbp = 0x00007ffec7446890
[task 2020-02-10T16:03:01.932Z] 16:03:01     INFO -     rsp = 0x00007ffec7446870   r12 = 0x00000aeaabc2883e
[task 2020-02-10T16:03:01.932Z] 16:03:01     INFO -     r13 = 0x00007ffec7447cf8   r14 = 0x00007f90adf93c00
[task 2020-02-10T16:03:01.933Z] 16:03:01     INFO -     r15 = 0x0000000000001f7b   rip = 0x00007f909d4ce096
[task 2020-02-10T16:03:01.933Z] 16:03:01     INFO -     Found by: call frame info
[task 2020-02-10T16:03:01.934Z] 16:03:01     INFO - 11  libxul.so!nsBaseAppShell::Run() [nsBaseAppShell.cpp:bc441638df0c27d94b8ca17fa2dbfb8e936f2023 : 137 + 0xd]
[task 2020-02-10T16:03:01.934Z] 16:03:01     INFO -     rbx = 0x00007f9096770040   rbp = 0x00007ffec74468b0
[task 2020-02-10T16:03:01.934Z] 16:03:01     INFO -     rsp = 0x00007ffec74468a0   r12 = 0x00000aeaabc2883e
[task 2020-02-10T16:03:01.934Z] 16:03:01     INFO -     r13 = 0x00007ffec7447cf8   r14 = 0x00007f90adf93c00
[task 2020-02-10T16:03:01.934Z] 16:03:01     INFO -     r15 = 0x0000000000001f7b   rip = 0x00007f909f5ed2c9
[task 2020-02-10T16:03:01.935Z] 16:03:01     INFO -     Found by: call frame info
[task 2020-02-10T16:03:01.935Z] 16:03:01     INFO - 12  libxul.so!XRE_RunAppShell() [nsEmbedFunctions.cpp:bc441638df0c27d94b8ca17fa2dbfb8e936f2023 : 943 + 0x6]
[task 2020-02-10T16:03:01.935Z] 16:03:01     INFO -     rbx = 0x00007f90adfed000   rbp = 0x00007ffec74468e0
[task 2020-02-10T16:03:01.936Z] 16:03:01     INFO -     rsp = 0x00007ffec74468c0   r12 = 0x00000aeaabc2883e
[task 2020-02-10T16:03:01.936Z] 16:03:01     INFO -     r13 = 0x00007ffec7447cf8   r14 = 0x0000000080004005
[task 2020-02-10T16:03:01.936Z] 16:03:01     INFO -     r15 = 0x0000000000001f7b   rip = 0x00007f90a07db964
[task 2020-02-10T16:03:01.937Z] 16:03:01     INFO -     Found by: call frame info
[task 2020-02-10T16:03:01.937Z] 16:03:01     INFO - 13  libxul.so!MessageLoop::Run() [message_loop.cc:bc441638df0c27d94b8ca17fa2dbfb8e936f2023 : 290 + 0xc]
[task 2020-02-10T16:03:01.937Z] 16:03:01     INFO -     rbx = 0x00007f90adfed000   rbp = 0x00007ffec7446910
[task 2020-02-10T16:03:01.937Z] 16:03:01     INFO -     rsp = 0x00007ffec74468f0   r12 = 0x00000aeaabc2883e
[task 2020-02-10T16:03:01.938Z] 16:03:01     INFO -     r13 = 0x00007ffec7447cf8   r14 = 0x0000000080004005
[task 2020-02-10T16:03:01.938Z] 16:03:01     INFO -     r15 = 0x0000000000001f7b   rip = 0x00007f909d4ce096
[task 2020-02-10T16:03:01.938Z] 16:03:01     INFO -     Found by: call frame info
[task 2020-02-10T16:03:01.938Z] 16:03:01     INFO - 14  libxul.so!XRE_InitChildProcess(int, char**, XREChildData const*) [nsEmbedFunctions.cpp:bc441638df0c27d94b8ca17fa2dbfb8e936f2023 : 778 + 0x5]
[task 2020-02-10T16:03:01.938Z] 16:03:01     INFO -     rbx = 0x00007f90adfed000   rbp = 0x00007ffec7446ba0
[task 2020-02-10T16:03:01.938Z] 16:03:01     INFO -     rsp = 0x00007ffec7446920   r12 = 0x00000aeaabc2883e
[task 2020-02-10T16:03:01.938Z] 16:03:01     INFO -     r13 = 0x00007ffec7447cf8   r14 = 0x0000000080004005
[task 2020-02-10T16:03:01.939Z] 16:03:01     INFO -     r15 = 0x0000000000001f7b   rip = 0x00007f90a07db7d1
[task 2020-02-10T16:03:01.939Z] 16:03:01     INFO -     Found by: call frame info
[task 2020-02-10T16:03:01.939Z] 16:03:01     INFO - 15  firefox-bin!main [nsBrowserApp.cpp:bc441638df0c27d94b8ca17fa2dbfb8e936f2023 : 303 + 0x32]
[task 2020-02-10T16:03:01.939Z] 16:03:01     INFO -     rbx = 0x00007f90adf02730   rbp = 0x00007ffec7447c10
[task 2020-02-10T16:03:01.940Z] 16:03:01     INFO -     rsp = 0x00007ffec7446bb0   r12 = 0x00000aeaabc2883e
[task 2020-02-10T16:03:01.940Z] 16:03:01     INFO -     r13 = 0x00007ffec7447cf8   r14 = 0x0000000000000013
[task 2020-02-10T16:03:01.941Z] 16:03:01     INFO -     r15 = 0x0000000000000000   rip = 0x000055c95ecb6eb5
[task 2020-02-10T16:03:01.941Z] 16:03:01     INFO -     Found by: call frame info
[task 2020-02-10T16:03:01.941Z] 16:03:01     INFO - 16  libc-2.23.so!__libc_start_main [libc-start.c : 291 + 0x1a]
[task 2020-02-10T16:03:01.942Z] 16:03:01     INFO -     rbx = 0x0000000000000000   rbp = 0x000055c95ed493c0
[task 2020-02-10T16:03:01.942Z] 16:03:01     INFO -     rsp = 0x00007ffec7447c20   r12 = 0x000055c95ecb6afc
[task 2020-02-10T16:03:01.942Z] 16:03:01     INFO -     r13 = 0x00007ffec7447cf0   r14 = 0x0000000000000000
[task 2020-02-10T16:03:01.943Z] 16:03:01     INFO -     r15 = 0x0000000000000000   rip = 0x00007f90ae14e830
[task 2020-02-10T16:03:01.943Z] 16:03:01     INFO -     Found by: call frame info
[task 2020-02-10T16:03:01.944Z] 16:03:01     INFO - 17  firefox-bin!_start + 0x29
[task 2020-02-10T16:03:01.944Z] 16:03:01     INFO -     rbx = 0x0000000000000000   rbp = 0x0000000000000000
[task 2020-02-10T16:03:01.944Z] 16:03:01     INFO -     rsp = 0x00007ffec7447ce0   r12 = 0x000055c95ecb6afc
[task 2020-02-10T16:03:01.945Z] 16:03:01     INFO -     r13 = 0x00007ffec7447cf0   r14 = 0x0000000000000000
[task 2020-02-10T16:03:01.945Z] 16:03:01     INFO -     r15 = 0x0000000000000000   rip = 0x000055c95ecb6b25
[task 2020-02-10T16:03:01.946Z] 16:03:01     INFO -     Found by: call frame info
[task 2020-02-10T16:03:01.946Z] 16:03:01     INFO - 
Summary: Assertion failure: parent, at /builds/worker/workspace/build/src/docshell/base/BrowsingContext.cpp:1264 → Assertion failure: parent, at /builds/worker/workspace/build/src/docshell/base/BrowsingContext.cpp:1264 in debug mode, crash [@ mozilla::dom::BrowsingContext::CreateFromIPC(...)] in opt mode

Bug 1582832 does fix a bunch of crashes like this, but we really need to change BrowsingContexts to be attached to WindowContexts to fix all of them. Right now, I think it's still possible to create a BrowsingContext for a frame in an inactive inner window and have it wind up attached to the wrong parent.

The priority flag is not set for this bug.
:kmag, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(kmaglione+bmo)

Closing as a duplicate of CreateFromIPC crash bug 1580565

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