return in expr mangles the stack
Closed / Fixed3614360fffffffffffffffffffffffffffffffffCreated 13 years agoUpdated 13 years ago
Descriptionplain2013-06-05 21:22:32
This crashes in a full debug build (without the optimizer work I'm going to commit very soon):
apply {{} {expr {[return foo] + $a + $b}}}
Error is:
bad stack adjustment when compiling expr (was 0 instead of 1)
I believe (from scanning the fossil history) that you may have fixed something in this area. (Note that I don't know what bytecode sequence is generated; disassembling hits the same panic.)
dgpplain2013-06-06 20:19:51
Yes, I have a fix for this one over in mig-review. Will port it over shortly.
dgpplain2013-06-06 20:44:00
Hmmm... the fix isn't quite as isolated as I thought, but it will come over when I bring the fixes collected over there to the trunk.
dgpplain2013-06-06 21:24:59
allow_comments - 1 Aha! It was isolated, I just had the wrong bit. Fixed on trunk.
Log in (anonymous is fine) to add a comment.