Closed
Bug 1832432
Opened 2 years ago
Closed 2 years ago
Assertion failure: false (Receiving unexpected Principal) at dom/ipc/ContentParent.cpp:1333 , when loading bugzilla attachment in debug build (due to redirect?)
Categories
(Core :: Layout, defect)
Core
Layout
Tracking
()
RESOLVED
DUPLICATE
of bug 1758161
People
(Reporter: dholbert, Unassigned)
Details
(Keywords: assertion)
STR:
- Start a Firefox debug build with the layout debugger, visiting a bugzilla.mozilla.org attachment URL, like so:
./mach run --layoutdebug https://bugzilla.mozilla.org/attachment.cgi?id=267261
(or Tools | Layout Debugger from a regular window in a debug build, and then paste https://bugzilla.mozilla.org/attachment.cgi?id=267261 into the debugger URLbar and hit enter)
ACTUAL RESULTS:
Fatal assertion:
Assertion failure: false (Receiving unexpected Principal), at /scratch/work/builds/mozilla-central/mozilla/dom/ipc/ContentParent.cpp:1333
#01: mozilla::dom::ContentParent::LogAndAssertFailedPrincipalValidationInfo(nsIPrincipal*, char const*) (/scratch/work/builds/mozilla-central/mozilla/dom/ipc/ContentParent.cpp:1333)
#02: mozilla::dom::BrowserParent::RecvNewWindowGlobal(mozilla::ipc::ManagedEndpoint<mozilla::dom::PWindowGlobalParent>&&, mozilla::dom::WindowGlobalInit const&) (/scratch/work/builds/mozilla-central/mozilla/dom/ipc/BrowserParent.cpp:0)
#03: mozilla::dom::PBrowserParent::OnMessageReceived(IPC::Message const&) (/scratch/work/builds/mozilla-central/obj-debug-opt/ipc/ipdl/PBrowserParent.cpp:0)
#04: mozilla::dom::PContentParent::OnMessageReceived(IPC::Message const&) (/scratch/work/builds/mozilla-central/obj-debug-opt/ipc/ipdl/PContentParent.cpp:6689)
#05: mozilla::ipc::MessageChannel::DispatchAsyncMessage(mozilla::ipc::ActorLifecycleProxy*, IPC::Message const&) (/scratch/work/builds/mozilla-central/mozilla/ipc/glue/MessageChannel.cpp:1800)
#06: mozilla::ipc::MessageChannel::DispatchMessage(mozilla::ipc::ActorLifecycleProxy*, mozilla::UniquePtr<IPC::Message, mozilla::DefaultDelete<IPC::Message> >) (/scratch/work/builds/mozilla-central/mozilla/ipc/glue/MessageChannel.cpp:0)
#07: mozilla::ipc::MessageChannel::RunMessage(mozilla::ipc::ActorLifecycleProxy*, mozilla::ipc::MessageChannel::MessageTask&) (/scratch/work/builds/mozilla-central/mozilla/ipc/glue/MessageChannel.cpp:1525)
#08: mozilla::ipc::MessageChannel::MessageTask::Run() (/scratch/work/builds/mozilla-central/mozilla/ipc/glue/MessageChannel.cpp:1632)
#09: mozilla::RunnableTask::Run() (/scratch/work/builds/mozilla-central/mozilla/xpcom/threads/TaskController.cpp:556)
#10: mozilla::TaskController::DoExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&) (/scratch/work/builds/mozilla-central/mozilla/xpcom/threads/TaskController.cpp:879)
#11: mozilla::TaskController::ExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&) (/scratch/work/builds/mozilla-central/mozilla/xpcom/threads/TaskController.cpp:702)
#12: mozilla::TaskController::ProcessPendingMTTask(bool) (/scratch/work/builds/mozilla-central/mozilla/xpcom/threads/TaskController.cpp:491)
#13: mozilla::detail::RunnableFunction<mozilla::TaskController::TaskController()::$_1>::Run() (/scratch/work/builds/mozilla-central/mozilla/xpcom/threads/nsThreadUtils.h:549)
#14: nsThread::ProcessNextEvent(bool, bool*) (/scratch/work/builds/mozilla-central/mozilla/xpcom/threads/nsThread.cpp:0)
#15: NS_ProcessNextEvent(nsIThread*, bool) (/scratch/work/builds/mozilla-central/mozilla/xpcom/threads/nsThreadUtils.cpp:479)
#16: mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate*) (/scratch/work/builds/mozilla-central/mozilla/ipc/glue/MessagePump.cpp:0)
#17: MessageLoop::Run() (/scratch/work/builds/mozilla-central/mozilla/ipc/chromium/src/base/message_loop.cc:345)
#18: nsBaseAppShell::Run() (/scratch/work/builds/mozilla-central/mozilla/widget/nsBaseAppShell.cpp:150)
#19: nsAppStartup::Run() (/scratch/work/builds/mozilla-central/mozilla/toolkit/components/startup/nsAppStartup.cpp:296)
#20: XREMain::XRE_mainRun() (/scratch/work/builds/mozilla-central/mozilla/toolkit/xre/nsAppRunner.cpp:5657)
#21: XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) (/scratch/work/builds/mozilla-central/mozilla/toolkit/xre/nsAppRunner.cpp:5857)
#22: XRE_main(int, char**, mozilla::BootstrapConfig const&) (/scratch/work/builds/mozilla-central/mozilla/toolkit/xre/nsAppRunner.cpp:5913)
#23: main (/scratch/work/builds/mozilla-central/mozilla/browser/app/nsBrowserApp.cpp:445)
#24: ??? (/lib/x86_64-linux-gnu/libc.so.6 + 0x29d90)
#25: __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6 + 0x29e40)
#26: ??? (/scratch/work/builds/mozilla-central/obj-debug-opt/dist/bin/firefox + 0x41d39)
#27: ??? (???:???)
Program /scratch/work/builds/mozilla-central/obj-debug-opt/dist/bin/firefox (pid = 816546) received signal 11.
Stack:
#01: nsProfileLock::FatalSignalHandler(int, siginfo_t*, void*) (/scratch/work/builds/mozilla-central/mozilla/toolkit/profile/nsProfileLock.cpp:188)
#02: WasmTrapHandler(int, siginfo_t*, void*) (/scratch/work/builds/mozilla-central/mozilla/js/src/wasm/WasmSignalHandlers.cpp:0)
#03: ??? (/lib/x86_64-linux-gnu/libc.so.6 + 0x42520)
#04: mozilla::dom::ContentParent::LogAndAssertFailedPrincipalValidationInfo(nsIPrincipal*, char const*) (/scratch/work/builds/mozilla-central/mozilla/dom/ipc/ContentParent.cpp:1333)
#05: mozilla::dom::BrowserParent::RecvNewWindowGlobal(mozilla::ipc::ManagedEndpoint<mozilla::dom::PWindowGlobalParent>&&, mozilla::dom::WindowGlobalInit const&) (/scratch/work/builds/mozilla-central/mozilla/dom/ipc/BrowserParent.cpp:0)
#06: mozilla::dom::PBrowserParent::OnMessageReceived(IPC::Message const&) (/scratch/work/builds/mozilla-central/obj-debug-opt/ipc/ipdl/PBrowserParent.cpp:0)
#07: mozilla::dom::PContentParent::OnMessageReceived(IPC::Message const&) (/scratch/work/builds/mozilla-central/obj-debug-opt/ipc/ipdl/PContentParent.cpp:6689)
#08: mozilla::ipc::MessageChannel::DispatchAsyncMessage(mozilla::ipc::ActorLifecycleProxy*, IPC::Message const&) (/scratch/work/builds/mozilla-central/mozilla/ipc/glue/MessageChannel.cpp:1800)
#09: mozilla::ipc::MessageChannel::DispatchMessage(mozilla::ipc::ActorLifecycleProxy*, mozilla::UniquePtr<IPC::Message, mozilla::DefaultDelete<IPC::Message> >) (/scratch/work/builds/mozilla-central/mozilla/ipc/glue/MessageChannel.cpp:0)
#10: mozilla::ipc::MessageChannel::RunMessage(mozilla::ipc::ActorLifecycleProxy*, mozilla::ipc::MessageChannel::MessageTask&) (/scratch/work/builds/mozilla-central/mozilla/ipc/glue/MessageChannel.cpp:1525)
#11: mozilla::ipc::MessageChannel::MessageTask::Run() (/scratch/work/builds/mozilla-central/mozilla/ipc/glue/MessageChannel.cpp:1632)
#12: mozilla::RunnableTask::Run() (/scratch/work/builds/mozilla-central/mozilla/xpcom/threads/TaskController.cpp:556)
#13: mozilla::TaskController::DoExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&) (/scratch/work/builds/mozilla-central/mozilla/xpcom/threads/TaskController.cpp:879)
#14: mozilla::TaskController::ExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&) (/scratch/work/builds/mozilla-central/mozilla/xpcom/threads/TaskController.cpp:702)
#15: mozilla::TaskController::ProcessPendingMTTask(bool) (/scratch/work/builds/mozilla-central/mozilla/xpcom/threads/TaskController.cpp:491)
#16: mozilla::detail::RunnableFunction<mozilla::TaskController::TaskController()::$_1>::Run() (/scratch/work/builds/mozilla-central/mozilla/xpcom/threads/nsThreadUtils.h:549)
#17: nsThread::ProcessNextEvent(bool, bool*) (/scratch/work/builds/mozilla-central/mozilla/xpcom/threads/nsThread.cpp:0)
#18: NS_ProcessNextEvent(nsIThread*, bool) (/scratch/work/builds/mozilla-central/mozilla/xpcom/threads/nsThreadUtils.cpp:479)
#19: mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate*) (/scratch/work/builds/mozilla-central/mozilla/ipc/glue/MessagePump.cpp:0)
#20: MessageLoop::Run() (/scratch/work/builds/mozilla-central/mozilla/ipc/chromium/src/base/message_loop.cc:345)
#21: nsBaseAppShell::Run() (/scratch/work/builds/mozilla-central/mozilla/widget/nsBaseAppShell.cpp:150)
#22: nsAppStartup::Run() (/scratch/work/builds/mozilla-central/mozilla/toolkit/components/startup/nsAppStartup.cpp:296)
#23: XREMain::XRE_mainRun() (/scratch/work/builds/mozilla-central/mozilla/toolkit/xre/nsAppRunner.cpp:5657)
#24: XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) (/scratch/work/builds/mozilla-central/mozilla/toolkit/xre/nsAppRunner.cpp:5857)
#25: XRE_main(int, char**, mozilla::BootstrapConfig const&) (/scratch/work/builds/mozilla-central/mozilla/toolkit/xre/nsAppRunner.cpp:5913)
#26: main (/scratch/work/builds/mozilla-central/mozilla/browser/app/nsBrowserApp.cpp:445)
#27: ??? (/lib/x86_64-linux-gnu/libc.so.6 + 0x29d90)
#28: __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6 + 0x29e40)
#29: ??? (/scratch/work/builds/mozilla-central/obj-debug-opt/dist/bin/firefox + 0x41d39)
#30: ??? (???:???)
Sleeping for 300 seconds.
I think this has to do with the redirect to the *.bmoattachments.org
URL. If I visit that final URL ( https://bug216418.bmoattachments.org/attachment.cgi?id=267261 ) directly, then I don't get the fatal assertion.
For now I'm assuming this is a bug in the layout debugger, hence filing under Layout.
Reporter | ||
Comment 1•2 years ago
|
||
I can reproduce this in a debug build from a year ago (2022-05-11), the oldest that mozregression will offer me; so, this isn't a recent regression.
Reporter | ||
Comment 2•2 years ago
|
||
ah, this is a dupe of bug 1758161.
You need to log in
before you can comment on or make changes to this bug.
Description
•