Artifacts Associated With Ticket 218688
Ticket change [e89a5d903a] (rid 104674) by jroemmler on 2008-10-22 13:56:26:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
The following small Tcl code loops forever in Tcl8.6a3: for {set i 20} {$i > 0} {incr i -1} { puts "i=$i" continue } But only, if source'd ! It runs OK if entered interactively. I know the example is bogus, but it has been stripped down as much as possible. My configuration is (RHEL4 machine): # uname -a Linux orion 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:32:02 EDT 2006 x86_64 x86_64 x86_64 GNU/Linux Tcl configured with: # cd tcl8.6a3/unix # ./configure --enable-64bit \ --prefix=/usr/local/tcltk8.6a3 \ --enable-symbols My memory debugger (purify) doesn't complain. I can create a stack trace if required. -Jochen - foundin initialized to: "obsolete: 8.6a3"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "jroemmler"
- subsystem initialized to: "None"
- title initialized to: "infinite for-loop in Tcl 8.6a3"
- type initialized to: "Bug"
Add attachment "loop.tcl" [e0e100a40c] (rid 87352) by jroemmler on 2008-10-22 20:56:26.
Ticket change [9974e1a090] (rid 110800) by jroemmler on 2008-10-22 20:56:26:
- icomment:
File Added - 298399: loop.tcl
- login: "jroemmler"
- mimetype: "text/plain"
- username: "jroemmler"
- icomment:
Ticket change [9f1ecf41c0] (rid 96583) by dgp on 2008-10-22 22:49:19:
- icomment:
confirmed. Also in 8.6a2.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [7299ae1616] (rid 100889) by dgp on 2008-10-22 22:55:36:
- assignee changed to: "dkf"
- icomment:
8.6a1 is ok. Compiled [for] appears to be at fault.
- login: "dgp"
- mimetype: "text/plain"
- priority changed to: "9 Immediate"
- subsystem changed to: "47. Bytecode Compiler"
- username: "dgp"
Ticket change [5aca1373da] (rid 118207) by dgp on 2008-10-23 00:47:41:
- assignee changed to: "msofer"
- icomment:
NR-enabling [for] on 2008-07-31 appears to be to blame.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
Ticket change [b1f6d7fd3a] (rid 98257) by dgp on 2008-10-23 01:08:12:
- icomment:
sorry, it's the *non*compiled [for] that is at fault. Given the timing of the appearance, seems to be a flaw in the new TclNRForObjCmd(), probably related to handling TCL_CONTINUE from the body.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [070acf55af] (rid 89318) by dgp on 2008-10-23 01:24:18:
- icomment:
I believe this patch is the fix. Miguel should review and commit. Original reporter is invited to test as well. diff -u -r1.107 tclCmdAH.c --- generic/tclCmdAH.c 17 Oct 2008 16:32:58 -0000 1.107 +++ generic/tclCmdAH.c 22 Oct 2008 18:22:57 -0000 @@ -1763,7 +1763,7 @@ char *msg = data[3]; - if (result == TCL_OK) { + if ((result == TCL_OK) || (result == TCL_CONTINUE)) { /* * TIP #280. Make invoking context available to next script. * - login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [294c9ed07c] (rid 88846) by msofer on 2008-10-23 10:30:30:
- icomment:
Patch reviewed, accepted, committed. Leaving open as reminder: missing test!
- login: "msofer"
- mimetype: "text/plain"
- priority changed to: "8"
- resolution changed to: "Fixed"
- username: "msofer"
- icomment:
Ticket change [04f7894d65] (rid 88961) by jroemmler on 2008-10-23 15:26:13:
- icomment:
I can also confirm that the suggested patch fixes my problem. Thank you very much for the quick turnaround guys. Good job! Jochen
- login: "jroemmler"
- mimetype: "text/plain"
- username: "jroemmler"
- icomment:
Ticket change [b66c17c5fb] (rid 125419) by dgp on 2008-10-23 21:50:12:
- icomment:
Alpha testing works! Spread the word!
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [7b70776a39] (rid 90514) by ferrieux on 2008-11-17 14:42:31:
- icomment:
File Added - 301742: fortest.patch Attaching missing test. File Added: fortest.patch
- login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"
- icomment:
Add attachment "fortest.patch" [d5c8c03941] (rid 123692) by ferrieux on 2008-11-17 14:42:31.
Ticket change [cd8ae3fab2] (rid 95910) by ferrieux on 2008-11-17 15:12:55:
- icomment:
Committed, closing.
- login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"
- icomment:
Ticket change [1dac896c07] (rid 90851) by ferrieux on 2008-11-17 15:12:56:
- closedate changed to: "2008-11-17T08:12:56"
- closer changed to: "ferrieux"
- status changed to: "Closed"