Closed
Bug 634689
Opened 15 years ago
Closed 15 years ago
Assertion failure: isShape()
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
blocking2.0 | --- | .x+ |
People
(Reporter: bc, Assigned: jorendorff)
References
()
Details
(Keywords: assertion, Whiteboard: [sg:critical?])
Attachments
(1 file)
1.06 MB,
application/zip
|
Details |
1. http://www.superconsole.it/
2. assert http://www.superconsole.it/
Windows XP/Windows 7 so far. I have a local test case that asserts after reloads and am reducing now, but it is taking a while.
Operating system: Windows NT
6.1.7600
CPU: x86
GenuineIntel family 6 model 44 stepping 2
1 CPU
Crash reason: EXCEPTION_ACCESS_VIOLATION_WRITE
Crash address: 0x0
Thread 0 (crashed)
0 mozjs.dll!JS_Assert [jsutil.cpp : 73 + 0x0]
eip = 0x6959811a esp = 0x001cc238 ebp = 0x001cc238 ebx = 0x03540030
esi = 0x00007018 edi = 0x0786c760 eax = 0x00000000 ecx = 0xae4858c4
edx = 0x6f161d48 efl = 0x00010202
Found by: given as instruction pointer in context
1 mozjs.dll!js::PCVal::toShape() [jspropertycache.h : 112 + 0x21]
eip = 0x694cce59 esp = 0x001cc240 ebp = 0x001cc250
Found by: call frame info
2 mozjs.dll!js::mjit::stubs::SetName<0>(js::VMFrame &,JSAtom *)
[StubCalls.cpp : 165 + 0xa]
eip = 0x6964de1a esp = 0x001cc258 ebp = 0x001cc2a0
Found by: call frame info
3 mozjs.dll!js::mjit::stubs::SetGlobalName<0>(js::VMFrame &,JSAtom *)
[StubCalls.cpp : 316 + 0xa]
eip = 0x6964e827 esp = 0x001cc2a8 ebp = 0x001cc2b0
Found by: call frame info
4 mozjs.dll!js::mjit::ic::SetGlobalName(js::VMFrame
&,js::mjit::ic::SetGlobalNameIC *) [MonoIC.cpp : 330 + 0x26]
eip = 0x6969d564 esp = 0x001cc2b8 ebp = 0x001cc2d8
Found by: call frame info
5 mozjs.dll!js::mjit::EnterMethodJIT(JSContext *,JSStackFrame *,void
*,js::Value *) [MethodJIT.cpp : 748 + 0x14]
eip = 0x6964428a esp = 0x001cc320 ebp = 0x001cc318
Found by: call frame info with scanning
see also Bug 627486 and ss because it is and shapes are involved.
Comment 1•15 years ago
|
||
Can we get a reduced testcase, or at least capture the website in case it goes away?
Keywords: testcase-wanted
Updated•15 years ago
|
Comment 2•15 years ago
|
||
Blocking final+, but if this isn't sg:critical, we can unblock.
blocking2.0: --- → final+
Whiteboard: [sg:critical?] → [sg:critical?][hardblocker]
Comment 3•15 years ago
|
||
Its a NULL crash. Why do we think it is sg:crit?
Comment 4•15 years ago
|
||
(In reply to comment #3)
> Its a NULL crash. Why do we think it is sg:crit?
It's a NULL crash because it's an assert. It is "sg:critical?" presumably because it's a type safety violation, where something that is not a Shape* is cast to that type.
To really know if it's exploitable, we'd have to reproduce the assert and do a detailed analysis, but at first glance it doesn't look too serious. The shape itself is not written, but it does control some writes, e.g., a slot write.
I can't repro this. I loaded the URL in a debug build, and nothing special happens. So it might just be a WFM.
Reporter | ||
Comment 5•15 years ago
|
||
I tried the url and the local version I had saved and could not reproduce with a recent build. I'll try again tomorrow.
Comment 6•15 years ago
|
||
not blocking final on anything that isn't easily reproducible. moving to .x for now.
blocking2.0: final+ → .x+
Updated•15 years ago
|
Whiteboard: [sg:critical?][hardblocker] → [sg:critical?]
Reporter | ||
Comment 7•15 years ago
|
||
If my bisecting is to be believed, this was fixed by:
user: Bill McCloskey <wmccloskey@mozilla.com>
date: Wed Feb 23 10:23:59 2011 -0800
summary: Bug 606960 - Purge property cache even for eval scripts (r=brendan,a=beltzner)
which landed on tm 2/23 and merged into mc 2/25.
To run the test, unzip and load tests/www.superconsole.it/index.html
it may take several minutes to assert.
Reporter | ||
Comment 8•15 years ago
|
||
Bill, does comment 7 sound reasonable?
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Comment 9•15 years ago
|
||
That makes total sense -- awesome find by Bill, that was a bad bug.
/be
Yeah, based on the stack, this looks like precisely the sort of thing that should have been fixed in bug 606960.
Updated•11 years ago
|
Group: core-security
You need to log in
before you can comment on or make changes to this bug.
Description
•