Skip to content
Tcl Source Code History Of Ticket 1374582
Login

History Of Ticket 1374582

Artifacts Associated With Ticket 1374582

  1. Ticket change [9c2915b826] (rid 111238) by uring on 2005-12-06 16:11:06:

    1. assignee initialized to: "nijtmans"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      (1) run the following script:
      
      proc touch {listValue} {
          lset listValue 1 4 5
          return $listValue
      }
      set data [list a [list 1 2 3] b]
      puts $data
      touch $data
      puts $data
      
      (2) you get the expected output:
      
      a {1 2 3} b
      a {1 2 3} b
      
      ... the proc "touch" has _not_ changed the variable
      "data"
      
      (3) now uncomment the first "puts $data" command and
          rerun the script
      
      (4) the output is
      
      a {1 7 3} b
      
      BTW: This does _not_ happen with tcl8.5a2.
      
      
      
    4. foundin initialized to: "obsolete: 8.5a3"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "uring"
    9. subsystem initialized to: "14. List Object"
    10. title initialized to: "invalid object modification"
    11. type initialized to: "Bug"
  2. Ticket change [ee5478ed9b] (rid 104066) by msofer on 2005-12-06 23:26:28:

    1. assignee changed to: "msofer"
    2. icomment:
      Logged In: YES 
      user_id=148712
      
      Something is wrong in your description:
      
      mig@uhu:/home/CVS/tcl_SF_clean/unix$ cat /tmp/test0
      proc touch {listValue} {
          lset listValue 1 4 5
          return $listValue
      }
      set data [list a [list 1 2 3] b]
      puts $data
      touch $data
      puts $data
      mig@uhu:/home/CVS/tcl_SF_clean/unix$ ./tclsh /tmp/test0
      a {1 2 3} b
      list index out of range
          while executing
      "lset listValue 1 4 5"
          (procedure "touch" line 2)
          invoked from within
      "touch $data"
          (file "/tmp/test0" line 7)
      
      
      
      
    3. login: "msofer"
    4. mimetype: "text/plain"
    5. username: "msofer"
  3. Ticket change [fe5bfb1f79] (rid 108574) by uring on 2005-12-06 23:40:33:

    1. icomment:
      Logged In: YES 
      user_id=123371
      
      
      oops. the command in proc touch must read:
      
      lset listValue 1 1 7
      
      sorry;
      
      
    2. login: "uring"
    3. mimetype: "text/plain"
    4. username: "uring"
  4. Ticket change [46a7b1c41e] (rid 99552) by msofer on 2005-12-06 23:54:07:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      I cannot reproduce the bug here; am I following your
      instructions correctly?
      
      mig@uhu:/home/CVS/tcl_SF_clean/unix$ cat /tmp/test0
      proc touch {listValue} {
          lset listValue 1 1 7
          return $listValue
      }
      set data [list a [list 1 2 3] b]
      puts $data
      touch $data
      puts $data
      mig@uhu:/home/CVS/tcl_SF_clean/unix$ ./tclsh /tmp/test0
      a {1 2 3} b
      a {1 2 3} b
      mig@uhu:/home/CVS/tcl_SF_clean/unix$ cat /tmp/test1
      proc touch {listValue} {
          lset listValue 1 1 7
          return $listValue
      }
      set data [list a [list 1 2 3] b]
      #puts $data
      touch $data
      puts $data
      mig@uhu:/home/CVS/tcl_SF_clean/unix$ ./tclsh /tmp/test1
      a {1 2 3} b
      
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  5. Ticket change [b9ae7fd548] (rid 129188) by uring on 2005-12-07 01:24:53:

    1. icomment:
      Logged In: YES 
      user_id=123371
      
      
      > I cannot reproduce the bug here; am I following your
      > instructions correctly?
      
      Your approach is perfect.
      
      On our sites the version of TCL matters.
      
      [info patchlevel] should report something >=8.5a3
      
      We can reproduce the bug on:
      
      linux - gcc 2.95.x
      linux - gcc 3.3.x
      windows VC7
      
      I even checked the "latest" snapshot ( actually 
      it was of yesterday ).
      
      If you can't reproduce the bug, what can we do to
      give you more precise information?
      
      
      
      
      
      
    2. login: "uring"
    3. mimetype: "text/plain"
    4. username: "uring"
  6. Ticket change [9f83adb80b] (rid 96653) by msofer on 2005-12-07 02:19:59:

    1. closedate changed to: "2005-12-06T19:19:59"
    2. closer changed to: "msofer"
    3. icomment:
      Logged In: YES 
      user_id=148712
      
      Neither I nor 4 other core maintainers could repro this bug. 
      
      Let me give you some questions and homework to try to narrow
      it down. 
      
      (1) these is obviously self-compiled tclsh; what compile
      flags did you use? 
      
      (2) Did you run 'make install'? (not necessary if
      --disable-shared passed to ./configure)
      
      (3) Is your tclsh linked with any custom C code, or using
      extensions?
      
      (4) Are you running this at the command line? Could the  
         a {1 7 3} b
      just be the return value of [touch] being output to the
      console? Or do you see this effect when running in batch mode?
      
      (5) Please repro what I did and confirm that you get
      different results:
       cd path/to/Tcl/unix
       make distclean
       ./configure --disable-shared
       make
       ...
       ./tclsh path/to/test0
       ...
       ./tclsh path/to/test1
      
      
      
      
    4. login: "msofer"
    5. mimetype: "text/plain"
    6. resolution changed to: "Works For Me"
    7. status changed to: "Pending"
    8. username: "msofer"
  7. Ticket change [96573d69dc] (rid 106309) by uring on 2005-12-07 03:56:20:

    1. icomment:
      Logged In: YES 
      user_id=123371
      
      
      No custom code, pure tcl.
      
      Well, it's embarassing, since I've no idea what's going
      on.
      
      I just ran the following script:
      
      mkdir /tmp/tcltest
      cd /tmp/tcltest
      
      tar zxvf /archiv/tcl/tcl8.5a3-src.tar.gz
      cd tcl8.5a3/unix
      
      ./configure --disable-shared
      make
      
      ./tclsh /tmp/test0
      
      ./tclsh /tmp/test1
      
      ...and could repro the misbehaviour.
      
      i.e.
      
      - no custom tclsh
      - no custom extensions
      
      Well, tomorrow I'll go to think about how
      to improve the documentation of the facts
      we're observing. 
      
      
    2. login: "uring"
    3. mimetype: "text/plain"
    4. status changed to: "Open"
    5. username: "uring"
  8. Ticket change [f01601287c] (rid 109117) by msofer on 2005-12-07 04:44:23:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      AHA! Repro succesfull with 8.5a3!
      
      It looks like a bug that has been fixed in HEAD. Could you
      verify with a current tclsh? My impression is that this is
      another aspect of Bug #1333036, fixed on 2005-10-20.
      
      PS: cvs nightly snapshots at
      ftp://www.tcl.tk/pub/tcl/nightly-cvs/
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. resolution changed to: "None"
    5. username: "msofer"
  9. Ticket change [e18168f662] (rid 87460) by uring on 2005-12-07 16:10:54:

    1. icomment:
      Logged In: YES 
      user_id=123371
      
      
      Well, I checked out tcl-20051205
      from ftp://www.tcl.tk/pub/tcl/nightly-cvs/
      
      Things are OK now.
      
      Thanks a lot.
      
      
    2. login: "uring"
    3. mimetype: "text/plain"
    4. username: "uring"
  10. Ticket change [21286e8952] (rid 130531) by msofer on 2005-12-07 18:46:56:

    1. closedate changed to: "2005-12-07T11:46:56"
    2. closer changed to: "msofer"
    3. resolution changed to: "Duplicate"
    4. status changed to: "Closed"