Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2013-06-06
21:24 • Closed ticket [3614360fff]: return in expr mangles the stack plus 7 other ch... artifact: 8c7c536656 user: dgp
20:44 • Ticket [3614360fff]: 4 changes artifact: e7f38160e1 user: dgp
20:19 • Ticket [3614360fff]: 4 changes artifact: 3e5bec26f9 user: dgp
2013-06-05
21:22 • New ticket [3614360fff]. artifact: 761f6edbdb user: dkf

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.