Artifacts Associated With Ticket e663138a06
Ticket change [9b8d7edf0c] (rid 137550) by jan.nijtmans on 2014-04-09 12:40:22:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
When running the test-suite on Win32 or Win64, see test results below: I see those failures only on Windows, not on UNIX or Cygwin. Bisecting shows that this problem was introduced with commit [f74647ceeb7e1692] ========================================================== Tests began at Wed Apr 09 14:17:33 CEST 2014 obj.test ==== obj-33.1 integer overflow on input FAILED ==== Contents of test case: set x 0x8000; append x 0000 list [string is integer $x] [expr { wide($x) }] ---- Result was: 0 2147483648 ---- Result should have been (exact matching): 1 2147483648 ==== obj-33.1 FAILED ==== obj-33.2 integer overflow on input FAILED ==== Contents of test case: set x 0xffff; append x ffff list [string is integer $x] [expr { wide($x) }] ---- Result was: 0 4294967295 ---- Result should have been (exact matching): 1 4294967295 ==== obj-33.2 FAILED ==== obj-33.5 integer overflow on input FAILED ==== Contents of test case: set x -0x8000; append x 0001 list [string is integer $x] [expr { wide($x) }] ---- Result was: 0 -2147483649 ---- Result should have been (exact matching): 1 -2147483649 ==== obj-33.5 FAILED ==== obj-33.6 integer overflow on input FAILED ==== Contents of test case: set x -0xffff; append x ffff list [string is integer $x] [expr { wide($x) }] ---- Result was: 0 -4294967295 ---- Result should have been (exact matching): 1 -4294967295 ==== obj-33.6 FAILED Tests ended at Wed Apr 09 14:17:33 CEST 2014 all.tcl: Total 90 Passed 86 Skipped 0 Failed 4 Sourced 1 Test Files. Files with failing tests: obj.test - foundin initialized to: "f74647ceeb7e1692"
- is_private initialized to: "0"
- login: "jan.nijtmans"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- severity initialized to: "Critical"
- status initialized to: "Open"
- submitter initialized to: "jan.nijtmans"
- subsystem initialized to: "11. Conversions from String"
- title initialized to: "Test failures in "string is""
- type initialized to: "Bug"
Ticket change [c34d785347] (rid 137551) by jan.nijtmans on 2014-04-09 12:40:52:
- assignee changed to: "dkf"
- login: "jan.nijtmans"
- mimetype: "text/plain"
Ticket change [7e89dcfccb] (rid 137552) by jan.nijtmans on 2014-04-09 13:38:17:
- icomment:
Just tried the same on Cygwin32, it gave exactly the same failures. The reason the failures do not occur on Cygwin64 (or any other 64-bit platform !- Win64) is that the constraint "wideBiggerThanInt" is not set, which disables those test-cases. The difference with Tcl 8.5 can be seen here: $ tclsh8.5 % string is integer -4294967295 1 % string is integer -4294967296 0 % exit $ tclsh8.6 % string is integer -2147483648 1 % string is integer -2147483649 0 % exit
- login: "jan.nijtmans"
- mimetype: "text/plain"
- icomment:
Ticket change [f97e8622b1] (rid 137555) by jan.nijtmans on 2014-04-10 07:55:17:
- assignee changed to: "jan.nijtmans"
- closedate changed to: "2456757.83006847"
- closer changed to: "jan.nijtmans"
- icomment: "Fixed in [772c763815]"
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [616a727781] (rid 137581) by dgp on 2014-04-14 15:03:38:
- assignee changed to: "dgp"
- closer changed to: "nobody"
- icomment:
The patch committed is effective for the set of symptoms reported, but doesn't address the deeper defect. The INST_NUM_TYPE instruction appears based on the premise that the type values returned by TclGetNumberFromObj() map onto the classifications sorted by [string is]. That premise is false. More bugs like this, I'm sure, can be demonstrated at the other boundaries between integer classifications.
- login: "dgp"
- mimetype: "text/plain"
- status changed to: "Open"
Ticket change [2d621fec29] (rid 137583) by dgp on 2014-04-14 16:44:09:
- icomment:
Clearest bug on current trunk on typical 64-bit systems: % string is integer 0x100000000 1 We really don't cover this in the test suite? Really?
- login: "dgp"
- mimetype: "text/plain"
- icomment:
Ticket change [01fd33f2de] (rid 137584) by dgp on 2014-04-14 17:14:27:
- icomment:
confirmed this bug also arrived with 2014-02-02 16:01:21 f74647ceeb7e1692 BAD
- login: "dgp"
- mimetype: "text/plain"
- icomment:
Ticket change [1cfee298e0] (rid 137585) by dgp on 2014-04-14 17:23:27:
- icomment:
Tests string-6.9[2-4] test this boundary, but they are non-compiled cases only, so didn't pick up on this incompat.
- login: "dgp"
- mimetype: "text/plain"
- icomment:
Ticket change [b201ffc640] (rid 137588) by dgp on 2014-04-14 18:45:45:
- closedate changed to: "2456762.28177164"
- closer changed to: "dgp"
- icomment: "Fixed in trunk."
- login: "dgp"
- mimetype: "text/plain"
- status changed to: "Closed"
Ticket change [ee7911a242] (rid 137600) by jan.nijtmans on 2014-04-15 10:46:58:
- closedate changed to: "2456762.94929019"
- closer changed to: "jan.nijtmans"
- icomment:
> We really don't cover this in the test suite? > Really? Now we do. Thanks Don!!!! [f13e5bd0cf9c495ff876bda3b1dd8f125b9bd4f1|f13e5bd0cf]
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"