Closed Bug 1899863 Opened 1 year ago Closed 1 year ago

Extremely frequent PNecko::Msg_CancelHTMLDNSPrefetch log spam

Categories

(Core :: Networking: DNS, task, P2)

task

Tracking

()

RESOLVED FIXED
128 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox126 --- wontfix
firefox127 --- wontfix
firefox128 --- fixed

People

(Reporter: mccr8, Assigned: mccr8)

References

(Blocks 1 open bug)

Details

(Whiteboard: [necko-triaged])

Attachments

(1 file)

Across a single mozilla-central OSX try push, I see over 600,000 instances of this warning:

638469 WARNING: IPC message 'PNecko::Msg_CancelHTMLDNSPrefetch' discarded: actor cannot send: file ipc/glue/ProtocolUtils.cpp:551

The next on the list is only 120k, and the one after that is only about 78k.

There are about 63k instances of this warning in individual logs for bc12, 40k in bc4, 52k in bc 3. Approximately 50% of the lines of bc12 are just this warning.

It looks like that message is going to come from this call to SendCancelHTMLDNSPrefetch. This warning can be avoided by checking gNeckoChild->CanSend() first. This send is not new, so I'm not sure why this warning is so frequent.

This causes extremely frequent warning spam in debug builds.

I tested this patch locally. While running a single XPConnect mochitest plain directory, this reduced the number of instances of this warning from almost 970 to 0.

Attachment #9404861 - Attachment description: Bug 1899863 - Don't try to SendCancelHTMLDNSPrefetch if it will fail. → Bug 1899863 - Don't try to SendCancelHTMLDNSPrefetch or SendRemoveRequestContext if it will fail.

I added another similar check to some networking-related code to the patch. This is the number 3 source of warning spam, with 77921 instances:
WARNING: IPC message 'PNecko::Msg_RemoveRequestContext' discarded: actor cannot send: file ipc/glue/ProtocolUtils.cpp:551

Pushed by amccreight@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/51c9689da203 Don't try to SendCancelHTMLDNSPrefetch or SendRemoveRequestContext if it will fail. r=necko-reviewers,jesup
Severity: -- → N/A
Priority: -- → P2
Whiteboard: [necko-triaged]

Doesn't seem to be a problem on ESR115 FWIW.

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 128 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: