Closed Bug 2038231 Opened 6 months ago Closed 6 months ago

Assertion failure: false (MOZ_ASSERT_UNREACHABLE: Shoud not be called), at checkouts/gecko/netwerk/protocol/http/HappyEyeballsTransaction.cpp:109

Categories

(Core :: Networking: HTTP, defect, P1)

defect

Tracking

()

RESOLVED FIXED
152 Branch
Tracking Status
firefox-esr140 --- unaffected
firefox150 --- unaffected
firefox151 --- unaffected
firefox152 --- fixed

People

(Reporter: tsmith, Assigned: kershaw)

References

(Blocks 1 open bug, Regression, )

Details

(Keywords: assertion, pernosco, regression, Whiteboard: [necko-triaged])

Attachments

(1 external file)

Found with m-c 20260508-9cb3c3b44e2a (--enable-debug)

This was found by visiting a live website with a debug build.

STR:

  • Launch browser and visit site

This issue was triggered by visiting http://rainberrytv.com/. I have not been able to reproduce the issue. A Pernosco session is available here: https://pernos.co/debug/CPuNQC4EEZ_av9Emy3W7vw/index.html

Assertion failure: false (MOZ_ASSERT_UNREACHABLE: Shoud not be called), at checkouts/gecko/netwerk/protocol/http/HappyEyeballsTransaction.cpp:109

27|0|libxul.so|mozilla::net::HappyEyeballsTransaction::WriteSegments(mozilla::net::nsAHttpSegmentWriter*, unsigned int, unsigned int*)|git:github.com/mozilla-firefox/firefox:netwerk/protocol/http/HappyEyeballsTransaction.cpp:3dd27643a077e21abdc994e09e34ab87b726b131|109|0x34
27|1|libxul.so|mozilla::net::nsHttpConnection::OnSocketReadable()|git:github.com/mozilla-firefox/firefox:netwerk/protocol/http/nsHttpConnection.cpp:3dd27643a077e21abdc994e09e34ab87b726b131|1963|0x160
27|2|libxul.so|mozilla::net::nsHttpConnection::OnInputStreamReady(nsIAsyncInputStream*)|git:github.com/mozilla-firefox/firefox:netwerk/protocol/http/nsHttpConnection.cpp:3dd27643a077e21abdc994e09e34ab87b726b131|2311|0x97
27|3|libxul.so|mozilla::net::nsSocketInputStream::OnSocketReady(nsresult)|git:github.com/mozilla-firefox/firefox:netwerk/base/nsSocketTransport2.cpp:3dd27643a077e21abdc994e09e34ab87b726b131|300|0xea
27|4|libxul.so|mozilla::net::nsSocketTransport::OnSocketReady(PRFileDesc*, short)|git:github.com/mozilla-firefox/firefox:netwerk/base/nsSocketTransport2.cpp:3dd27643a077e21abdc994e09e34ab87b726b131|2178|0xc0
27|5|libxul.so|mozilla::net::nsSocketTransportService::DoPollIteration()|git:github.com/mozilla-firefox/firefox:netwerk/base/nsSocketTransportService2.cpp:3dd27643a077e21abdc994e09e34ab87b726b131||0x5e6
27|6|libxul.so|mozilla::net::nsSocketTransportService::Run()|git:github.com/mozilla-firefox/firefox:netwerk/base/nsSocketTransportService2.cpp:3dd27643a077e21abdc994e09e34ab87b726b131|1208|0x31d
27|7|libxul.so|{virtual override thunk({offset(-32)}, mozilla::net::nsSocketTransportService::Run())}|git:github.com/mozilla-firefox/firefox:netwerk/base/nsSocketTransportService2.cpp:3dd27643a077e21abdc994e09e34ab87b726b131||0xc
27|8|libxul.so|nsThread::ProcessNextEvent(bool, bool*)|git:github.com/mozilla-firefox/firefox:xpcom/threads/nsThread.cpp:3dd27643a077e21abdc994e09e34ab87b726b131|1173|0x7b0
27|9|libxul.so|NS_ProcessNextEvent(nsIThread*, bool)|git:github.com/mozilla-firefox/firefox:xpcom/threads/nsThreadUtils.cpp:3dd27643a077e21abdc994e09e34ab87b726b131|472|0x4f
27|10|libxul.so|mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*)|git:github.com/mozilla-firefox/firefox:ipc/glue/MessagePump.cpp:3dd27643a077e21abdc994e09e34ab87b726b131|297|0xc6
27|11|libxul.so|MessageLoop::Run()|git:github.com/mozilla-firefox/firefox:ipc/chromium/src/base/message_loop.cc:3dd27643a077e21abdc994e09e34ab87b726b131|346|0x61
27|12|libxul.so|nsThread::ThreadFunc(void*)|git:github.com/mozilla-firefox/firefox:xpcom/threads/nsThread.cpp:3dd27643a077e21abdc994e09e34ab87b726b131|374|0x157
27|13|libnss3.so|_pt_root|git:github.com/mozilla-firefox/firefox:nsprpub/pr/src/pthreads/ptthread.c:3dd27643a077e21abdc994e09e34ab87b726b131|190|0x18f
27|14|libmozglue.so|set_alt_signal_stack_and_start(PthreadCreateParams*)|git:github.com/mozilla-firefox/firefox:mozglue/interposers/pthread_create_interposer.cpp:3dd27643a077e21abdc994e09e34ab87b726b131|81|0xd4
Flags: needinfo?(kershaw)
Keywords: regression
Regressed by: 2025276

Set release status flags based on info from the regressing bug 2025276

Assignee: nobody → kershaw
Severity: -- → S3
Flags: needinfo?(kershaw)
Priority: -- → P1
Whiteboard: [necko-triaged]

When TryDispatchTransactionOnIdleConn steals a pending transaction while a Happy Eyeballs race has already entered 0-RTT, Finish0RTT finds that the real transaction has been closed and returns silently. This leaves HappyEyeballsTransaction in the Racing state on a live connection. The next socket callback then hits the WriteSegments MOZ_ASSERT_UNREACHABLE.

Pushed by kjang@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/d1ec515b038a https://hg.mozilla.org/integration/autoland/rev/97035d362e47 Fix Happy Eyeballs 0-RTT crash when transaction is dispatched to idle conn, r=necko-reviewers,jesup
Status: NEW → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 152 Branch
QA Whiteboard: [qa-ver-opt-c153/b152][qa-triage-done-c153/b152]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: