Closed Bug 429264 Opened 16 years ago Closed 16 years ago

"Assertion failure: top < ss->printer->script->depth" with "for", trap()

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
critical

Tracking

()

VERIFIED FIXED

People

(Reporter: jruderman, Unassigned)

References

Details

(Keywords: assertion, testcase)

Attachments

(1 file)

Pasting this into the js shell:

function f() { for(; 1; ) { } }
trap(f, 0, "");
f

triggers:

Assertion failure: top < ss->printer->script->depth, at jsopcode.c:882
Does the patch in bug 422137 resolve this?
The patch in bug 422137 does -not- resolve this.  I -think- the issue is to do with some confusion over a source note referring to what has now been rewritten as a JSOP_TRAP.
The decompiler is confused by the use of source-notes here.  We are definitely not doing the right thing in the JSOP_TRAP case for bytecodes accompanied by src-notes (JSOP_NOP, in this case).  Is Igor's suggestion from bug 422137 comment 50 more expedient than more whack-a-mole here?
This is fixed by my WIP patch from bug 422137.
Depends on: 422137
Status: NEW → RESOLVED
Closed: 16 years ago
Flags: in-testsuite?
Resolution: --- → FIXED
I'll check in when the tree reopens
/cvsroot/mozilla/js/tests/js1_5/extensions/regress-429264.js,v  <--  regress-429264.js
initial revision: 1.1

Note to self: When run on x86_64 in the test framework this exits with signal 6 or 7 but I can't reproduce it using jsDriver or just plain vanilla js.
Flags: in-testsuite?
Flags: in-testsuite+
Flags: in-litmus-
Bug on file for apparent 64-bit-only bug leading to crash? What signals are 6 and 7 according to `man signal` on that system?

/be
re bug, not yet. I want to reboot and see if my flakiness goes away after a full rm objdirs and complete rebuilt.

kill -l  6) SIGABRT      7) SIGBUS 
v 1.9.0. the signal issues on centos5 x86_64 are gone.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: