Created attachment 532569 [details]
shell testcase, unpack, chdir and run main.js with options "-j -n -m"
The attached testcase asserts on TI revision 693a36f402ee (unpack, chdir and run main.js with options -j -m -n), tested on 64 bit.
YES, was waiting for this to show up as it has been causing intermittent tinderbox orange, but didn't have a test to confirm the cause. When rejoining into the interpreter we don't guarantee sync for dead locals. Normally this isn't a problem, but if the interpreter executes a 'GETLOCAL POP' sequence as is done in script headers for the decompiler, we can fault in the compartment checking assertions at the GETLOCAL. The interpreter should just ignore 'GETLOCAL POP' sequences like the liveness analysis does.
Ignore same compartment assertions for GETLOCAL followed by POP.