Closed
Bug 1098398
Opened 10 years ago
Closed 10 years ago
b2g memleak during stability testing after 48 hours
Categories
(Firefox OS Graveyard :: Bluetooth, defect, P1)
Tracking
(blocking-b2g:2.0+, b2g-v1.4 affected, b2g-v2.0 fixed, b2g-v2.0M fixed, b2g-v2.1 unaffected, b2g-v2.2 unaffected)
Tracking | Status | |
---|---|---|
b2g-v1.4 | --- | affected |
b2g-v2.0 | --- | fixed |
b2g-v2.0M | --- | fixed |
b2g-v2.1 | --- | unaffected |
b2g-v2.2 | --- | unaffected |
People
(Reporter: tkundu, Assigned: shawnjohnjr)
References
Details
Attachments
(3 files, 4 obsolete files)
910.13 KB,
text/plain
|
Details | |
552.84 KB,
application/x-bzip
|
Details | |
2.07 KB,
patch
|
bajaj
:
approval-mozilla-b2g32+
|
Details | Diff | Splinter Review |
Testcase: 1) Run gaiatest for call, camcorder, camera, sms, FM radio, video, music for 72 hours and we are seeing b2g memory growth of 30MB at some point although we are not running any apps. I have captured a memory report when memory growth happens
Reporter | ||
Comment 1•10 years ago
|
||
please note that we used v2.0 FFOS build for this testing.
Flags: needinfo?(khuey)
Flags: needinfo?(erahm)
Reporter | ||
Updated•10 years ago
|
Flags: needinfo?(bbajaj)
Reporter | ||
Comment 2•10 years ago
|
||
[Blocking Requested - why for this release]:
blocking-b2g: --- → 2.0?
schien and I looked at this today. It appears that bluetooth has a static array of uuids[0] that is only appended to. Presumably the testcase changes bluetooth settings a lot and results in us adding a lot of entries to this array. This code was rewritten in bug 1048915 for 2.1 which appears to have fixed the bug, but that patch is likely to big to backport. [0] http://mxr.mozilla.org/mozilla-b2g32_v2_0/source/dom/bluetooth/bluedroid/BluetoothServiceBluedroid.cpp#59
Component: Stability → Bluetooth
Flags: needinfo?(khuey)
Flags: needinfo?(erahm)
Comment 4•10 years ago
|
||
NI thomas to help start investigation here given it may be related to Bluetooth.
Flags: needinfo?(bbajaj) → needinfo?(tzimmermann)
Assignee | ||
Comment 5•10 years ago
|
||
Unfortunately, it seems to be a regression of Bug 1059136, which tries to fix MCTS API test case failures (bug 1058715). It's not relate to bug 1048915. Due to v2.1 in the middle of transition for new bluetooth v2 API, Adapter Uuid property won't be exposed to certified app anymore, so v2.1 does not pick up this patch. However, later new API defers to v2.2, so this is why v2.1 is unaffected.
Flags: needinfo?(tzimmermann)
Assignee | ||
Updated•10 years ago
|
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → shuang
Assignee | ||
Comment 6•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Attachment #8522724 -
Attachment is obsolete: true
Assignee | ||
Comment 7•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Attachment #8522726 -
Flags: review?(tzimmermann)
Attachment #8522726 -
Flags: feedback?(btian)
Comment 8•10 years ago
|
||
Comment on attachment 8522726 [details] [diff] [review] Bug 1098398 - Clear adapter uuids array to avoid memory leakage Review of attachment 8522726 [details] [diff] [review]: ----------------------------------------------------------------- f=me with nit addressed. ::: dom/bluetooth/bluedroid/BluetoothServiceBluedroid.cpp @@ +392,5 @@ > > propertyValue = sAdapterBondedAddressArray; > BT_APPEND_NAMED_VALUE(props, "Devices", propertyValue); > } else if (p.type == BT_PROPERTY_UUIDS) { > + sAdapterUuidsArray.Clear(); nit: newline here.
Attachment #8522726 -
Flags: feedback?(btian) → feedback+
Assignee | ||
Updated•10 years ago
|
Attachment #8522726 -
Attachment is obsolete: true
Attachment #8522726 -
Flags: review?(tzimmermann)
Assignee | ||
Comment 9•10 years ago
|
||
Attachment #8522735 -
Flags: review?(tzimmermann)
Comment 10•10 years ago
|
||
Comment on attachment 8522735 [details] [diff] [review] Bug 1098398 - Clear adapter uuids array to avoid memory leakage Review of attachment 8522735 [details] [diff] [review]: ----------------------------------------------------------------- Thank you. 2.1 and later are not affected AFAICT.
Attachment #8522735 -
Flags: review?(tzimmermann) → review+
Assignee | ||
Comment 11•10 years ago
|
||
Comment on attachment 8522735 [details] [diff] [review] Bug 1098398 - Clear adapter uuids array to avoid memory leakage NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings. [Approval Request Comment] Bug caused by (feature/regressing bug #):A regression of Bug 1059136, which tries to fix MCTS API test case failures (bug 1058715) User impact if declined: Memory leakage once happen when switching off and on Bluetooth Testing completed: Clear UUID array Risk to taking this patch (and alternatives if risky): none, it only clear static UUID array which should be cleaned up String or UUID changes made by this patch:none
Attachment #8522735 -
Flags: approval-mozilla-b2g32?
Assignee | ||
Updated•10 years ago
|
Attachment #8522735 -
Attachment is obsolete: true
Attachment #8522735 -
Flags: approval-mozilla-b2g32?
Assignee | ||
Comment 12•10 years ago
|
||
Assignee | ||
Comment 13•10 years ago
|
||
Comment on attachment 8522853 [details] [diff] [review] Bug 1098398 - Clear adapter uuids array to avoid memory leakage, r=tzimmermann, f=btian NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings. [Approval Request Comment] Bug caused by (feature/regressing bug #):A regression of Bug 1059136, which tries to fix MCTS API test case failures (bug 1058715) User impact if declined: Memory leakage once happen when switching off and on Bluetooth Testing completed: Clear UUID array Risk to taking this patch (and alternatives if risky): none, it only clear static UUID array which should be cleaned up String or UUID changes made by this patch:none
Attachment #8522853 -
Flags: approval-mozilla-b2g32?
Reporter | ||
Comment 14•10 years ago
|
||
(In reply to Shawn Huang [:shawnjohnjr] from comment #13) > Comment on attachment 8522853 [details] [diff] [review] > Bug 1098398 - Clear adapter uuids array to avoid memory leakage, > r=tzimmermann, f=btian > > NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to > better understand the B2G approval process and landings. > > [Approval Request Comment] > Bug caused by (feature/regressing bug #):A regression of Bug 1059136, which > tries to fix MCTS API test case failures (bug 1058715) > User impact if declined: Memory leakage once happen when switching off and > on Bluetooth > Testing completed: Clear UUID array > Risk to taking this patch (and alternatives if risky): none, it only clear > static UUID array which should be cleaned up > String or UUID changes made by this patch:none we restarted running automation with these changes and I will update asap.
Reporter | ||
Updated•10 years ago
|
Flags: needinfo?(tkundu)
Reporter | ||
Updated•10 years ago
|
Flags: needinfo?(ntroast)
Updated•10 years ago
|
blocking-b2g: 2.0? → 2.0+
Comment 15•10 years ago
|
||
Eill approve for branch uplift once this is on m-c or we have feedback from CAF.
Comment 16•10 years ago
|
||
(In reply to Shawn Huang [:shawnjohnjr] from comment #13) > Comment on attachment 8522853 [details] [diff] [review] > Bug 1098398 - Clear adapter uuids array to avoid memory leakage, > r=tzimmermann, f=btian > > NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to > better understand the B2G approval process and landings. > > [Approval Request Comment] > Bug caused by (feature/regressing bug #):A regression of Bug 1059136, which > tries to fix MCTS API test case failures (bug 1058715) > User impact if declined: Memory leakage once happen when switching off and > on Bluetooth > Testing completed: Clear UUID array > Risk to taking this patch (and alternatives if risky): none, it only clear > static UUID array which should be cleaned up > String or UUID changes made by this patch:none This patch is causing gecko to crash continuously during boot. Can you please verify the patch?
Flags: needinfo?(tkundu)
Flags: needinfo?(shuang)
Flags: needinfo?(ntroast)
Updated•10 years ago
|
Flags: needinfo?(khuey)
Assignee | ||
Comment 17•10 years ago
|
||
I'm not sure why, but Bug 989976 seems to be hit after applying array clean-up. I saw SIGBUS error.
Flags: needinfo?(shuang)
Flags: needinfo?(khuey)
Assignee | ||
Comment 18•10 years ago
|
||
We probably need to uplift the patch set of Bug 989976 and also apply patch of this bug. Although they look irrelevant.
Assignee | ||
Updated•10 years ago
|
Attachment #8522853 -
Attachment is obsolete: true
Attachment #8522853 -
Flags: approval-mozilla-b2g32?
Assignee | ||
Comment 19•10 years ago
|
||
NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings. [Approval Request Comment] Bug caused by (feature/regressing bug #):A regression of Bug 1059136, which tries to fix MCTS API test case failures (bug 1058715) User impact if declined: Memory leakage once happen when switching off and on Bluetooth Testing completed: Clear UUID array Risk to taking this patch (and alternatives if risky): none, it only clear static UUID array which should be cleaned up String or UUID changes made by this patch:none
Attachment #8524358 -
Flags: approval-mozilla-b2g32?
Assignee | ||
Comment 20•10 years ago
|
||
I've merged the Bug 989976 patch into this patch. Can you run again? Thanks.
Assignee | ||
Updated•10 years ago
|
Flags: needinfo?(tkundu)
Updated•10 years ago
|
Attachment #8524358 -
Flags: approval-mozilla-b2g32? → approval-mozilla-b2g32+
Reporter | ||
Comment 21•10 years ago
|
||
(In reply to Shawn Huang [:shawnjohnjr] from comment #20) > I've merged the Bug 989976 patch into this patch. Can you run again? Thanks. We are not seeing this issue in 24 hour testing but we are hitting some other crashes after 24 hours. Please land this patch if you are "OK" with it. Thanks a lot for your help :)
Flags: needinfo?(tkundu) → needinfo?(shuang)
Assignee | ||
Comment 22•10 years ago
|
||
(In reply to Tapas[:tkundu on #b2g/gaia/memshrink/gfx] (always NI me) from comment #21) > (In reply to Shawn Huang [:shawnjohnjr] from comment #20) > > I've merged the Bug 989976 patch into this patch. Can you run again? Thanks. > > We are not seeing this issue in 24 hour testing but we are hitting some > other crashes after 24 hours. Please land this patch if you are "OK" with > it. Thanks a lot for your help :) I'm ok with it. Thanks for your information.
Flags: needinfo?(shuang)
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Comment 23•10 years ago
|
||
https://hg.mozilla.org/releases/mozilla-b2g32_v2_0/rev/34f9d6d2a5ac If you want this on b2g30 for v1.4 as well, it'll need a separate approval request.
Status: NEW → RESOLVED
Closed: 10 years ago
status-b2g-v2.1:
--- → unaffected
status-b2g-v2.2:
--- → unaffected
Flags: needinfo?(shuang)
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → 2.2 S2 (19dec)
Comment 26•10 years ago
|
||
(In reply to Shawn Huang [:shawnjohnjr] from comment #24) > Shall we uplift to v1.4? shawn/ryan, if the patch is low risk enough and is not much work to backport please land this with a=bajaj on 1.4
Flags: needinfo?(bbajaj)
Assignee | ||
Updated•9 years ago
|
Flags: needinfo?(shuang)
You need to log in
before you can comment on or make changes to this bug.
Description
•