Closed Bug 1344589 Opened 8 years ago Closed 8 years ago

test_searchSuggest.js leaks some objects

Categories

(Firefox :: Search, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 55
Tracking Status
firefox55 --- fixed

People

(Reporter: ehsan.akhgari, Assigned: MattN)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

STR: $ XPCOM_MEM_LEAK_LOG=1 ./mach xpcshell-test toolkit/components/search/tests/xpcshell/test_searchSuggest.js 0:45.80 PROCESS_OUTPUT: Thread-1 (pid:67613) "== BloatView: ALL (cumulative) LEAK STATISTICS, default process 67613" 0:45.80 PROCESS_OUTPUT: Thread-1 (pid:67613) " |<----------------Class--------------->|<-----Bytes------>|<----Objects---->|" 0:45.80 PROCESS_OUTPUT: Thread-1 (pid:67613) " | | Per-Inst Leaked| Total Rem|" 0:45.80 PROCESS_OUTPUT: Thread-1 (pid:67613) " 0 |TOTAL | 51 1808| 161170 15|" 0:45.80 PROCESS_OUTPUT: Thread-1 (pid:67613) " 40 |CancelableRunnable | 48 48| 639 1|" 0:45.80 PROCESS_OUTPUT: Thread-1 (pid:67613) " 111 |Mutex | 32 96| 896 3|" 0:45.80 PROCESS_OUTPUT: Thread-1 (pid:67613) " 125 |PollableEvent | 24 24| 1 1|" 0:45.80 PROCESS_OUTPUT: Thread-1 (pid:67613) " 141 |ReentrantMonitor | 40 40| 325 1|" 0:45.80 PROCESS_OUTPUT: Thread-1 (pid:67613) " 152 |Runnable | 40 40| 3238 1|" 0:45.80 PROCESS_OUTPUT: Thread-1 (pid:67613) " 241 |nsAStreamCopier | 176 176| 71 1|" 0:45.80 PROCESS_OUTPUT: Thread-1 (pid:67613) " 371 |nsPipe | 208 208| 187 1|" 0:45.80 PROCESS_OUTPUT: Thread-1 (pid:67613) " 372 |nsPipeInputStream | 136 136| 187 1|" 0:45.80 PROCESS_OUTPUT: Thread-1 (pid:67613) " 399 |nsSocketTransport | 760 760| 59 1|" 0:45.80 PROCESS_OUTPUT: Thread-1 (pid:67613) " 400 |nsSocketTransportService | 256 256| 1 1|" 0:45.80 PROCESS_OUTPUT: Thread-1 (pid:67613) " 409 |nsStringBuffer | 8 8| 28820 1|" 0:45.80 PROCESS_OUTPUT: Thread-1 (pid:67613) " 417 |nsTArray_base | 8 16| 45090 2|" 0:45.80 PROCESS_OUTPUT: Thread-1 (pid:67613) "nsTraceRefcnt::DumpStatistics: 471 entries"
Flags: needinfo?(MattN+bmo)
No longer blocks: 1340710
This looks to be leaking Necko stuff because slow_timeout doesn't cleanup the slow XHR request. This is probably fixable by calling controller.stop() at the right time. I'll take a look when my debug build finishes.
Assignee: nobody → MattN+bmo
Status: NEW → ASSIGNED
After the fix I still see the following but I'm guessing that's a separate issue: > == BloatView: ALL (cumulative) LEAK STATISTICS, default process 69576 > |<----------------Class--------------->|<-----Bytes------>|<----Objects---->| > | | Per-Inst Leaked| Total Rem| > 0 |TOTAL | 51 8| 161407 1| > 416 |nsTArray_base | 8 8| 45147 1| > nsTraceRefcnt::DumpStatistics: 470 entries"
Flags: needinfo?(MattN+bmo)
Comment on attachment 8845239 [details] Bug 1344589 - Wait for the httpServer to shutdown in head_search.js to avoid reported leaks. https://reviewboard.mozilla.org/r/118430/#review120772 LGTM
Attachment #8845239 - Flags: review?(adw) → review+
Pushed by mozilla@noorenberghe.ca: https://hg.mozilla.org/integration/autoland/rev/4aa128f4b262 Wait for the httpServer to shutdown in head_search.js to avoid reported leaks. r=adw
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 55
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: