Bug: Assert on a debug build when trying to setup an account with a gmail-backed non-gmail domain.
Status: NEW
Priority: P3
Created: 2022-02-02 17:48:37+00:00
Resolved: 2022-11-27 14:38:15+00:00

Open a clean debug central build. Try to set up a gmail account with `emiliocobos [at] usal.es`, for example. When the login window opens it crashes in LogAndAssertFailedPrincipalValidationInfo as follows:

```
#0  0x00007f9b98596125 in __GI___clock_nanosleep (clock_id=clock_id@entry=0, flags=flags@entry=0, req=req@entry=0x7ffecca837c0, rem=rem@entry=0x7ffecca837c0) at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:48
#1  0x00007f9b9859a987 in __GI___nanosleep (req=req@entry=0x7ffecca837c0, rem=rem@entry=0x7ffecca837c0) at ../sysdeps/unix/sysv/linux/nanosleep.c:25
#2  0x00007f9b9859a8be in __sleep (seconds=0) at ../sysdeps/posix/sleep.c:55
#3  0x00007f9b8fef7b7b in common_crap_handler(int, void const*) (signum=11, aFirstFramePC=<optimized out>) at /home/emilio/src/moz/mozilla-unified/toolkit/xre/nsSigHandlers.cpp:95
#4  0x00007f9b8fef7c5b in ah_crap_handler(int) (signum=0) at /home/emilio/src/moz/mozilla-unified/toolkit/xre/nsSigHandlers.cpp:103
#5  0x00007f9b8fed80ae in nsProfileLock::FatalSignalHandler(int, siginfo_t*, void*) (signo=11, info=0x7ffecca83ab0, context=0x7ffecca83980) at /home/emilio/src/moz/mozilla-unified/toolkit/profile/nsProfileLock.cpp:183
#6  0x00007f9b914dbda8 in WasmTrapHandler(int, siginfo_t*, void*) (signum=11, info=0x7ffecca83ab0, context=<optimized out>) at /home/emilio/src/moz/mozilla-unified/js/src/wasm/WasmSignalHandlers.cpp:873
#7  0x00007f9b984fbae0 in <signal handler called> () at /lib64/libc.so.6
#8  mozilla::dom::ContentParent::LogAndAssertFailedPrincipalValidationInfo(nsIPrincipal*, char const*) (aPrincipal=0x7f9b417ea700, aMethod=0x7f9b87fe19a4 "RecvNewWindowGlobal")
    at /home/emilio/src/moz/mozilla-unified/dom/ipc/ContentParent.cpp:1331
#9  0x00007f9b8e36ad0e in mozilla::dom::BrowserParent::RecvNewWindowGlobal(mozilla::ipc::ManagedEndpoint<mozilla::dom::PWindowGlobalParent>&&, mozilla::dom::WindowGlobalInit const&) (this=0x7f9b3c513700, aEndpoint=..., aInit=...)
    at /home/emilio/src/moz/mozilla-unified/dom/ipc/BrowserParent.cpp:1398
#10 0x00007f9b8bfdce94 in mozilla::dom::PBrowserParent::OnMessageReceived(IPC::Message const&) (this=0x7f9b3c513700, msg__=...) at PBrowserParent.cpp:6547
#11 0x00007f9b8bcd6e7a in mozilla::dom::PContentParent::OnMessageReceived(IPC::Message const&) (this=<optimized out>, msg__=...) at PContentParent.cpp:6489
#12 0x00007f9b8bbaac90 in mozilla::ipc::MessageChannel::DispatchAsyncMessage(mozilla::ipc::ActorLifecycleProxy*, IPC::Message const&) (this=this@entry=0x7f9b3c513288, aProxy=aProxy@entry=0x7f9b3f093b80, aMsg=...)
    at /home/emilio/src/moz/mozilla-unified/ipc/glue/MessageChannel.cpp:1658
#13 0x00007f9b8bbaa10e in mozilla::ipc::MessageChannel::DispatchMessage(IPC::Message&&) (this=this@entry=0x7f9b3c513288, aMsg=...) at /home/emilio/src/moz/mozilla-unified/ipc/glue/MessageChannel.cpp:1583
#14 0x00007f9b8bbaa441 in mozilla::ipc::MessageChannel::RunMessage(mozilla::ipc::MessageChannel::MessageTask&) (this=0x7f9b3c513288, aTask=...) at /home/emilio/src/moz/mozilla-unified/ipc/glue/MessageChannel.cpp:1452
#15 0x00007f9b8bbaa77f in mozilla::ipc::MessageChannel::MessageTask::Run() (this=0x7f9b3e130700) at /home/emilio/src/moz/mozilla-unified/ipc/glue/MessageChannel.cpp:1480
#16 0x00007f9b8b43ca25 in mozilla::RunnableTask::Run() (this=0x7f9b40dfbd80) at /home/emilio/src/moz/mozilla-unified/xpcom/threads/TaskController.cpp:467
#17 0x00007f9b8b423021 in mozilla::TaskController::DoExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&) (this=<optimized out>, this@entry=0x7f9b7701d200, aProofOfLock=...)
    at /home/emilio/src/moz/mozilla-unified/xpcom/threads/TaskController.cpp:770
#18 0x00007f9b8b4221f7 in mozilla::TaskController::ExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&) (this=this@entry=0x7f9b7701d200, aProofOfLock=...)
    at /home/emilio/src/moz/mozilla-unified/xpcom/threads/TaskController.cpp:606
#19 0x00007f9b8b422423 in mozilla::TaskController::ProcessPendingMTTask(bool) (this=0x7f9b7701d200, aMayWait=true) at /home/emilio/src/moz/mozilla-unified/xpcom/threads/TaskController.cpp:390
#20 0x00007f9b8b436ed6 in mozilla::TaskController::InitializeInternal()::$_1::operator()() const (this=<optimized out>) at /home/emilio/src/moz/mozilla-unified/xpcom/threads/TaskController.cpp:127
#21 mozilla::detail::RunnableFunction<mozilla::TaskController::InitializeInternal()::$_1>::Run() (this=<optimized out>) at /home/emilio/src/moz/mozilla-unified/obj-debug/dist/include/nsThreadUtils.h:531
#22 0x00007f9b8b42e730 in nsThread::ProcessNextEvent(bool, bool*) (this=0x7f9b982ada40, aMayWait=false, aResult=0x7ffecca85e07) at /home/emilio/src/moz/mozilla-unified/xpcom/threads/nsThread.cpp:1195
#23 0x00007f9b8b4327f2 in NS_ProcessNextEvent(nsIThread*, bool) (aThread=0x7f9b986b3540 <_IO_stdfile_2_lock>, aThread@entry=0x7f9b982ada40, aMayWait=true) at /home/emilio/src/moz/mozilla-unified/xpcom/threads/nsThreadUtils.cpp:467
#24 0x00007f9b8bbacb0b in mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate*) (this=0x7f9b7706de00, aDelegate=0x7f9b982322e0) at /home/emilio/src/moz/mozilla-unified/ipc/glue/MessagePump.cpp:107
#25 0x00007f9b8bb24d5f in MessageLoop::RunInternal() (this=this@entry=0x7f9b982322e0) at /home/emilio/src/moz/mozilla-unified/ipc/chromium/src/base/message_loop.cc:331
#26 0x00007f9b8bb24caf in MessageLoop::RunHandler() (this=0x7f9b982322e0) at /home/emilio/src/moz/mozilla-unified/ipc/chromium/src/base/message_loop.cc:324
#27 MessageLoop::Run() (this=0x7f9b982322e0) at /home/emilio/src/moz/mozilla-unified/ipc/chromium/src/base/message_loop.cc:306
```