Closed Bug 1415898 Opened 7 years ago Closed 7 years ago

100% CPU usage calling mozilla::net::nsSocketTransportService::DoPollIteration in a loop while the browser was idle

Categories

(Core :: Networking, defect)

All
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1415387
Tracking Status
firefox58 - affected

People

(Reporter: mstange, Unassigned)

Details

Attachments

(1 file)

Attached file Instruments trace
For the past 10 minutes, my Nightly has been at 100% CPU usage. Profiling with instruments showed that all the CPU usage was happening on the Socket Thread, with almost all the time spent in PR_Poll. So it looks like PR_Poll was called repeatedly. After opening this bug report page, the CPU usage has gone down again. My open tabs are: GMail, Google Calendar, auth.mozilla.auth0.com x 2, IRCCloud, Bugzilla x 2, treeherder Excerpt from an Activity Monitor sample: > 2408 Thread_2893937: Socket Thread > + 2408 thread_start (in libsystem_pthread.dylib) + 13 [0x7fff983e408d] > + 2408 _pthread_start (in libsystem_pthread.dylib) + 286 [0x7fff983e4887] > + 2408 _pthread_body (in libsystem_pthread.dylib) + 180 [0x7fff983e493b] > + 2408 _pt_root (in libnss3.dylib) + 211 [0x102033ba3] > + 2408 nsThread::ThreadFunc(void*) (in XUL) + 475 [0x1022deb3b] > + 2408 MessageLoop::Run() (in XUL) + 73 [0x10271a519] > + 2408 mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*) (in XUL) + 250 [0x102750fba] > + 2408 NS_ProcessNextEvent(nsIThread*, bool) (in XUL) + 47 [0x1022e9a1f] > + 2408 nsThread::ProcessNextEvent(bool, bool*) (in XUL) + 1651 [0x1022e07e3] > + 2408 non-virtual thunk to mozilla::net::nsSocketTransportService::Run() (in XUL) + 13 [0x102393dcd] > + 2342 mozilla::net::nsSocketTransportService::Run() (in XUL) + 624 [0x1023930f0] > + ! 2269 mozilla::net::nsSocketTransportService::DoPollIteration(mozilla::BaseTimeDuration<mozilla::TimeDurationValueCalculator>*) (in XUL) + 745 [0x102393879] > + ! : 2240 mozilla::net::nsSocketTransportService::Poll(unsigned int*, mozilla::BaseTimeDuration<mozilla::TimeDurationValueCalculator>*) (in XUL) + 271 [0x102391f0f] > + ! : | 1692 PR_Poll (in libnss3.dylib) + 1300 [0x10202d6d4] > + ! : | + 1670 poll (in libnss3.dylib) + 457 [0x10201b6c9] > + ! : | + ! 1669 __select (in libsystem_kernel.dylib) + 10 [0x7fff982f9eb6]
[Tracking Requested - why for this release]: Sounds like rather horrible thing to happen.
This sounds like bug 1415387. The cause of that bug has already been backed out (bug 1415387 comment 6).
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Track 58+ in bug 1415387 not here.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: