Closed
Bug 970001
Opened 11 years ago
Closed 11 years ago
Valgrind detects leak - 1 bytes are definitely lost (direct) involving sourcePolicy
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
mozilla30
Tracking | Status | |
---|---|---|
firefox30 | --- | affected |
People
(Reporter: gkw, Assigned: jorendorff)
Details
(Keywords: testcase, valgrind)
Attachments
(2 files)
2.17 KB,
text/plain
|
Details | |
5.40 KB,
patch
|
till
:
review+
|
Details | Diff | Splinter Review |
evaluate("", ({
sourcePolicy: ''
}))
shows "1 bytes in 1 blocks are definitely lost" on m-c changeset cafe909f7e07 with --ion-parallel-compile=off.
valgrind --vex-iropt-register-updates=allregs-at-mem-access --leak-check=full --smc-check=all-non-file ./js-opt-64-dm-vg-ts-er-linux-cafe909f7e07 --ion-parallel-compile=off testcase.js
Not sure who should get involved here, setting needinfo from jorendorff as a start.
My configure flags are:
AR=ar sh ./configure --enable-optimize=-O1 --disable-debug --enable-profiling --enable-gczeal --enable-debug-symbols --enable-methodjit --enable-type-inference --disable-tests --enable-more-deterministic --enable-exact-rooting --enable-valgrind --with-ccache --enable-threadsafe <other NSPR options>
Flags: needinfo?(jorendorff)
Assignee | ||
Comment 1•11 years ago
|
||
Yeah, this is trivial, patch coming.
Assignee: nobody → jorendorff
Flags: needinfo?(jorendorff)
![]() |
||
Comment 2•11 years ago
|
||
I don't think I've ever seen a 1 byte leak before. LOL.
Assignee | ||
Comment 3•11 years ago
|
||
I found a few other leaky-in-error-cases uses of JS_Encode*, too, and switched them to JSAutoByteString.
Attachment #8374124 -
Flags: review?(till)
Comment 4•11 years ago
|
||
Comment on attachment 8374124 [details] [diff] [review]
bug-970001-leak-v1.patch
Review of attachment 8374124 [details] [diff] [review]:
-----------------------------------------------------------------
nice
Attachment #8374124 -
Flags: review?(till) → review+
![]() |
Reporter | |
Updated•11 years ago
|
status-firefox30:
--- → affected
![]() |
Reporter | |
Updated•11 years ago
|
Keywords: checkin-needed
Comment 5•11 years ago
|
||
Keywords: checkin-needed
Comment 6•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
You need to log in
before you can comment on or make changes to this bug.
Description
•