Closed Bug 1902692 Opened 2 years ago Closed 1 year ago

Assertion failure: csp ? nsCSPContext::Equals(csp, aResult->mSharedState.Get()->mCsp)

Categories

(Core :: DOM: Security, defect, P3)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1991456
Tracking Status
firefox129 --- affected
firefox130 --- affected

People

(Reporter: gcp, Unassigned)

References

(Blocks 1 open bug, )

Details

(Keywords: assertion, pernosco, Whiteboard: [domsecurity-backlog])

Current m-c, fresh profile. Opened up the standard tiles and 2 or 3 articles from Pocket.

[1422863] Assertion failure: csp ? nsCSPContext::Equals(csp, aResult->mSharedState.Get()->mCsp) : !aResult->mSharedState.Get()->mCsp (We don't expect this to change!), at /home/morbo/hg/firefox/docshell/shistory/SessionHistoryEntry.cpp:1664
(gdb) bt
#0  0x0000791cec2e57f8 in __GI___clock_nanosleep
    (clock_id=clock_id@entry=0, flags=flags@entry=0, req=req@entry=0x7ffc0e4ca8b0, rem=rem@entry=0x7ffc0e4ca8b0)
    at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:78
#1  0x0000791cec2ea677 in __GI___nanosleep (req=req@entry=0x7ffc0e4ca8b0, rem=rem@entry=0x7ffc0e4ca8b0)
    at ../sysdeps/unix/sysv/linux/nanosleep.c:25
#2  0x0000791cec2ea5ae in __sleep (seconds=0) at ../sysdeps/posix/sleep.c:55
#3  0x0000791ce2fa9930 in common_crap_handler(int, void const*) (signum=11, aFirstFramePC=<optimized out>)
    at /home/morbo/hg/firefox/toolkit/xre/nsSigHandlers.cpp:100
#4  0x0000791ce2fa9a1d in ah_crap_handler(int) (signum=0) at /home/morbo/hg/firefox/toolkit/xre/nsSigHandlers.cpp:108
#5  0x0000791ce2f7c581 in nsProfileLock::FatalSignalHandler(int, siginfo_t*, void*)
    (signo=11, info=0x7ffc0e4cabb0, context=0x7ffc0e4caa80) at /home/morbo/hg/firefox/toolkit/profile/nsProfileLock.cpp:183
#6  0x0000791ce4589c62 in WasmTrapHandler(int, siginfo_t*, void*) (signum=11, info=0x7ffc0e4cabb0, context=0x7ffc0e4caa80)
    at /home/morbo/hg/firefox/js/src/wasm/WasmSignalHandlers.cpp:794
#7  0x0000791cec242520 in <signal handler called> () at /lib/x86_64-linux-gnu/libc.so.6
#8  mozilla::ipc::IPDLParamTraits<mozilla::dom::SessionHistoryInfo>::Read(IPC::MessageReader*, mozilla::ipc::IProtocol*, mozilla::dom::SessionHistoryInfo*) (aReader=0x7ffc0e4cc9d0, aActor=0x791cb1624e00, aResult=0x7ffc0e4cbb88)
    at /home/morbo/hg/firefox/docshell/shistory/SessionHistoryEntry.cpp:1661
#9  0x0000791ce179bed4 in IPC::ParamTraitsIPDLFallback<mozilla::dom::SessionHistoryInfo>::Read<mozilla::dom::SessionHistoryInfo>(IPC::MessageReader*, mozilla::dom::SessionHistoryInfo*) (reader=0x7ffc0e4cc9d0, r=0x7ffc0e4cbb88)
    at /home/morbo/hg/firefox/ipc/chromium/src/chrome/common/ipc_message_utils.h:702
#10 IPC::ReadParam<mozilla::dom::SessionHistoryInfo>(IPC::MessageReader*) (reader=reader@entry=0x7ffc0e4cc9d0)
    at /home/morbo/hg/firefox/ipc/chromium/src/chrome/common/ipc_message_utils.h:485
#11 0x0000791ce1763a20 in mozilla::dom::PContentParent::OnMessageReceived(IPC::Message const&)
    (this=0x791cb1624e00, msg__=<optimized out>) at /home/morbo/hg/firefox/obj-x86_64-pc-linux-gnu/ipc/ipdl/PContentParent.cpp:14046
#12 0x0000791cdd1ace6f in mozilla::ipc::MessageChannel::DispatchAsyncMessage(mozilla::ipc::ActorLifecycleProxy*, IPC::Message const&)
    (this=this@entry=0x791cb1624e88, aProxy=0x791caa112ee0, aMsg=...) at /home/morbo/hg/firefox/ipc/glue/MessageChannel.cpp:1820
#13 0x0000791cdd1aac71 in mozilla::ipc::MessageChannel::DispatchMessage(mozilla::ipc::ActorLifecycleProxy*, mozilla::UniquePtr<IPC::Message, mozilla::DefaultDelete<IPC::Message> >) (this=this@entry=0x791cb1624e88, aProxy=aProxy@entry=0x791caa112ee0, aMsg=...)
    at /home/morbo/hg/firefox/ipc/glue/MessageChannel.cpp:1739
#14 0x0000791cdd1ab55d in mozilla::ipc::MessageChannel::RunMessage(mozilla::ipc::ActorLifecycleProxy*, mozilla::ipc::MessageChannel::MessageTask&) (this=0x791cb1624e88, aProxy=0x791caa112ee0, aTask=...) at /home/morbo/hg/firefox/ipc/glue/MessageChannel.cpp:1530
#15 0x0000791cdd1ac1b0 in mozilla::ipc::MessageChannel::MessageTask::Run() (this=0x791cadc15600)
    at /home/morbo/hg/firefox/ipc/glue/MessageChannel.cpp:1630
#16 0x0000791cdc62f438 in mozilla::RunnableTask::Run() (this=0x791cadd0a300)
    at /home/morbo/hg/firefox/xpcom/threads/TaskController.cpp:580
#17 0x0000791cdc62171f in mozilla::TaskController::DoExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&) (this=this@entry=0x791cec020500, aProofOfLock=...) at /home/morbo/hg/firefox/xpcom/threads/TaskController.cpp:907
#18 0x0000791cdc61fe38 in mozilla::TaskController::ExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&) (this=this@entry=0x791cec020500, aProofOfLock=...) at /home/morbo/hg/firefox/xpcom/threads/TaskController.cpp:730
#19 0x0000791cdc6202b6 in mozilla::TaskController::ProcessPendingMTTask(bool) (this=0x791cec020500, aMayWait=true)
    at /home/morbo/hg/firefox/xpcom/threads/TaskController.cpp:516
#20 0x0000791cdc6260fa in mozilla::TaskController::TaskController()::$_1::operator()() const (this=<optimized out>)
    at /home/morbo/hg/firefox/xpcom/threads/TaskController.cpp:237
#21 mozilla::detail::RunnableFunction<mozilla::TaskController::TaskController()::$_1>::Run() (this=<optimized out>)
    at /home/morbo/hg/firefox/xpcom/threads/nsThreadUtils.h:548
#22 0x0000791cdc646b87 in nsThread::ProcessNextEvent(bool, bool*)
    (this=0x791cec05b200, aMayWait=<optimized out>, aResult=0x7ffc0e4cd5af) at /home/morbo/hg/firefox/xpcom/threads/nsThread.cpp:1204
#23 0x0000791cdc64d590 in NS_ProcessNextEvent(nsIThread*, bool) (aThread=0x791cec41ca60 <_IO_stdfile_2_lock>, 
    aThread@entry=0x791cec05b200, aMayWait=true) at /home/morbo/hg/firefox/xpcom/threads/nsThreadUtils.cpp:480
#24 0x0000791cdd1b0f11 in mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate*) (this=0x791cd6d3f280, aDelegate=0x791cd6d736a0)
    at /home/morbo/hg/firefox/ipc/glue/MessagePump.cpp:107
#25 0x0000791cdd0e976d in MessageLoop::RunHandler() (this=0x791cec41ca60 <_IO_stdfile_2_lock>)
    at /home/morbo/hg/firefox/ipc/chromium/src/base/message_loop.cc:363
#26 MessageLoop::Run() (this=0x791cec41ca60 <_IO_stdfile_2_lock>) at /home/morbo/hg/firefox/ipc/chromium/src/base/message_loop.cc:345
#27 0x0000791ce1e24ba9 in nsBaseAppShell::Run() (this=0x791cd68c7a00) at /home/morbo/hg/firefox/widget/nsBaseAppShell.cpp:148
#28 0x0000791ce1ee8193 in nsAppShell::Run() (this=0x791cd68c7a00) at /home/morbo/hg/firefox/widget/gtk/nsAppShell.cpp:469
#29 0x0000791ce2dfab55 in nsAppStartup::Run() (this=0x791cd68b7880)
--Type <RET> for more, q to quit, c to continue without paging--
    at /home/morbo/hg/firefox/toolkit/components/startup/nsAppStartup.cpp:296
#30 0x0000791ce2f9efb9 in XREMain::XRE_mainRun() (this=this@entry=0x7ffc0e4cd8d0)
    at /home/morbo/hg/firefox/toolkit/xre/nsAppRunner.cpp:5780
#31 0x0000791ce2fa0380 in XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&)
    (this=this@entry=0x7ffc0e4cd8d0, argc=argc@entry=4, argv=argv@entry=0x7ffc0e4cebc8, aConfig=...)
    at /home/morbo/hg/firefox/toolkit/xre/nsAppRunner.cpp:5992
#32 0x0000791ce2fa0fe0 in XRE_main(int, char**, mozilla::BootstrapConfig const&) (argc=4, argv=0x7ffc0e4cebc8, aConfig=...)
    at /home/morbo/hg/firefox/toolkit/xre/nsAppRunner.cpp:6049
#33 0x00005dbeddc66dcb in do_main(int, char**, char**) (argc=4, argv=0x7ffc0e4cebc8, envp=<optimized out>)
    at /home/morbo/hg/firefox/browser/app/nsBrowserApp.cpp:230
#34 main(int, char**, char**) (argc=4, argv=0x7ffc0e4cebc8, envp=<optimized out>)
    at /home/morbo/hg/firefox/browser/app/nsBrowserApp.cpp:448

The Bugbug bot thinks this bug should belong to the 'Core::DOM: Security' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: General → DOM: Security

Tom, is this something you can take a look at?

Severity: -- → S3
Priority: -- → P3
Whiteboard: [domsecurity-backlog]
Flags: needinfo?(tschuster)

This code was introduced by bug 1659991.

Flags: needinfo?(tschuster)
Flags: needinfo?(tschuster)

Do you maybe have a bit more specific STR? I can't reproduce this, but I also probably get different tiles because of my geo location (DE).
Did you open the tiles in a background tab or did just go forward and backward between about:newtab?

Flags: needinfo?(tschuster) → needinfo?(gpascutto)

Would've almost certainly been right click->open link in new tab.

Flags: needinfo?(gpascutto)

FWIW I don't have any concrete STR either, I was just trying to run a debug build to look at another issue when it crashed due to the above.

Flags: needinfo?(tschuster)

This bug is marked as affecting Firefox 129 and marked as tracked for this very release cycle, but is that actually true given it's an assertion failure? What other symptoms are we seeing?

This doesn't seem very critical to me at least, and I can't reproduce it. Peter what do you think?

Flags: needinfo?(tschuster) → needinfo?(peterv)

It's not obvious to me what the impact is of when this changes even if we don't expect it to but maybe a MOZ_DIAGNOSTIC_ASSERT would be good?

Assignee: nobody → peterv
Status: NEW → ASSIGNED
Flags: needinfo?(peterv)

This was detected via live site testing.

A Pernosco session is available here: https://pernos.co/debug/zSKOFVZo2kBbxicL2jAj8A/index.html

Assignee: peterv → nobody
Status: ASSIGNED → NEW

This changed signatures after we replaced nsCSPContext::Equals with PolicyContainer::Equals.

Status: NEW → RESOLVED
Closed: 1 year ago
Duplicate of bug: 1991456
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.