Closed
Bug 563243
Opened 15 years ago
Closed 15 years ago
(64-bit) Invalid read / write when testcase is run in valgrind
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
People
(Reporter: gkw, Assigned: mrbkap)
References
Details
(4 keywords, Whiteboard: [sg:critical?][critsmash:resolved] fixed-in-tracemonkey)
Attachments
(4 files, 1 obsolete file)
(deleted),
text/plain
|
Details | |
(deleted),
text/plain
|
Details | |
(deleted),
patch
|
jorendorff
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
christian
:
approval1.9.2.14+
christian
:
approval1.9.1.17+
|
Details | Diff | Splinter Review |
(function () {
for (a in (function () {
yield Array.reduce()
})()) function () {}
})()
causes invalid reads and writes when run in a 1.9.2 64-bit Linux shell without -j on 1.9.2 tip. (Pass into 1.9.2 shell as a CLI argument, e.g. ./js a.js)
A valgrind log is attached. This does not seem to occur with TM tip. Setting s-s because I'm not sure how bad this is.
Reporter | ||
Comment 1•15 years ago
|
||
This shows up as a crash when jsfunfuzz is being run.
Keywords: crash
Reporter | ||
Updated•15 years ago
|
Group: core-security
Reporter | ||
Comment 2•15 years ago
|
||
Tested on Ubuntu Linux 10.04 AMD64 on this 1.9.2 changeset:
http://hg.mozilla.org/releases/mozilla-1.9.2/rev/d1aab61eb130
Reporter | ||
Comment 3•15 years ago
|
||
Updated•15 years ago
|
Whiteboard: [sg:critical?]
Assignee | ||
Comment 4•15 years ago
|
||
We haven't been able to assume anything about vp[2 + n] for n >= argc since 2006 or so... We don't actually fill missing args for fast natives.
Assignee | ||
Comment 5•15 years ago
|
||
Note: the changes to the slow version weren't necessary, but the two versions should probably match each other in behavior.
Updated•15 years ago
|
Attachment #443173 -
Flags: review?(jorendorff) → review+
Updated•15 years ago
|
Whiteboard: [sg:critical?] → [sg:critical?][critsmash:patch]
Comment 6•15 years ago
|
||
When did this regress? Does it affect any of our shipping branches?
Updated•15 years ago
|
Assignee | ||
Comment 7•15 years ago
|
||
This is a regression from bug 412296. It affects all active branches (note: it does *not* affect 1.9.0).
Blocks: 412296
Reporter | ||
Comment 8•15 years ago
|
||
(In reply to comment #7)
> This is a regression from bug 412296. It affects all active branches (note: it
> does *not* affect 1.9.0).
Strange - might just be me, but I couldn't seem to reproduce on TM tip, as per comment 0.
Keywords: regressionwindow-wanted
Assignee | ||
Comment 9•15 years ago
|
||
http://hg.mozilla.org/tracemonkey/rev/0f5867192284
Yeah, I saw that, but I've definitely reproduced it on all branches. Not sure what you're seeing.
Whiteboard: [sg:critical?][critsmash:patch] → [sg:critical?][critsmash:patch] fixed-in-tracemonkey
Comment 10•15 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Updated•14 years ago
|
Whiteboard: [sg:critical?][critsmash:patch] fixed-in-tracemonkey → [sg:critical?][critsmash:resolved] fixed-in-tracemonkey
Updated•14 years ago
|
Comment 11•14 years ago
|
||
Fixes bug 563133 for branches
blocking1.9.1: ? → .17+
blocking1.9.2: ? → .14+
Comment 13•14 years ago
|
||
The patch is a trivial backport of the tm patch. Here is a plain diff between tm and this patch to confirm this:
24c24
< if (!js_ComputeThis(cx, vp + 2))
---
> if (!js_ComputeThis(cx, JS_FALSE, vp + 2))
59,60c59,60
< @@ -4333,15 +4325,8 @@ js_generic_native_method_dispatcher(JSCo
< js_GetTopStackFrame(cx)->thisv = argv[-1];
---
> @@ -4463,15 +4455,8 @@ js_generic_native_method_dispatcher(JSCo
> js_GetTopStackFrame(cx)->thisp = JSVAL_TO_OBJECT(argv[-1]);
Attachment #505425 -
Flags: approval1.9.2.14?
Comment 14•14 years ago
|
||
The previous attachment had an unrelated diff.
Attachment #505425 -
Attachment is obsolete: true
Attachment #505425 -
Flags: approval1.9.2.14?
Updated•14 years ago
|
Attachment #505426 -
Flags: approval1.9.2.14?
Comment 15•14 years ago
|
||
Comment on attachment 505426 [details] [diff] [review]
fix for 192 анд 191
The patch applies to 191 as-is
Attachment #505426 -
Attachment description: fix for 192 for real → fix for 192 анд 191
Attachment #505426 -
Flags: approval1.9.1.17?
Comment 16•14 years ago
|
||
Comment on attachment 505426 [details] [diff] [review]
fix for 192 анд 191
Approved for 1.9.2.14 and 1.9.1.17. Please land this as soon as possible!
Attachment #505426 -
Flags: approval1.9.2.14?
Attachment #505426 -
Flags: approval1.9.2.14+
Attachment #505426 -
Flags: approval1.9.1.17?
Attachment #505426 -
Flags: approval1.9.1.17+
Comment 17•14 years ago
|
||
Updated•14 years ago
|
Group: core-security
Comment 18•12 years ago
|
||
Updated•12 years ago
|
Flags: in-testsuite+
You need to log in
before you can comment on or make changes to this bug.
Description
•