|
2014-04-15
| ||
| 10:46 | • Ticket [e663138a06] Test failures in "string is" status still Clos... artifact: ee7911a242 user: jan.nijtmans | |
| 10:41 | Test-cases which pick up the completion of bug-fix [e663138a06d98e48b5fbb42cc015cf1698f486cd|e663138... check-in: f13e5bd0cf user: jan.nijtmans tags: trunk | |
|
2014-04-14
| ||
| 18:45 | • Closed ticket [e663138a06]: Test failures in "string is" plus 5 ot... artifact: b201ffc640 user: dgp | |
| 18:45 | [e663138a06] Fix the new INST_NUM_TYPE instruction so that the boundary cases of [string is] on inte... check-in: 5eae727664 user: dgp tags: trunk | |
| 17:23 | • Ticket [e663138a06] Test failures in "string is" status still Open... artifact: 1cfee298e0 user: dgp | |
| 17:14 | • Ticket [e663138a06]: 3 changes artifact: 01fd33f2de user: dgp | |
| 16:44 | • Ticket [e663138a06]: 3 changes artifact: 2d621fec29 user: dgp | |
| 15:03 | • Open ticket [e663138a06]. artifact: 616a727781 user: dgp | |
|
2014-04-10
| ||
| 07:57 | Fix bug [e663138a06]: Test failures in "string is" check-in: 772c763815 user: jan.nijtmans tags: trunk | |
| 07:55 | • Closed ticket [e663138a06]: Test failures in "string is" plus 7 ot... artifact: f97e8622b1 user: jan.nijtmans | |
|
2014-04-09
| ||
| 13:38 | • Ticket [e663138a06]: 3 changes artifact: 7e89dcfccb user: jan.nijtmans | |
| 12:40 | • Ticket [e663138a06]: 3 changes artifact: c34d785347 user: jan.nijtmans | |
| 12:40 | • New ticket [e663138a06]. artifact: 9b8d7edf0c user: jan.nijtmans | |
Test failures in "string is"
Closed / Fixede663138a06d98e48b5fbb42cc015cf1698f486cdCreated 13 years agoUpdated 13 years ago
Descriptionplain2014-04-09 12:40:22
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
Referenced by3
f13e5bd0cfTest-cases which pick up the completion of bug-fix [e663138a06d98e48b5fbb42cc015cf1698f486cd|e663138a06]. Thanks, Don! check-in2014-04-15 10:41:445eae727664[e663138a06] Fix the new INST_NUM_TYPE instruction so that the boundary cases of [string is] on integral values are computed right. Code is now correct, though still suffers from a large amount of ugly. check-in2014-04-14 18:45:04772c763815Fix bug [e663138a06]: Test failures in "string is" check-in2014-04-10 07:57:18
jan.nijtmans Ticket [e663138a06]: 3 changes
[History diff]2014-04-09 12:40:52
jan.nijtmansplain2014-04-09 13:38:17
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
jan.nijtmanswiki2014-04-10 07:55:17
Fixed in [772c763815]
dgpplain2014-04-14 15:03:38
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.
dgpplain2014-04-14 16:44:09
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?
dgpplain2014-04-14 17:14:27
confirmed this bug also arrived with 2014-02-02 16:01:21 f74647ceeb7e1692 BAD
dgpplain2014-04-14 17:23:27
Tests string-6.9[2-4] test this boundary, but they are non-compiled cases only, so didn't pick up on this incompat.
dgpplain2014-04-14 18:45:45
Fixed in trunk.
jan.nijtmanswiki2014-04-15 10:46:58
> We really don't cover this in the test suite? > Really? Now we do. Thanks Don!!!! [f13e5bd0cf]
Log in (anonymous is fine) to add a comment.