The operands of a subtraction were backwards. Thus the offset into the range for the memory we desired was wrong. This corrects the subtraction and adds some assertions for sanity.
This was the cause of the inability to get a full backtrace or to evaluate expressions involving local variables.