Closed Bug 780884 Opened 12 years ago Closed 11 years ago

Intermittent mochitest-browser-chrome leak of 34890 bytes (4 AtomImpl, 6 HttpBaseChannel, 1 MemoryReporter_StorageSQLite, 18 Mutex, 1 QuotaCallback) with multiple leaked URLs

Categories

(Firefox Graveyard :: SocialAPI, defect)

x86_64
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: emorley, Unassigned)

References

Details

(Keywords: intermittent-failure, memory-leak, Whiteboard: [MemShrink:P3])

Rev4 MacOSX Lion 10.7 mozilla-inbound debug test mochitest-other on 2012-08-06 22:19:15 PDT for push a525ac9349eb

slave: talos-r4-lion-034

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

{
###!!! ASSERTION: stylesheet not found: 'Not Reached', file ../../../../content/base/src/nsDocument.cpp, line 3532
mozilla::scache::PathifyURI(nsIURI*, nsACString_internal&)+0x004A42FE [/Users/cltbld/talos-slave/test/build/FirefoxNightlyDebug.app/Contents/MacOS/XUL +0x006799FE]
mozilla::scache::PathifyURI(nsIURI*, nsACString_internal&)+0x004A4ACB [/Users/cltbld/talos-slave/test/build/FirefoxNightlyDebug.app/Contents/MacOS/XUL +0x0067A1CB]
mozilla::scache::PathifyURI(nsIURI*, nsACString_internal&)+0x006D693B [/Users/cltbld/talos-slave/test/build/FirefoxNightlyDebug.app/Contents/MacOS/XUL +0x008AC03B]
mozilla::scache::PathifyURI(nsIURI*, nsACString_internal&)+0x00417048 [/Users/cltbld/talos-slave/test/build/FirefoxNightlyDebug.app/Contents/MacOS/XUL +0x005EC748]
mozilla::scache::PathifyURI(nsIURI*, nsACString_internal&)+0x00780EF0 [/Users/cltbld/talos-slave/test/build/FirefoxNightlyDebug.app/Contents/MacOS/XUL +0x009565F0]
NS_LogCOMPtrRelease_P+0x00003667 [/Users/cltbld/talos-slave/test/build/FirefoxNightlyDebug.app/Contents/MacOS/XUL +0x016D2D57]
NS_LogCOMPtrRelease_P+0x00003DC4 [/Users/cltbld/talos-slave/test/build/FirefoxNightlyDebug.app/Contents/MacOS/XUL +0x016D34B4]
NS_LogCOMPtrRelease_P+0x00004196 [/Users/cltbld/talos-slave/test/build/FirefoxNightlyDebug.app/Contents/MacOS/XUL +0x016D3886]
NS_CycleCollectorForget2_P+0x000006C8 [/Users/cltbld/talos-slave/test/build/FirefoxNightlyDebug.app/Contents/MacOS/XUL +0x016D4318]
NS_ShutdownXPCOM_P+0x0000032E [/Users/cltbld/talos-slave/test/build/FirefoxNightlyDebug.app/Contents/MacOS/XUL +0x016699EE]
XRE_GetProcessType+0x0000116B [/Users/cltbld/talos-slave/test/build/FirefoxNightlyDebug.app/Contents/MacOS/XUL +0x00004F1B]
XRE_InitCommandLine+0x00005A2E [/Users/cltbld/talos-slave/test/build/FirefoxNightlyDebug.app/Contents/MacOS/XUL +0x0000C68E]
XRE_main+0x000000D2 [/Users/cltbld/talos-slave/test/build/FirefoxNightlyDebug.app/Contents/MacOS/XUL +0x0000C9E2]
start+0x00000805 [/Users/cltbld/talos-slave/test/build/FirefoxNightlyDebug.app/Contents/MacOS/firefox-bin +0x00001D05]
--DOMWINDOW == 7 (0x10fdb7490) [serial = 1] [outer = 0x0] [url = chrome://browser/content/browser.xul]
--DOMWINDOW == 6 (0x114635e30) [serial = 14] [outer = 0x0] [url = chrome://mochikit/content/browser-harness.xul]
--DOMWINDOW == 5 (0x111f6fb40) [serial = 3] [outer = 0x0] [url = chrome://browser/content/hiddenWindow.xul]
--DOMWINDOW == 4 (0x12f513e80) [serial = 668] [outer = 0x0] [url = chrome://browser/content/tabview.html]
--DOMWINDOW == 3 (0x140e64a60) [serial = 669] [outer = 0x0] [url = chrome://browser/content/tabview.html]
--DOMWINDOW == 2 (0x114639a40) [serial = 15] [outer = 0x0] [url = about:blank]
WARNING: not an nsIRDFRemoteDataSource: 'remote != nullptr', file ../../../../rdf/datasource/src/nsLocalStore.cpp, line 279
--DOMWINDOW == 1 (0x111f72ef0) [serial = 4] [outer = 0x0] [url = chrome://browser/content/hiddenWindow.xul]
WARNING: not an nsIRDFRemoteDataSource: 'remote != nullptr', file ../../../../rdf/datasource/src/nsLocalStore.cpp, line 279
--DOMWINDOW == 0 (0x10fdbfdb0) [serial = 2] [outer = 0x0] [url = about:blank]
WARNING: not an nsIRDFRemoteDataSource: 'remote != nullptr', file ../../../../rdf/datasource/src/nsLocalStore.cpp, line 279
WARNING: NS_ENSURE_TRUE(mTextInputHandler) failed: file ../../../widget/cocoa/nsChildView.mm, line 4087
Leaked URLs:
  chrome://browser/content/browser.xul
  https://motown-dev.mozillalabs.com/bootstrap/css/bootstrap.min.css
  https://motown-dev.mozillalabs.com/social/sidebar
  https://motown-dev.mozillalabs.com/stylesheets/sidebar.css
  https://motown-dev.mozillalabs.com/social/sidebar
  https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
  https://motown-dev.mozillalabs.com/social/sidebar
  https://motown-dev.mozillalabs.com/bootstrap/js/bootstrap.min.js
  https://motown-dev.mozillalabs.com/social/sidebar
  https://browserid.org/include.js
  https://motown-dev.mozillalabs.com/social/sidebar
  https://motown-dev.mozillalabs.com/javascripts/application.js
  https://motown-dev.mozillalabs.com/social/sidebar
nsStringStats
 => mAllocCount:        7816737
 => mReallocCount:       534268
 => mFreeCount:         7816604  --  LEAKED 133 !!!
 => mShareCount:       14718365
 => mAdoptCount:         423453
 => mAdoptFreeCount:     423451  --  LEAKED 2 !!!
INFO | automation.py | Application ran for: 0:56:12.019961
INFO | automation.py | Reading PID log: /var/folders/qd/srwd5f710sj0fcl9z464lkj00000gn/T/tmpdDbGOYpidlog

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

     |<----------------Class--------------->|<-----Bytes------>|<----------------Objects---------------->|<--------------References-------------->|
                                              Per-Inst   Leaked    Total      Rem      Mean       StdDev     Total      Rem      Mean       StdDev
   0 TOTAL                                          22    34890 503269934      423 (13545.76 +/- 24441.25) 600617457      509 (10793.10 +/- 18825.21)
  14 AtomImpl                                       40      160    66987        4 ( 3523.81 +/-  1004.65)  6632606       96 (39976.63 +/- 13484.77)
 124 HttpBaseChannel                               664     3984     2664        6 (   29.46 +/-    36.92)   198036        6 (  124.38 +/-   193.52)
 192 MemoryReporter_StorageSQLite                   24       24        1        1 (    1.00 +/-     0.00)       11        1 (    3.67 +/-     1.74)
 199 Mutex                                          24      432    32238       18 (  292.01 +/-    83.54)        0        0 (    0.00 +/-     0.00)
 236 QuotaCallback                                  24       24        1        1 (    1.00 +/-     0.00)       18        4 (    3.81 +/-     1.28)
 237 QuotaCallbackData                              16       64        8        4 (    2.67 +/-     0.89)        0        0 (    0.00 +/-     0.00)
 247 ReentrantMonitor                               32      288    17466        9 (  229.17 +/-    84.89)        0        0 (    0.00 +/-     0.00)
 263 Service                                       136      136        1        1 (    1.00 +/-     0.00)     1731        1 (   22.27 +/-     2.95)
 278 StorageSQLiteMultiReporter                     80       80        1        1 (    1.00 +/-     0.00)        7        1 (    2.38 +/-     1.04)
 279 StringAdopt                                     1        2   423453        2 (    5.15 +/-     8.07)        0        0 (    0.00 +/-     0.00)
 294 ThirdPartyUtil                                 32       32        1        1 (    1.00 +/-     0.00)       48        1 (    2.91 +/-     0.79)
 297 TransportSecurityInfo                         224     1344      819        6 (   46.59 +/-    49.40)    20900        6 (  156.92 +/-   182.19)
 366 imgLoader                                      80       80        1        1 (    1.00 +/-     0.00)     1672        1 (    5.22 +/-     1.28)
 419 nsAuthURLParser                                24       48        2        2 (    1.50 +/-     0.71)  2984524       13 ( 2101.91 +/-   362.54)
 488 nsCStringKey                                   32      960  1184456       30 ( 1587.45 +/-   416.26)        0        0 (    0.00 +/-     0.00)
 501 nsCategoryObserver                            104      208       39        2 (    7.34 +/-     2.32)      753        2 (   36.03 +/-    10.08)
 548 nsCookiePermission                             64       64        1        1 (    1.00 +/-     0.00)       36        1 (    7.18 +/-     2.91)
 550 nsCookieService                               144      144        1        1 (    1.00 +/-     0.00)     1331        1 (    7.07 +/-     3.01)
 556 nsDNSPrefetch                                  64      384      112        6 (    4.92 +/-     3.50)      336        6 (    5.95 +/-     3.59)
 558 nsDNSService                                  144      144        1        1 (    1.00 +/-     0.00)     3406        1 (   23.86 +/-     1.70)
 619 nsDSURIContentListener                         72       72     4621        1 (   21.50 +/-     9.67)    87024        1 (   25.25 +/-    11.54)
 624 nsDefaultURIFixup                              40       40        1        1 (    1.00 +/-     0.00)    89865        1 (    6.58 +/-     1.62)
 681 nsDocLoader                                   264      264     4622        1 (   22.49 +/-     9.67) 20597990        4 (  175.00 +/-   113.80)
 682 nsDocShell                                    896      896     4621        1 (   21.50 +/-     9.67) 20469319        4 (  173.65 +/-   113.70)
 683 nsDocShell::InterfaceRequestorProxy            32       32     4621        1 (   51.93 +/-    15.63)    58810        7 (   54.84 +/-    16.16)
 698 nsEffectiveTLDService                          80       80        1        1 (    1.00 +/-     0.00)    10660        2 (    7.97 +/-     1.83)
 835 nsHashKey                                      16      480  3850887       30 ( 3493.74 +/-   650.74)        0        0 (    0.00 +/-     0.00)
 836 nsHashPropertyBag                              80      480    44429        6 (  126.08 +/-    30.08)   670990        6 (  226.99 +/-   168.72)
 837 nsHashtable                                    72       72    16082        1 (  909.85 +/-   199.67)        0        0 (    0.00 +/-     0.00)
 865 nsHttpChannel                                1080     6480     2664        6 (   29.46 +/-    36.92)   198036        6 (  124.38 +/-   193.52)
 866 nsHttpChannelAuthProvider                     248     1488     2664        6 (   17.45 +/-    23.68)     8000        6 (   18.11 +/-    23.67)
 869 nsHttpConnectionInfo                           64      384     2702        6 (   54.88 +/-    41.48)    11192       12 (   62.26 +/-    43.91)
 870 nsHttpConnectionMgr                           288      288        1        1 (    1.00 +/-     0.00)    10284        1 (    2.49 +/-     0.91)
 873 nsHttpHandler                                 576      576        1        1 (    1.00 +/-     0.00)   214427       12 (   30.48 +/-    31.88)
 874 nsHttpTransaction                             472     2832     1499        6 (    4.65 +/-     4.03)     6881        6 (    7.81 +/-     7.11)
 876 nsIDNService                                  112      112        1        1 (    1.00 +/-     0.00)     3294        4 (    7.04 +/-     0.88)
 879 nsIOService                                   248      248        1        1 (    1.00 +/-     0.00)  1118348        1 (   45.68 +/-    21.33)
 894 nsInputStreamPump                             128      768    12250        6 (    3.97 +/-     4.42)    56331        6 (    7.25 +/-     7.63)
 899 nsInterfaceRequestorAgg                        40      240     3963        6 (    5.66 +/-     4.76)    25546        6 (    7.96 +/-     6.31)
 938 nsLoadGroup                                    16       16     6446        1 (   62.05 +/-    24.77)   253390        7 (  175.36 +/-    45.90)
 972 nsNSSCertificate                               96      576     1874        6 (   91.30 +/-    91.73)    13968        6 (  251.58 +/-   264.81)
 993 nsNetworkLinkService                           56       56        1        1 (    1.00 +/-     0.00)        7        1 (    2.85 +/-     1.21)
1007 nsObserverService                              80       80        1        1 (    1.00 +/-     0.00)   368612        4 (   50.46 +/-    23.21)
1028 nsPermissionManager                           168      168        1        1 (    1.00 +/-     0.00)     4757        2 (    8.00 +/-     2.62)
1030 nsPipe                                        288     1728    13540        6 (    7.49 +/-     8.56)   234815       18 (   46.46 +/-    49.48)
1043 nsPrefBranch                                  128      128     1134        1 (   24.37 +/-    10.54)    11378        1 (   34.94 +/-    17.52)
1081 nsSHEntry                                     136      136     3553        1 (   15.81 +/-    10.84)   461903        1 (   56.88 +/-    52.47)
1082 nsSHEntryShared                               184      184     3317        1 (   13.88 +/-     9.70)    13011        1 (   30.16 +/-    27.93)
1088 nsSSLStatus                                    80      480      787        6 (   46.16 +/-    48.42)     8436        6 (  159.94 +/-   191.91)
1191 nsSimpleNestedURI                             136      136    18110        1 (   88.38 +/-    45.75)  1198417        1 (  463.14 +/-   250.28)
1194 nsSimpleURI                                   120      240    65780        2 (  218.13 +/-    88.32)  3195135        2 (  821.34 +/-   539.87)
1199 nsSocketTransportService                      216      216        1        1 (    1.00 +/-     0.00)    54022        1 (   12.67 +/-     3.00)
1203 nsStandardURL                                 248     3224   986470       13 ( 2261.92 +/-   368.19) 10223451       25 ( 6376.51 +/-   970.08)
1209 nsStreamConverterService                       32       32        1        1 (    1.00 +/-     0.00)      154        1 (    2.88 +/-     0.78)
1214 nsStrictTransportSecurityService              104      104        1        1 (    1.00 +/-     0.00)      709        1 (    3.99 +/-     0.72)
1215 nsStringBuffer                                  8     1064  8351004      133 (40298.81 +/- 25292.85) 23069369      168 (61257.71 +/- 25957.57)
1220 nsStringInputStream                            72      432    10256        6 (   17.30 +/-     8.17)    62254        6 (   22.17 +/-    11.83)
1264 nsTArray_base                                   8      136 78990730       17 (66302.35 +/- 16028.98)        0        0 (    0.00 +/-     0.00)
1276 nsThread                                      200      200      285        1 (  109.56 +/-    68.75)   741492       12 (  649.62 +/-   203.06)
1293 nsTransportEventSinkProxy                      80      480     1501        6 (    4.64 +/-     4.03)     4851        6 (    5.94 +/-     5.30)
1309 nsUnicodeNormalizer                            24       24        1        1 (    1.00 +/-     0.00)        4        1 (    1.71 +/-     0.76)
1325 nsVoidArray                                     8      176  3368109       22 (11095.76 +/-  3233.57)        0        0 (    0.00 +/-     0.00)
1328 nsWeakReference                                32      320    84033       10 ( 1756.02 +/-   797.45)  1354581       10 ( 4753.30 +/-  1564.62)
1330 nsWebBrowserFind                               80       80     1765        1 (    8.62 +/-     3.64)    20946        1 (   13.21 +/-     4.34)
1332 nsWebNavigationInfo                            40       40        1        1 (    1.00 +/-     0.00)     9328        1 (   23.05 +/-     9.70)

nsTraceRefcntImpl::DumpStatistics: 1440 entries
TEST-UNEXPECTED-FAIL | automationutils.processLeakLog() | leaked 34890 bytes during test execution
TEST-UNEXPECTED-FAIL | automationutils.processLeakLog() | leaked 4 instances of AtomImpl with size 40 bytes each (160 bytes total)
TEST-UNEXPECTED-FAIL | automationutils.processLeakLog() | leaked 6 instances of HttpBaseChannel with size 664 bytes each (3984 bytes total)
TEST-UNEXPECTED-FAIL | automationutils.processLeakLog() | leaked 1 instance of MemoryReporter_StorageSQLite with size 24 bytes
TEST-UNEXPECTED-FAIL | automationutils.processLeakLog() | leaked 18 instances of Mutex with size 24 bytes each (432 bytes total)
TEST-UNEXPECTED-FAIL | automationutils.processLeakLog() | leaked 1 instance of QuotaCallback with size 24 bytes
}
Whiteboard: [orange][MemShrink] → [orange][MemShrink:P3]
These URLs are from MoTown stuff:
  https://motown-dev.mozillalabs.com/bootstrap/css/bootstrap.min.css

which hints at two problems here, the leaking, and that this feature is apparently downloading stuff from the web, which seems bad.
Component: General → SocialAPI
Product: Core → Firefox
Bug 781386 stopped us from loading motown during test runs. But that doesn't really explain why we were intermittently leaking things...
Depends on: 781386
Whiteboard: [orange][MemShrink:P3] → [MemShrink:P3]
Resolving WFM keyword:intermittent-failure bugs last modified >3 months ago, whose whiteboard contains none of:
{random,disabled,marked,fuzzy,todo,fails,failing,annotated,time-bomb,leave open}

There will inevitably be some false positives; for that (and the bugspam) I apologise. Filter on orangewfm.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
Product: Firefox → Firefox Graveyard
You need to log in before you can comment on or make changes to this bug.