Intermittent test_pluginstream_seek_close.html leak of 1 nsAuthURLParser, 1 nsHashtable, 1 nsNPAPIPluginInstance, 1 nsNPAPIPluginStreamListener, 1 nsPluginStreamListenerPeer with leaked dom/plugins/test/neverending.sjs

RESOLVED FIXED in Firefox 18

Status

()

Core
Plug-ins
RESOLVED FIXED
6 years ago
5 years ago

People

(Reporter: emorley, Assigned: johns)

Tracking

({intermittent-failure, mlk})

Trunk
mozilla19
intermittent-failure, mlk
Points:
---
Dependency tree / graph
Bug Flags:
in-testsuite +

Firefox Tracking Flags

(firefox18 fixed, firefox19 fixed)

Details

Attachments

(1 attachment)

Rev4 MacOSX Lion 10.7 mozilla-inbound debug test mochitests-2/5 on 2012-06-20 08:40:59 PDT for push 1b1b8f3a4266

slave: talos-r4-lion-046

https://tbpl.mozilla.org/php/getParsedLog.php?id=12830402&tree=Mozilla-Inbound

{
== BloatView: ALL (cumulative) LEAK AND BLOAT STATISTICS, default process 445

     |<----------------Class--------------->|<-----Bytes------>|<----------------Objects---------------->|<--------------References-------------->|
                                              Per-Inst   Leaked    Total      Rem      Mean       StdDev     Total      Rem      Mean       StdDev
   0 TOTAL                                          20      952 103544185       15 (23607.41 +/- 36532.72) 219335432       10 (42051518673.80 +/-     0.00)
 427 nsAuthURLParser                                24       24        2        1 (    1.33 +/-     0.58)   283228        1 ( 8134.98 +/-  2123.79)
 766 nsHashtable                                    72       72     4149        1 (  450.47 +/-   108.79)        0        0 (    0.00 +/-     0.00)
 886 nsNPAPIPluginInstance                         152      152       69        1 (    3.22 +/-     2.02)     8679        2 (    5.60 +/-     3.11)
 887 nsNPAPIPluginStreamListener                   136      136       44        1 (    1.10 +/-     1.27)      134        1 (    1.68 +/-     1.16)
 943 nsPluginStreamListenerPeer                    224      224       42        1 (    0.96 +/-     1.04)      621        1 (    5.57 +/-     4.25)
1043 nsStandardURL                                 248      248    87868        1 ( 8279.42 +/-  2080.08)  3850366        1 (18020.74 +/-  2826.11)
1055 nsStringBuffer                                  8       24  1440375        3 (73391.47 +/- 23956.39)  4581140        4 (106450.96 +/- 45247.65)
1100 nsTArray_base                                   8       32 33322072        4 (61476.22 +/- 23054.38)        0        0 (    0.00 +/-     0.00)
1147 nsVoidArray                                     8        8   958994        1 (11584.67 +/-  2830.88)        0        0 (    0.00 +/-     0.00)
1149 nsWeakReference                                32       32    16465        1 (  567.84 +/-   179.89)   488571        1 ( 1844.02 +/-  1076.53)

nsTraceRefcntImpl::DumpStatistics: 1251 entries
TEST-UNEXPECTED-FAIL | automationutils.processLeakLog() | leaked 952 bytes during test execution
TEST-UNEXPECTED-FAIL | automationutils.processLeakLog() | leaked 1 instance of nsAuthURLParser with size 24 bytes
TEST-UNEXPECTED-FAIL | automationutils.processLeakLog() | leaked 1 instance of nsHashtable with size 72 bytes
TEST-UNEXPECTED-FAIL | automationutils.processLeakLog() | leaked 1 instance of nsNPAPIPluginInstance with size 152 bytes
TEST-UNEXPECTED-FAIL | automationutils.processLeakLog() | leaked 1 instance of nsNPAPIPluginStreamListener with size 136 bytes
TEST-UNEXPECTED-FAIL | automationutils.processLeakLog() | leaked 1 instance of nsPluginStreamListenerPeer with size 224 bytes
TEST-INFO | automationutils.processLeakLog() | leaked 1 instance of nsStandardURL with size 248 bytes
TEST-INFO | automationutils.processLeakLog() | leaked 3 instances of nsStringBuffer with size 8 bytes each (24 bytes total)
TEST-INFO | automationutils.processLeakLog() | leaked 4 instances of nsTArray_base with size 8 bytes each (32 bytes total)
TEST-INFO | automationutils.processLeakLog() | leaked 1 instance of nsVoidArray with size 8 bytes
TEST-INFO | automationutils.processLeakLog() | leaked 1 instance of nsWeakReference with size 32 bytes
}
https://tbpl.mozilla.org/php/getParsedLog.php?id=12900384&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=12949022&tree=Fx-Team
https://tbpl.mozilla.org/php/getParsedLog.php?id=13035917&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=13061914&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=13096926&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=13125482&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=13136006&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=13136703&tree=Mozilla-Inbound
Summary: Intermittent mochitest-plain-2 leak of 952 bytes (1 nsAuthURLParser, 1 nsHashtable, 1 nsNPAPIPluginInstance, 1 nsNPAPIPluginStreamListener, 1 nsPluginStreamListenerPeer) with leaked URL http://mochi.test:8888/tests/dom/plugins/test/neverending.sjs → Intermittent mochitest-plain-2 leak of 608 or 952 bytes (1 nsAuthURLParser, 1 nsHashtable, 1 nsNPAPIPluginInstance, 1 nsNPAPIPluginStreamListener, 1 nsPluginStreamListenerPeer) with leaked URL http://mochi.test:8888/tests/dom/plugins/test/neverending.sjs
https://tbpl.mozilla.org/php/getParsedLog.php?id=13142048&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=13140884&tree=Fx-Team
https://tbpl.mozilla.org/php/getParsedLog.php?id=13147318&tree=Firefox
https://tbpl.mozilla.org/php/getParsedLog.php?id=13147677&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=13147860&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=13148179&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=13156750&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=13150078&tree=Services-Central
Summary: Intermittent mochitest-plain-2 leak of 608 or 952 bytes (1 nsAuthURLParser, 1 nsHashtable, 1 nsNPAPIPluginInstance, 1 nsNPAPIPluginStreamListener, 1 nsPluginStreamListenerPeer) with leaked URL http://mochi.test:8888/tests/dom/plugins/test/neverending.sjs → Intermittent M2 or reftest leak of 608 or 952 bytes (1 nsAuthURLParser, 1 nsHashtable, 1 nsNPAPIPluginInstance, 1 nsNPAPIPluginStreamListener, 1 nsPluginStreamListenerPeer) with leaked URL http://mochi.test:8888/tests/dom/plugins/test/neverending.sjs
https://tbpl.mozilla.org/php/getParsedLog.php?id=13161999&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=13165814&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=13163075&tree=Try
https://tbpl.mozilla.org/php/getParsedLog.php?id=13167810&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=13170512&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=13174620&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=13182254&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=13191296&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=13198015&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=13201592&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=13200839&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=13248041&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=13266078&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=13282244&tree=Ionmonkey
https://tbpl.mozilla.org/php/getParsedLog.php?id=13304520&tree=Ionmonkey
https://tbpl.mozilla.org/php/getParsedLog.php?id=13353373&tree=Firefox
https://tbpl.mozilla.org/php/getParsedLog.php?id=13433769&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=13723120&tree=Firefox
Summary: Intermittent M2 or reftest leak of 608 or 952 bytes (1 nsAuthURLParser, 1 nsHashtable, 1 nsNPAPIPluginInstance, 1 nsNPAPIPluginStreamListener, 1 nsPluginStreamListenerPeer) with leaked URL http://mochi.test:8888/tests/dom/plugins/test/neverending.sjs → Intermittent M2 or reftest leak of 604, 608 or 952 bytes (1 nsAuthURLParser, 1 nsHashtable, 1 nsNPAPIPluginInstance, 1 nsNPAPIPluginStreamListener 1 nsPluginStreamListenerPeer) with leaked URL http://mochi.test:8888/tests/dom/plugins/test/neverending.sjs
https://tbpl.mozilla.org/php/getParsedLog.php?id=13746232&tree=Firefox
https://tbpl.mozilla.org/php/getParsedLog.php?id=13762633&tree=Firefox
https://tbpl.mozilla.org/php/getParsedLog.php?id=13931098&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=13999442&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=14164144&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=14250404&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=14292830&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=14293874&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=14351258&tree=Ionmonkey
https://tbpl.mozilla.org/php/getParsedLog.php?id=14370984&tree=Firefox
https://tbpl.mozilla.org/php/getParsedLog.php?id=14405263&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=14455582&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=14460674&tree=Mozilla-Inbound
Summary: Intermittent M2 or reftest leak of 604, 608 or 952 bytes (1 nsAuthURLParser, 1 nsHashtable, 1 nsNPAPIPluginInstance, 1 nsNPAPIPluginStreamListener 1 nsPluginStreamListenerPeer) with leaked URL http://mochi.test:8888/tests/dom/plugins/test/neverending.sjs → Intermittent M2 or reftest leak of 604, 608, 952, 1196 bytes (1 nsAuthURLParser, 1 nsHashtable, 1 nsNPAPIPluginInstance, 1 nsNPAPIPluginStreamListener 1 nsPluginStreamListenerPeer) with leaked http://mochi.test:8888/tests/dom/plugins/test/neverending.sjs
https://tbpl.mozilla.org/php/getParsedLog.php?id=14481403&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=14502379&tree=Firefox
https://tbpl.mozilla.org/php/getParsedLog.php?id=14510860&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=14516587&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=14526420&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=14528367&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=14565605&tree=Ionmonkey
https://tbpl.mozilla.org/php/getParsedLog.php?id=14581610&tree=Ionmonkey
https://tbpl.mozilla.org/php/getParsedLog.php?id=14618008&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=14622970&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=14627579&tree=Ionmonkey
https://tbpl.mozilla.org/php/getParsedLog.php?id=14653738&tree=Ionmonkey
https://tbpl.mozilla.org/php/getParsedLog.php?id=14701857&tree=Ionmonkey
https://tbpl.mozilla.org/php/getParsedLog.php?id=14708253&tree=Fx-Team
https://tbpl.mozilla.org/php/getParsedLog.php?id=14729411&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=14792793&tree=Firefox
https://tbpl.mozilla.org/php/getParsedLog.php?id=14795235&tree=Firefox
https://tbpl.mozilla.org/php/getParsedLog.php?id=14813256&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=14843268&tree=Ionmonkey
https://tbpl.mozilla.org/php/getParsedLog.php?id=14850092&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=14891412&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=14942237&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=14983539&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15020836&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15023466&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15033445&tree=Ionmonkey
https://tbpl.mozilla.org/php/getParsedLog.php?id=15034443&tree=Firefox
https://tbpl.mozilla.org/php/getParsedLog.php?id=15081300&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15114761&tree=Ionmonkey
https://tbpl.mozilla.org/php/getParsedLog.php?id=15170057&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15187257&tree=Mozilla-Beta
https://tbpl.mozilla.org/php/getParsedLog.php?id=15201827&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15236702&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15251047&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15259399&tree=Mozilla-Inbound
Also in mochitest-ipcplugins:

https://tbpl.mozilla.org/php/getParsedLog.php?id=15258246&tree=Try
https://tbpl.mozilla.org/php/getParsedLog.php?id=15270010&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15279886&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15282702&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15282549&tree=Firefox
https://tbpl.mozilla.org/php/getParsedLog.php?id=15295676&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15297146&tree=Fx-Team
https://tbpl.mozilla.org/php/getParsedLog.php?id=15297532&tree=Fx-Team
https://tbpl.mozilla.org/php/getParsedLog.php?id=15307941&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15311511&tree=Fx-Team
Linux this time, with leaked URL http://localhost:4444/1348056214901/361/ogg-video/black140x100.ogv

https://tbpl.mozilla.org/php/getParsedLog.php?id=15339244&tree=Mozilla-Inbound
OS: Mac OS X → All
Hardware: x86_64 → All
https://tbpl.mozilla.org/php/getParsedLog.php?id=15399354&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15389926&tree=Cedar
https://tbpl.mozilla.org/php/getParsedLog.php?id=15409547&tree=Fx-Team
https://tbpl.mozilla.org/php/getParsedLog.php?id=15407842&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15426268&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15436623&tree=Fx-Team
https://tbpl.mozilla.org/php/getParsedLog.php?id=15482204&tree=Firefox
https://tbpl.mozilla.org/php/getParsedLog.php?id=15488082&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15504340&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15505238&tree=Fx-Team
https://tbpl.mozilla.org/php/getParsedLog.php?id=15510656&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15506932&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15536049&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15537293&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15539104&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15549749&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15551551&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15556280&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15561758&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15545120&tree=Services-Central
https://tbpl.mozilla.org/php/getParsedLog.php?id=15564085&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15576744&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15579622&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15595780&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15597638&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15610008&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15623075&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15622657&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15619040&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15638672&tree=Mozilla-Aurora
https://tbpl.mozilla.org/php/getParsedLog.php?id=15652922&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15654958&tree=Firefox
https://tbpl.mozilla.org/php/getParsedLog.php?id=15657544&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15665397&tree=Mozilla-Inbound
Summary: Intermittent M2 or reftest leak of 604, 608, 952, 1196 bytes (1 nsAuthURLParser, 1 nsHashtable, 1 nsNPAPIPluginInstance, 1 nsNPAPIPluginStreamListener 1 nsPluginStreamListenerPeer) with leaked http://mochi.test:8888/tests/dom/plugins/test/neverending.sjs → Intermittent leak of 600, 604, 608, 952, 1196 bytes (1 nsAuthURLParser, 1 nsHashtable, 1 nsNPAPIPluginInstance, 1 nsNPAPIPluginStreamListener, 1 nsPluginStreamListenerPeer) with leaked http://mochi.test:8888/tests/dom/plugins/test/neverending.sjs
https://tbpl.mozilla.org/php/getParsedLog.php?id=15672551&tree=Firefox
https://tbpl.mozilla.org/php/getParsedLog.php?id=15676354&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15683283&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15683563&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15690147&tree=Services-Central
https://tbpl.mozilla.org/php/getParsedLog.php?id=15694881&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15702296&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15703456&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15703824&tree=Firefox
https://tbpl.mozilla.org/php/getParsedLog.php?id=15706843&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15717670&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15720414&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15722877&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15716555&tree=Try
https://tbpl.mozilla.org/php/getParsedLog.php?id=15726810&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15734531&tree=Fx-Team
https://tbpl.mozilla.org/php/getParsedLog.php?id=15742145&tree=Firefox
https://tbpl.mozilla.org/php/getParsedLog.php?id=15749009&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15757217&tree=Firefox
https://tbpl.mozilla.org/php/getParsedLog.php?id=15763573&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15767363&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15774498&tree=Mozilla-Inbound
(Assignee)

Comment 150

5 years ago
I looked into this a little, but I'm not any closer to understanding what's going on.
When we leak the plugin instance, we get a second call to nsPluginStreamListenerPeer::OnStopRequest, note aStatus NS_ERROR_NOT_INITIALIZED

#0  nsPluginStreamListenerPeer::OnStopRequest (this=0x7fffb699ed60, request=0x7fffaf52c058, aContext=0x0, aStatus=NS_ERROR_NOT_INITIALIZED) at /home/johns/moz/moz-git/dom/plugins/base/nsPluginStreamListenerPeer.cpp:961
#1  0x00007ffff0f191f6 in mozilla::net::HttpBaseChannel::DoNotifyListener (this=0x7fffaf52c000) at /home/johns/moz/moz-git/netwerk/protocol/http/HttpBaseChannel.cpp:1432
#2  0x00007ffff0f298d0 in mozilla::net::HttpAsyncAborter<mozilla::net::nsHttpChannel>::HandleAsyncAbort (this=0x7fffaf52c2c0) at /home/johns/moz/moz-git/netwerk/protocol/http/HttpBaseChannel.h:339
#3  0x00007ffff0f297ec in mozilla::net::nsHttpChannel::HandleAsyncAbort (this=0x7fffaf52c000) at /home/johns/moz/moz-git/netwerk/protocol/http/nsHttpChannel.cpp:1844
#4  0x00007ffff0f3e7e8 in nsRunnableMethodImpl<void (mozilla::net::nsHttpChannel::*)(), true>::Run (this=0x7fffaf549a00) at ../../../dist/include/nsThreadUtils.h:349
#5  0x00007ffff2fbbe6f in nsThread::ProcessNextEvent (this=0x7ffff6d793d0, mayWait=true, result=0x7fffffffb38e) at /home/johns/moz/moz-git/xpcom/threads/nsThread.cpp:612
#6  0x00007ffff2f2fd59 in NS_ProcessNextEvent_P (thread=0x7ffff6d793d0, mayWait=true) at nsThreadUtils.cpp:220
#7  0x00007ffff2a04c98 in mozilla::places::(anonymous namespace)::BlockingConnectionCloseCallback::Spin (this=0x7fffaf50cb00) at /home/johns/moz/moz-git/toolkit/components/places/Database.cpp:246
#8  0x00007ffff2a04ab3 in mozilla::places::Database::Shutdown (this=0x7ffff6d221f0) at /home/johns/moz/moz-git/toolkit/components/places/Database.cpp:1899
#9  0x00007ffff2a058b7 in mozilla::places::Database::Observe (this=0x7ffff6d221f0, aSubject=0x7fffaf510e00, aTopic=0x7ffff4189a4b "profile-before-change", aData=0x7ffff41899d0 <nsXREDirProvider::DoShutdown()::kShutdownPersist>) at /home/johns/moz/moz-git/toolkit/components/places/Database.cpp:1996
#10 0x00007ffff2f5b816 in nsObserverList::NotifyObservers (this=0x7fffc4a10270, aSubject=0x7fffaf510e00, aTopic=0x7ffff4189a4b "profile-before-change", someData=0x7ffff41899d0 <nsXREDirProvider::DoShutdown()::kShutdownPersist>) at /home/johns/moz/moz-git/xpcom/ds/nsObserverList.cpp:99
#11 0x00007ffff2f5dc96 in nsObserverService::NotifyObservers (this=0x7fffe7df3880, aSubject=0x7fffaf510e00, aTopic=0x7ffff4189a4b "profile-before-change", someData=0x7ffff41899d0 <nsXREDirProvider::DoShutdown()::kShutdownPersist>) at /home/johns/moz/moz-git/xpcom/ds/nsObserverService.cpp:149
#12 0x00007ffff0d55cd0 in nsXREDirProvider::DoShutdown (this=0x7fffffffb9d8) at /home/johns/moz/moz-git/toolkit/xre/nsXREDirProvider.cpp:861

...whereas we only ever get one call when the test does not leak, from InputStreamPump.
https://tbpl.mozilla.org/php/getParsedLog.php?id=15780126&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15781271&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15782870&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15789002&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15791815&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15797994&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15799199&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15787685&tree=Fx-Team
https://tbpl.mozilla.org/php/getParsedLog.php?id=15779572&tree=Fx-Team
https://tbpl.mozilla.org/php/getParsedLog.php?id=15801302&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15809096&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15825631&tree=Firefox
https://tbpl.mozilla.org/php/getParsedLog.php?id=15827236&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15829623&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15812936&tree=Fx-Team
https://tbpl.mozilla.org/php/getParsedLog.php?id=15837292&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15837813&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15833453&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15843961&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15851913&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15857956&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15857332&tree=Firefox
https://tbpl.mozilla.org/php/getParsedLog.php?id=15868920&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15872985&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15879247&tree=Try
https://tbpl.mozilla.org/php/getParsedLog.php?id=15880787&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15881546&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15887650&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15889601&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15890130&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15891510&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15892101&tree=Firefox
https://tbpl.mozilla.org/php/getParsedLog.php?id=15892595&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15892874&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15895490&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15901607&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15904751&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15906500&tree=Firefox
https://tbpl.mozilla.org/php/getParsedLog.php?id=15911715&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15919579&tree=Firefox
https://tbpl.mozilla.org/php/getParsedLog.php?id=15919308&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15920757&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15921908&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15923178&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15929768&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15931933&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15933967&tree=Firefox
https://tbpl.mozilla.org/php/getParsedLog.php?id=15938150&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15937028&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15939266&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15943798&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15945280&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15945004&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15946418&tree=Fx-Team
https://tbpl.mozilla.org/php/getParsedLog.php?id=15951398&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15956076&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15957828&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15959300&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15964472&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15967814&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15969211&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15971162&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15971534&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15964846&tree=Services-Central
https://tbpl.mozilla.org/php/getParsedLog.php?id=15974134&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15975369&tree=Firefox
https://tbpl.mozilla.org/php/getParsedLog.php?id=15976320&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15979890&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15979145&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15978475&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15981535&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15981970&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15986997&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15988971&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15991871&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15992474&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15995178&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=15996737&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16013119&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16013119&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16024137&tree=Firefox
https://tbpl.mozilla.org/php/getParsedLog.php?id=16040422&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16027843&tree=Mozilla-Aurora
https://tbpl.mozilla.org/php/getParsedLog.php?id=16028537&tree=Mozilla-Aurora
https://tbpl.mozilla.org/php/getParsedLog.php?id=16076581&tree=Firefox
https://tbpl.mozilla.org/php/getParsedLog.php?id=16087621&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16087924&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16091748&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16093675&tree=Firefox
https://tbpl.mozilla.org/php/getParsedLog.php?id=16093912&tree=Mozilla-Aurora
https://tbpl.mozilla.org/php/getParsedLog.php?id=16094048&tree=Mozilla-Aurora
https://tbpl.mozilla.org/php/getParsedLog.php?id=16091376&tree=Fx-Team
https://tbpl.mozilla.org/php/getParsedLog.php?id=16102126&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16105796&tree=Mozilla-Aurora
https://tbpl.mozilla.org/php/getParsedLog.php?id=16109392&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16112070&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16120227&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16130796&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16133711&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16134613&tree=Mozilla-Aurora
https://tbpl.mozilla.org/php/getParsedLog.php?id=16122335&tree=Mozilla-Aurora
https://tbpl.mozilla.org/php/getParsedLog.php?id=16150373&tree=Firefox
https://tbpl.mozilla.org/php/getParsedLog.php?id=16154744&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16158500&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16149889&tree=Mozilla-Aurora
https://tbpl.mozilla.org/php/getParsedLog.php?id=16150937&tree=Mozilla-Aurora
https://tbpl.mozilla.org/php/getParsedLog.php?id=16160660&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16162728&tree=Mozilla-Aurora
https://tbpl.mozilla.org/php/getParsedLog.php?id=16160718&tree=Firefox
https://tbpl.mozilla.org/php/getParsedLog.php?id=16169009&tree=Mozilla-Aurora
https://tbpl.mozilla.org/php/getParsedLog.php?id=16174407&tree=Mozilla-Aurora
https://tbpl.mozilla.org/php/getParsedLog.php?id=16172244&tree=Firefox
https://tbpl.mozilla.org/php/getParsedLog.php?id=16183367&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16181924&tree=Mozilla-Aurora
https://tbpl.mozilla.org/php/getParsedLog.php?id=16191722&tree=Mozilla-Aurora
https://tbpl.mozilla.org/php/getParsedLog.php?id=16196646&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16195828&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16193291&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16192006&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16188313&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16199569&tree=Mozilla-Aurora
https://tbpl.mozilla.org/php/getParsedLog.php?id=16202731&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16202354&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16203782&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16204599&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16203356&tree=Mozilla-Aurora
https://tbpl.mozilla.org/php/getParsedLog.php?id=16210680&tree=Mozilla-Aurora
https://tbpl.mozilla.org/php/getParsedLog.php?id=16212225&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16213971&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16215217&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16221440&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16220848&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16221394&tree=Firefox
https://tbpl.mozilla.org/php/getParsedLog.php?id=16226072&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16225099&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16228048&tree=Mozilla-Inbound
bsmedberg, do you have any ideas about this pretty frequent leak (see John's initial assessment at comment 150)?
https://tbpl.mozilla.org/php/getParsedLog.php?id=16232809&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16232651&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16233305&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16239232&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16245330&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16245406&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16248045&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16250158&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16251920&tree=Firefox
https://tbpl.mozilla.org/php/getParsedLog.php?id=16269144&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16269836&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16271321&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16271688&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16278118&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16279304&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16283685&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16292387&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16295723&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16295925&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16299648&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16300633&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16301237&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16308295&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16309529&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16341761&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16339652&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16345896&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16345327&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16346828&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16350245&tree=Mozilla-Aurora
https://tbpl.mozilla.org/php/getParsedLog.php?id=16354481&tree=Services-Central
https://tbpl.mozilla.org/php/getParsedLog.php?id=16358588&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16360760&tree=Mozilla-Aurora
https://tbpl.mozilla.org/php/getParsedLog.php?id=16365420&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16373926&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16373649&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16372238&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16374737&tree=Mozilla-Inbound
(In reply to Ed Morley (PTO/travelling until 24th Oct) [:edmorley UTC+1] from comment #280)
> bsmedberg, do you have any ideas about this pretty frequent leak (see John's
> initial assessment at comment 150)?

I guess that's a no. That's OK, manually starring this bug frequently throughout the day is fun anyway...

https://tbpl.mozilla.org/php/getParsedLog.php?id=16375382&tree=Firefox
https://tbpl.mozilla.org/php/getParsedLog.php?id=16380121&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16385058&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16390318&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16389049&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16368881&tree=Birch
https://tbpl.mozilla.org/php/getParsedLog.php?id=16397805&tree=Mozilla-Inbound

I'm not proud. Or tired.
https://tbpl.mozilla.org/php/getParsedLog.php?id=16396079&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16397867&tree=Firefox
https://tbpl.mozilla.org/php/getParsedLog.php?id=16401889&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16415216&tree=Mozilla-Aurora
https://tbpl.mozilla.org/php/getParsedLog.php?id=16421176&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16423903&tree=Mozilla-Aurora
https://tbpl.mozilla.org/php/getParsedLog.php?id=16424066&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16425181&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16429048&tree=Firefox
https://tbpl.mozilla.org/php/getParsedLog.php?id=16429654&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16432260&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16437149&tree=Mozilla-Aurora
https://tbpl.mozilla.org/php/getParsedLog.php?id=16439536&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16439352&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16442530&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16442530&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16440983&tree=Mozilla-Aurora
https://tbpl.mozilla.org/php/getParsedLog.php?id=16443505&tree=Mozilla-Aurora
https://tbpl.mozilla.org/php/getParsedLog.php?id=16442997&tree=Firefox
https://tbpl.mozilla.org/php/getParsedLog.php?id=16446186&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16454749&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16452228&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16464394&tree=Firefox
https://tbpl.mozilla.org/php/getParsedLog.php?id=16477774&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16477910&tree=Firefox
https://tbpl.mozilla.org/php/getParsedLog.php?id=16478483&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16479823&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16482326&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16492108&tree=Cedar
https://tbpl.mozilla.org/php/getParsedLog.php?id=16501768&tree=Firefox
https://tbpl.mozilla.org/php/getParsedLog.php?id=16501605&tree=Mozilla-Aurora
https://tbpl.mozilla.org/php/getParsedLog.php?id=16509695&tree=Mozilla-Inbound

Looks like we're probably on our own here. Alas, it's not as easy to disable our way to victory as the (former) summary would make it seem - neverending.sjs is only used by test_pluginstream_seek_close.html, but the reftests we've been dropping in here so long that I thought that was what the bug was about seem to be leaking something that http://mxr.mozilla.org/mozilla-central/search?string=black140x100.ogv says is used in 33 reftests. So probably our first step is going to be to file a separate Video/Audio bug for them, and then we can use this bug to just disable test_pluginstream_seek_close.html since nobody wants to fix it, and see whether or not anyone will want to fix those once they are in the right lap.
Summary: Intermittent leak of 600, 604, 608, 952, 1196 bytes (1 nsAuthURLParser, 1 nsHashtable, 1 nsNPAPIPluginInstance, 1 nsNPAPIPluginStreamListener, 1 nsPluginStreamListenerPeer) with leaked http://mochi.test:8888/tests/dom/plugins/test/neverending.sjs → Intermittent leak of 1 nsAuthURLParser, 1 nsHashtable, 1 nsNPAPIPluginInstance, 1 nsNPAPIPluginStreamListener, 1 nsPluginStreamListenerPeer with leaked dom/plugins/test/neverending.sjs or ogg-video/black140x100.ogv
https://tbpl.mozilla.org/php/getParsedLog.php?id=16510308&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16511444&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16510545&tree=Mozilla-Aurora
Blocks: 806133
I've disabled test_pluginstream_seek_close.html due to lack of action in this bug (see comment 354):
https://hg.mozilla.org/integration/mozilla-inbound/rev/eb63fc7d719d
Summary: Intermittent leak of 1 nsAuthURLParser, 1 nsHashtable, 1 nsNPAPIPluginInstance, 1 nsNPAPIPluginStreamListener, 1 nsPluginStreamListenerPeer with leaked dom/plugins/test/neverending.sjs or ogg-video/black140x100.ogv → Intermittent test_pluginstream_seek_close.html leak of 1 nsAuthURLParser, 1 nsHashtable, 1 nsNPAPIPluginInstance, 1 nsNPAPIPluginStreamListener, 1 nsPluginStreamListenerPeer with leaked dom/plugins/test/neverending.sjs
Whiteboard: [orange] → [orange][test disabled][leave open]
https://hg.mozilla.org/mozilla-central/rev/eb63fc7d719d
Apparently I have a mxr-reading-comprehension problem, since once https://tbpl.mozilla.org/php/getParsedLog.php?id=16532622&tree=Firefox leaked demonstrating that it wasn't just test_pluginstream_seek_close.html, it was pretty obvious that test_streamatclose.html uses it too.

Now that we know test_streamatclose.html leaks, we should probably disable it (more subtly, since it'll be easier to only disable it if SpecialPowers.isDebugBuild) and reenable test_pluginstream_seek_close.html to see whether or not it also leaks.
Disabled test_streamatclose.html in https://hg.mozilla.org/integration/mozilla-inbound/rev/a9541226ccd5, reenabled test_pluginstream_seek_close.html in https://hg.mozilla.org/integration/mozilla-inbound/rev/aa367b01df3f
https://hg.mozilla.org/mozilla-central/rev/a9541226ccd5
https://hg.mozilla.org/mozilla-central/rev/aa367b01df3f
https://tbpl.mozilla.org/php/getParsedLog.php?id=16594426&tree=Mozilla-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=16595726&tree=Mozilla-Aurora
It's going to take us a while to remember that bug 806133, which both of those are, exists, isn't it?
/me deletes from history
My awesomebar is trained on "604", sorry...
(Assignee)

Comment 368

5 years ago
Created attachment 679943 [details] [diff] [review]
Fix

Okay so I can reproduce this reliably and I think I sort of understand what is
going on. This code scares me.

1) the nsNPAPIPluginInstance is stopped, and destroys its streams
2) nsNPAPIPluginStreamListener::CleanUpStream is called, but this stream has not gotten OnStartBinding
3) nsPluginStreamListenerPeer calls nsNPAPIPluginStreamListener->OnStartBinding / OnStopBinding
   (who owns this? Should it be killed earlier?)
4) In OnStopBinding() we finally cancel the actual request

The resultant number of trips through the event loop for this channel to die and
dependancy chain to unwind explains why this leak happens if we shut down the
browser immediately, but not otherwise. I think.

This patch has CleanUpStream cancel pending requests immediately if it is aware
of its associated nsPluginSteamListenerPeer, and also causes OnStartBinding to
bail out if we've already been cleaned up. It seems to fix the leak.


@bsmedberg - Does any of this make any sense? I've no idea what I'm doing.
Attachment #679943 - Flags: review?(benjamin)
https://tbpl.mozilla.org/php/getParsedLog.php?id=16928409&tree=Mozilla-Aurora
Rev4 MacOSX Lion 10.7 mozilla-aurora debug test mochitest-other

Updated

5 years ago
Attachment #679943 - Flags: review?(benjamin) → review+
(Assignee)

Comment 370

5 years ago
Comment on attachment 679943 [details] [diff] [review]
Fix

pushed:
https://hg.mozilla.org/integration/mozilla-inbound/rev/59c32eccc97d

try:
https://tbpl.mozilla.org/?tree=Try&rev=c4b05fdd5971

Waiting to see if this stops bug 806133 before re-enabling the test here
Attachment #679943 - Flags: checkin+

Comment 371

5 years ago
Try run for c4b05fdd5971 is complete.
Detailed breakdown of the results available here:
    https://tbpl.mozilla.org/?tree=Try&rev=c4b05fdd5971
Results (out of 103 total builds):
    success: 91
    warnings: 11
    failure: 1
Builds (or logs if builds failed) available at:
http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/jschoenick@mozilla.com-c4b05fdd5971
Unfortunately, your try push was for linux64, and my feeling (without having loaded a hundred logs to double-check) is that 806133 is 100% linux32.
(In reply to Phil Ringnalda (:philor) from comment #372)
> Unfortunately, your try push was for linux64, and my feeling (without having
> loaded a hundred logs to double-check) is that 806133 is 100% linux32.

Indeed:
http://brasstacks.mozilla.com/orangefactor/?display=Bug&bugid=806133&entireHistory=true&tree=trunk
(Assignee)

Comment 374

5 years ago
(In reply to Phil Ringnalda (:philor) from comment #372)
> Unfortunately, your try push was for linux64, and my feeling (without having
> loaded a hundred logs to double-check) is that 806133 is 100% linux32.

The patch fixes the local testcase I came up with to reproduce this, the try push was more to ensure this didn't cause any further failures -- I didn't hammer any tests on it. If more failures occur after this push, I'll need to go back and find a different repro.
Good news: I triggered 20 linux32 debug reftests on your inbound push, and got zero leaks, three fewer than I would have expected if it was still leaking

Bad news: we hadn't noticed that we had a permaorange failure in linux32 debug reftest from somewhere way down below you, so now your push looks like crap ;)
https://hg.mozilla.org/mozilla-central/rev/59c32eccc97d
No longer blocks: 806133
Duplicate of this bug: 806133
(In reply to John Schoenick [:johns] from comment #370)
> Waiting to see if this stops bug 806133 before re-enabling the test here

Looks like this fixed bug 806133 :-)

I've backed out the test-disabling:
https://hg.mozilla.org/integration/mozilla-inbound/rev/1f553fc1265e
Assignee: nobody → jschoenick
Status: NEW → ASSIGNED
status-firefox18: --- → affected
status-firefox19: --- → fixed
Whiteboard: [orange][test disabled][leave open] → [orange]
Target Milestone: --- → mozilla19
John, thank you for fixing this :-)
Please may you request uplift to aurora? (I can't really speak for the patch's risk etc)
https://hg.mozilla.org/mozilla-central/rev/1f553fc1265e
Status: ASSIGNED → RESOLVED
Last Resolved: 5 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
(Assignee)

Comment 381

5 years ago
Comment on attachment 679943 [details] [diff] [review]
Fix

[Approval Request Comment]
Bug caused by (feature/regressing bug #):
Unknown

User impact if declined: 
No user impact, but continuing frequent orange on FF18

Testing completed (on m-c, etc.): 
on m-c

Risk to taking this patch (and alternatives if risky): 
Low, small tweak to ordering of plugin stream cleanup.

String or UUID changes made by this patch:
None
Attachment #679943 - Attachment description: Fix of questionable correctness → Fix
Attachment #679943 - Flags: approval-mozilla-aurora?
Comment on attachment 679943 [details] [diff] [review]
Fix

Approving on aurora as it has no user impact and fixes an orange on FF18
Attachment #679943 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
https://hg.mozilla.org/releases/mozilla-aurora/rev/459a1d772b5c
status-firefox18: affected → fixed
(Assignee)

Updated

5 years ago
Blocks: 812629
Keywords: intermittent-failure
Whiteboard: [orange]
You need to log in before you can comment on or make changes to this bug.