Artifacts Associated With Ticket 1251791
Ticket change [281389ca99] (rid 88636) by msofer on 2005-08-04 11:45:08:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- 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 - foundin initialized to: "obsolete: 8.4.11"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "msofer"
- subsystem initialized to: "45. Parsing and Eval"
- title initialized to: "optimisation reveals integer/wide problems"
- type initialized to: "Bug"
Ticket change [8810cd0658] (rid 131806) by msofer on 2005-08-04 18:53:29:
- 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
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [492ff7705c] (rid 100016) by dkf on 2005-08-04 19:09:11:
- 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.
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [e60502c024] (rid 104225) by msofer on 2005-10-22 10:08:40:
- closedate changed to: "2005-10-22T03:08:40"
- closer changed to: "msofer"
- 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.
- login: "msofer"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "msofer"