Update ODoHConfig when the TTL expires
Categories
(Core :: Networking: DNS, task, P2)
Tracking
()
People
(Reporter: kershaw, Assigned: kershaw)
References
Details
(Whiteboard: [necko-triaged])
Attachments
(2 files)
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
jcristau
:
approval-mozilla-beta+
|
Details |
Assignee | ||
Comment 1•4 years ago
|
||
Depends on D106074
Updated•4 years ago
|
Assignee | ||
Comment 2•4 years ago
|
||
Just hit an assertion (Assertion failure: mTrrA, at /builds/worker/checkouts/gecko/netwerk/dns/TRRQuery.cpp:183
) on try.
Looking at the log below, here is what happened.
- We dispatch an
ODoH
request here. - This request failed very quickly since there is no valid
ODoHConfig
to use. - This lock in
TRRQuery::CompleteLookup
is acquired before this one. At this pointmTrrA
is not assigned yet, so we hit this assertion.
[task 2021-02-24T08:51:17.990Z] 08:51:17 INFO - netwerk/test/unit/test_odoh.js | Starting testODoHConfig7
[task 2021-02-24T08:51:17.990Z] 08:51:17 INFO - (xpcshell/head.js) | test testODoHConfig7 pending (2)
[task 2021-02-24T08:51:17.990Z] 08:51:17 INFO - PID 3148 | [Parent 3148: Main Thread]: D/nsHostResolver TRR::Observe() topic=nsPref:changed
[task 2021-02-24T08:51:17.990Z] 08:51:17 INFO - PID 3148 | [Parent 3148: Main Thread]: D/nsHostResolver TRR::Observe() topic=nsPref:changed
[task 2021-02-24T08:51:17.990Z] 08:51:17 INFO - PID 3148 | [Parent 3148: Main Thread]: D/nsHostResolver Resolving host [bar.example.com]<> type 0. [this=0x7f02aa47e0e0]
[task 2021-02-24T08:51:17.990Z] 08:51:17 INFO - PID 3148 | [Parent 3148: Main Thread]: D/nsHostResolver No usable record in cache for host [bar.example.com] type 0.
[task 2021-02-24T08:51:17.991Z] 08:51:17 INFO - PID 3148 | [Parent 3148: Main Thread]: D/nsHostResolver NameLookup host:bar.example.com af:0
[task 2021-02-24T08:51:17.992Z] 08:51:17 INFO - PID 3148 | [Parent 3148: Main Thread]: D/nsHostResolver NameLookup: bar.example.com effectiveTRRmode: 2 flags: 0
[task 2021-02-24T08:51:17.992Z] 08:51:17 INFO - PID 3148 | [Parent 3148: Main Thread]: D/nsHostResolver TrrLookup host:bar.example.com af:0
[task 2021-02-24T08:51:17.993Z] 08:51:17 INFO - PID 3148 | [Parent 3148: Main Thread]: D/nsHostResolver TRRService::Enabled mConfirmation.mState=2 mCaptiveIsPassed=0
[task 2021-02-24T08:51:17.994Z] 08:51:17 INFO - PID 3148 | [Parent 3148: Main Thread]: D/nsHostResolver TRR Resolve bar.example.com type 1
[task 2021-02-24T08:51:17.994Z] 08:51:17 INFO - PID 3148 | [Parent 3148: TRR Background]: D/nsHostResolver TRR::SendHTTPRequest resolve bar.example.com type 1
[task 2021-02-24T08:51:17.995Z] 08:51:17 INFO - PID 3148 | Assertion failure: mTrrA, at /builds/worker/checkouts/gecko/netwerk/dns/TRRQuery.cpp:183
[task 2021-02-24T08:51:17.996Z] 08:51:17 INFO - PID 3148 | #01: mozilla::net::TRR::FailData(nsresult) [netwerk/dns/TRR.cpp:751]
[task 2021-02-24T08:51:17.996Z] 08:51:17 INFO - PID 3148 | #02: mozilla::net::TRR::Run() [netwerk/dns/TRR.cpp:81]
[task 2021-02-24T08:51:17.997Z] 08:51:17 INFO - PID 3148 | #03: mozilla::net::ODoH::Run() [netwerk/dns/ODoH.cpp:44]
[task 2021-02-24T08:51:17.998Z] 08:51:17 INFO - PID 3148 | #04: nsThread::ProcessNextEvent(bool, bool*) [xpcom/threads/nsThread.cpp:1153]
[task 2021-02-24T08:51:17.998Z] 08:51:17 INFO - PID 3148 | #05: NS_ProcessNextEvent(nsIThread*, bool) [xpcom/threads/nsThreadUtils.cpp:548]
[task 2021-02-24T08:51:17.999Z] 08:51:17 INFO - PID 3148 | #06: mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*) [ipc/glue/MessagePump.cpp:332]
[task 2021-02-24T08:51:18.000Z] 08:51:17 INFO - PID 3148 | #07: MessageLoop::RunInternal() [ipc/chromium/src/base/message_loop.cc:335]
[task 2021-02-24T08:51:18.000Z] 08:51:18 INFO - PID 3148 | #08: MessageLoop::Run() [ipc/chromium/src/base/message_loop.cc:311]
[task 2021-02-24T08:51:18.001Z] 08:51:18 INFO - PID 3148 | #09: nsThread::ThreadFunc(void*) [xpcom/threads/nsThread.cpp:393]
[task 2021-02-24T08:51:18.002Z] 08:51:18 INFO - PID 3148 | #10: _pt_root [nsprpub/pr/src/pthreads/ptthread.c:204]
[task 2021-02-24T08:51:18.004Z] 08:51:18 INFO - PID 3148 | #11: ??? [/lib/x86_64-linux-gnu/libpthread.so.0 + 0x76db]
[task 2021-02-24T08:51:18.008Z] 08:51:18 INFO - PID 3148 | #12: clone [/lib/x86_64-linux-gnu/libc.so.6 + 0x121a3f]
[task 2021-02-24T08:51:18.009Z] 08:51:18 INFO - PID 3148 | #13: ??? (???:???)
Assignee | ||
Comment 3•4 years ago
|
||
Comment 6•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/14f3d193f41a
https://hg.mozilla.org/mozilla-central/rev/4bfa17997433
Assignee | ||
Comment 7•4 years ago
|
||
Comment on attachment 9205352 [details]
Bug 1688092 - Make sure mTrrA and mTrrAAAA are set properly before dispatching them
Beta/Release Uplift Approval Request
- User impact if declined: A host record could be put into the same queue twice and cause an unexpected behavior.
- Is this code covered by automated tests?: Yes
- Has the fix been verified in Nightly?: Yes
- Needs manual test from QE?: No
- If yes, steps to reproduce: This file is covered by a test and is verified in Nightly.
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky):
- String changes made/needed: N/A
Comment 8•4 years ago
|
||
AFAIK we're not shipping odoh. What's the context for this uplift request?
Assignee | ||
Comment 9•4 years ago
|
||
(In reply to Julien Cristau [:jcristau] from comment #8)
AFAIK we're not shipping odoh. What's the context for this uplift request?
The patch also fixes a problem for TRR, not just odoh. It just happened that we found a fix for bug 1678117 when running odoh tests, so I'd like to uplift this patch.
Comment 10•4 years ago
|
||
Comment on attachment 9205352 [details]
Bug 1688092 - Make sure mTrrA and mTrrAAAA are set properly before dispatching them
approved for 87.0b5, thanks
Comment 11•4 years ago
|
||
bugherder uplift |
Description
•