Closed Bug 481275 Opened 16 years ago Closed 16 years ago

Generated Wordcode incorrect after JIT errors

Categories

(Tamarin Graveyard :: Virtual Machine, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: rreitmai, Assigned: jodyer)

References

Details

Attachments

(1 file)

The JIT, during verification, mutates state, which renders the generated wordcode invalid. This is ok, as long as the JIT does not fail, but if it does and we need to fall back to the wordcode it may not be correct.
An example of this is if the last if () case of emitCallpropertySlot() is invoked ( i.e. jit && slotType && slotType->base == CLASS_TYPE && slotType->getCreateClassClosureProc() ) and the jit fails afterwords.
when 478115 is fixed the word code will always look like it did when the jit was enabled before that bug is fixed. this means that this bug should be reproducable in -Dinterp mode, and not just when the jit fails.
Depends on: 478115
Blocks: 481230
taking ownership
Assignee: nobody → jodyer
cross listed as watson bug 2286872.
blocked by need for verbose output of the error, or better yet a tamarin only test case.
when calling an interface method using callpropvoid that verifier operand stack and the interpreter stack get out of sync (there is an extra pop of the interpreter stack introduced in e5a2c9cc1e53, mar-4). the interpreter eventually pops its way to insanity. just to be clear, this defect was not in the code when this bug was created. so we need to apply this fix and try to repro the original problem, which occurred much later in execution of the program
Attachment #366151 - Flags: review?(stejohns)
Attachment #366151 - Flags: review?(edwsmith)
Attachment #366151 - Flags: review?(edwsmith) → review+
changeset 2c104dcda1cb
should this be marked as Resolved?
Let's wait until the TR->TC->FR merge just to be sure.
Blocks: 478870
No longer blocks: 478870
Jeff, can you confirm whether this is Resolved?
Status: NEW → ASSIGNED
No one has been able to repo it since the fix was merged into FR. So i guess that qualifies as Resolved.
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
Attachment #366151 - Flags: review?(stejohns) → review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: