Closed
Bug 669043
Opened 14 years ago
Closed 14 years ago
"Assertion failure: script->code <= target && target < script->code + script->length," with trap
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
mozilla8
People
(Reporter: gkw, Assigned: luke)
References
Details
(Keywords: assertion, regression, testcase, Whiteboard: [fixed-in-tracemonkey][inbound])
Attachments
(2 files)
49.73 KB,
text/plain
|
Details | |
1.53 KB,
patch
|
Waldo
:
review+
|
Details | Diff | Splinter Review |
function f() {
print(
Proxy.create((
function() {
return {
get: Namespace,
}
})
())
)
}
dis(f)
trap(f, 0, '')
f()
asserts js debug shell on TM changeset f59568ec0513 with -d at Assertion failure: script->code <= target && target < script->code + script->length,
js> dis(f)
flags: NULL_CLOSURE
loc op
----- --
main:
00000: callgname "print" <-- trap goes here
00003: getgname "Proxy"
00006: callprop "create"
00009: lambda (function () {return {get: Namespace};})
00012: nullblockchain
00013: push
00014: call 0
00017: call 1
00020: call 1
00023: pop
00024: stop
Source notes:
ofs line pc delta desc args
---- ---- ----- ------ -------- ------
0: 1 0 [ 0] newline
1: 2 3 [ 3] newline
2: 3 6 [ 3] pcbase offset 3
4: 3 9 [ 3] newline
5: 4 14 [ 5] pcbase offset 5
7: 4 17 [ 3] pcbase offset 14
9: 4 20 [ 3] pcbase offset 20
11: 4 24 [ 4] setline lineno 10
js> trap(f, 0, '')
autoBisect shows this is probably related to the following changeset:
The first bad revision is:
changeset: 70404:bb9e5496b0ac
user: Luke Wagner
date: Fri May 13 08:56:26 2011 -0700
summary: Bug 656462, part 4 - Simplify stack code, keep track of native calls, create new iterator over native/scripted callstack, make JS_SaveFrameChain fallible (r=waldo,mrbkap)
![]() |
Reporter | |
Comment 1•14 years ago
|
||
stack is hideously long...
![]() |
Reporter | |
Comment 2•14 years ago
|
||
Still occurs on TM changeset d8e967b8afc8.
![]() |
Assignee | |
Comment 3•14 years ago
|
||
More DEBUG-only ridiculousness resulting from new strong assertions plus AutoScriptUntrapper.
Comment 4•14 years ago
|
||
Comment on attachment 544072 [details] [diff] [review]
fix
Review of attachment 544072 [details] [diff] [review]:
-----------------------------------------------------------------
I'm not sure this is the perfect, absolute most cleanest way to do this. But it works, so meh.
Attachment #544072 -
Flags: review?(jwalden+bmo) → review+
![]() |
Assignee | |
Comment 5•14 years ago
|
||
Whiteboard: fixed-in-tracemonkey
Comment 6•14 years ago
|
||
This (along with most things committed on Friday afternoon) was backed out of mozilla-inbound in order to clear up orange.
![]() |
Assignee | |
Comment 7•14 years ago
|
||
Whiteboard: fixed-in-tracemonkey → [fixed-in-tracemonkey][inbound]
Comment 8•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla8
You need to log in
before you can comment on or make changes to this bug.
Description
•