Skip to content
Tcl Source Code History Of Ticket 1251791fffffffff
Login

History Of Ticket 1251791fffffffff

Artifacts Associated With Ticket 1251791fffffffff

  1. Ticket change [281389ca99] (rid 88636) by msofer on 2005-08-04 11:45:08:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      The optimisation that preserves a Tcl_Obj when
      appending an empty string only happens for bytecoded
      scripts. Combined with integer/wide difficulties, this
      produces inconsistent results when the same script is
      bcc'ed or not.
      
      mig@ave:/home/CVS/tcl-core-8-4-branch/unix$ cat > /tmp/test
      proc test {} {
          set res [info patchlevel]
          set a [expr {wide(65536)}]
          lappend res [expr {$a*$a}]
          set b $a[set a ""]
          lappend res [expr {$b*$b}]
      }
      puts [test]
      
      set res [info patchlevel]
      set a [expr {wide(65536)}]
      lappend res [expr {$a*$a}]
      set b $a[set a ""]
      puts [lappend res [expr {$b*$b}]]
      
      mig@ave:/home/CVS/tcl-core-8-4-branch/unix$ ./tclsh
      /tmp/test
      8.4.11 4294967296 4294967296
      8.4.11 4294967296 0
      
      
      
    4. foundin initialized to: "obsolete: 8.4.11"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "msofer"
    9. subsystem initialized to: "45. Parsing and Eval"
    10. title initialized to: "optimisation reveals integer/wide problems"
    11. type initialized to: "Bug"
  2. Ticket change [8810cd0658] (rid 131806) by msofer on 2005-08-04 18:53:29:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      Note that the bug is present since 8.4.8 and in HEAD too.
      Previous releases produce a consistent output:
      
      8.4.7 4294967296 0
      8.4.7 4294967296 0
      
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  3. Ticket change [492ff7705c] (rid 100016) by dkf on 2005-08-04 19:09:11:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      The fact that wide(65536) != 65536 is the problem in many
      respects. The optimization is just a means of exposing it.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  4. Ticket change [e60502c024] (rid 104225) by msofer on 2005-10-22 10:08:40:

    1. closedate changed to: "2005-10-22T03:08:40"
    2. closer changed to: "msofer"
    3. icomment:
      Logged In: YES 
      user_id=148712
      
      Fixed in HEAD by the bignum implementation; fixed in 8.4 by
      disabling the optimisation for wide integers.
      
      
    4. login: "msofer"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "msofer"