Note: There are a few cases of duplicates in user autocompletion which are being worked on.

TI: "Assertion failure: JSOp(*pc) != JSOP_TRAP,", with trap

RESOLVED FIXED

Status

()

Core
JavaScript Engine
--
critical
RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: gkw, Unassigned)

Tracking

(Blocks: 2 bugs, {assertion, testcase})

Trunk
x86
Linux
assertion, testcase
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

6 years ago
function f() {
  "use strict";
  print(Math.min(0, 1));
}
dis(f)
trap(f, 10, '')
f()

asserts js debug shell on JM changeset aec367836312 with -m, -d, -a and -n at Assertion failure: JSOp(*pc) != JSOP_TRAP,

flags: NULL_CLOSURE
off     op
-----   --
main:
00000:  callname "print"
00005:  name "Math"
00010:  callprop "min"      <-- trap goes here
00015:  zero
00016:  one
00017:  call 2
00020:  call 1
00023:  pop
00024:  stop

Source notes:
 ofs  line    pc  delta desc     args
---- ---- ----- ------ -------- ------
  0:    1     0 [   0] newline 
  1:    2     0 [   0] newline 
  2:    3    10 [  10] xdelta  
  3:    3    10 [   0] pcbase   offset 5
  5:    3    17 [   7] pcbase   offset 12
  7:    3    20 [   3] pcbase   offset 20
Missed path where inference did not untrap before accessing an opcode.

http://hg.mozilla.org/projects/jaegermonkey/rev/07412de099f6
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.