Skip to content
Tcl Source Code History Of Ticket 218688
Login

History Of Ticket 218688

Artifacts Associated With Ticket 218688

  1. Ticket change [e89a5d903a] (rid 104674) by jroemmler on 2008-10-22 13:56:26:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. 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
      
    4. foundin initialized to: "obsolete: 8.6a3"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "jroemmler"
    10. subsystem initialized to: "None"
    11. title initialized to: "infinite for-loop in Tcl 8.6a3"
    12. type initialized to: "Bug"
  2. Add attachment "loop.tcl" [e0e100a40c] (rid 87352) by jroemmler on 2008-10-22 20:56:26.

  3. Ticket change [9974e1a090] (rid 110800) by jroemmler on 2008-10-22 20:56:26:

    1. icomment:
      
      
      File Added - 298399: loop.tcl
      
      
      
    2. login: "jroemmler"
    3. mimetype: "text/plain"
    4. username: "jroemmler"
  4. Ticket change [9f1ecf41c0] (rid 96583) by dgp on 2008-10-22 22:49:19:

    1. icomment:
      
      confirmed.  Also in 8.6a2.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  5. Ticket change [7299ae1616] (rid 100889) by dgp on 2008-10-22 22:55:36:

    1. assignee changed to: "dkf"
    2. icomment:
      
      8.6a1 is ok.
      
      Compiled [for] appears to be at fault.
      
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. priority changed to: "9 Immediate"
    6. subsystem changed to: "47. Bytecode Compiler"
    7. username: "dgp"
  6. Ticket change [5aca1373da] (rid 118207) by dgp on 2008-10-23 00:47:41:

    1. assignee changed to: "msofer"
    2. icomment:
      
      NR-enabling [for] on 2008-07-31
      appears to be to blame.
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. username: "dgp"
  7. Ticket change [b1f6d7fd3a] (rid 98257) by dgp on 2008-10-23 01:08:12:

    1. 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.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  8. Ticket change [070acf55af] (rid 89318) by dgp on 2008-10-23 01:24:18:

    1. 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.
               *
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  9. Ticket change [294c9ed07c] (rid 88846) by msofer on 2008-10-23 10:30:30:

    1. icomment:
      Patch reviewed, accepted, committed. Leaving open as reminder: missing test!
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. priority changed to: "8"
    5. resolution changed to: "Fixed"
    6. username: "msofer"
  10. Ticket change [04f7894d65] (rid 88961) by jroemmler on 2008-10-23 15:26:13:

    1. icomment:
      I can also confirm that the suggested patch fixes my problem.
      Thank you very much for the quick turnaround guys.
      Good job!
      
      Jochen
      
      
    2. login: "jroemmler"
    3. mimetype: "text/plain"
    4. username: "jroemmler"
  11. Ticket change [b66c17c5fb] (rid 125419) by dgp on 2008-10-23 21:50:12:

    1. icomment:
      
      Alpha testing works!
      
      Spread the word!
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  12. Ticket change [7b70776a39] (rid 90514) by ferrieux on 2008-11-17 14:42:31:

    1. icomment:
      
      
      File Added - 301742: fortest.patch
      
      Attaching missing test.
      File Added: fortest.patch
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  13. Add attachment "fortest.patch" [d5c8c03941] (rid 123692) by ferrieux on 2008-11-17 14:42:31.

  14. Ticket change [cd8ae3fab2] (rid 95910) by ferrieux on 2008-11-17 15:12:55:

    1. icomment:
      Committed, closing.
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  15. Ticket change [1dac896c07] (rid 90851) by ferrieux on 2008-11-17 15:12:56:

    1. closedate changed to: "2008-11-17T08:12:56"
    2. closer changed to: "ferrieux"
    3. status changed to: "Closed"