Closed Bug 1478679 Opened 7 years ago Closed 7 years ago

Memory leak in LCovRealm/LCovCompartment

Categories

(Core :: JavaScript Engine, defect)

60 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla63
Tracking Status
firefox-esr60 --- fixed
firefox63 --- fixed

People

(Reporter: ptomato, Assigned: ptomato)

Details

Attachments

(2 files)

There's a placement-new without a corresponding destructor call in LCovRealm (LCovCompartment in the esr60 branch) which ASAN and Valgrind complain about if you call js::GetCodeCoverageSummary(). I'll attach a patch, as well as a proposal to backport to esr60.
Patch for trunk
Attachment #8995222 - Flags: review?(nicolas.b.pierron)
Assignee: nobody → philip.chimento
Status: NEW → ASSIGNED
ESR60 version of patch
Attachment #8995228 - Flags: review?(nicolas.b.pierron)
Attachment #8995228 - Flags: review?(nicolas.b.pierron) → review+
Attachment #8995222 - Flags: review?(nicolas.b.pierron) → review+
Attachment #8995222 - Flags: checkin?
Keywords: checkin-needed
Comment on attachment 8995228 [details] [diff] [review] Fix memory leak in LCovCompartment (ESR60 version) [Approval Request Comment] If this is not a sec:{high,crit} bug, please state case for ESR consideration: It's a memory leak. User impact if declined: Using this API will continue to leak memory (it was a regression somewhere in between 52 and 60.) Although the API is not used in Firefox proper; it's more likely that memory is leaking in Firefox's dev tools. Fix Landed on Version: 63 Risk to taking this patch (and alternatives if risky): Low risk, the fix is not invasive. String or UUID changes made by this patch: None See https://wiki.mozilla.org/Release_Management/ESR_Landing_Process for more info.
Attachment #8995228 - Flags: approval-mozilla-esr60?
Note that on ESR60 with GCC 8.1.0, strangely only with this patch, I run into the GCC crash reported on bug 1458382. So I'll request uplift for that patch as well.
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
Attachment #8995222 - Flags: checkin? → checkin-
Comment on attachment 8995228 [details] [diff] [review] Fix memory leak in LCovCompartment (ESR60 version) Fixes a memory leak in Spidermonkey 60. Approved for ESR 60.2.
Attachment #8995228 - Flags: approval-mozilla-esr60? → approval-mozilla-esr60+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: