|
2026-10-22
| ||
| 17:19 | • Ticket [44452e2c55] indexObj.test failures on i386 status still Closed with ... artifact: 9d96ee602f user: serhiy.storchaka | |
|
2026-10-14
| ||
| 13:34 | • Closed ticket [44452e2c55]. artifact: 855115c7ac user: serhiy.storchaka | |
|
2024-06-14
| ||
| 05:20 | Fix [44452e2c55]: indexObj.test failures on i386. check-in: f302a6c7fa user: pooryorick tags: unchained | |
|
2023-06-22
| ||
| 19:00 | Fix [44452e2c55]: indexObj.test failures on i386 check-in: fbba7df295 user: jan.nijtmans tags: core-8-branch | |
| 11:59 | Proposed fix for [44452e2c55]: indexObj.test failures on i386 closed check-in: 05df422a98 user: jan.nijtmans tags: bug-44452e2c55 | |
|
2023-05-07
| ||
| 15:16 | • Ticket [44452e2c55] indexObj.test failures on i386 status still Open with 3 ... artifact: e4fd038916 user: chrstphrchvz | |
|
2023-05-06
| ||
| 19:10 | • Ticket [44452e2c55]: 3 changes artifact: 475bd009a6 user: chrstphrchvz | |
| 18:28 | • New ticket [44452e2c55]. artifact: b94355e974 user: emiliano | |
indexObj.test failures on i386
Testing core-8-branch on linux 32 bits, indexObj.test shows three failing tests.
$ make test TESTFLAGS="-file indexObj.test"
Warning: tclOOScript.h may be out of date.
Developers may want to run "make genscript" to regenerate.
This warning can be safely ignored, do not report as a bug!
LD_LIBRARY_PATH=`pwd`: TCLLIBPATH="/home/carla/src/tcl/unix/pkgs" TCL_LIBRARY="/home/carla/src/tcl/library" ./tcltest /home/carla/src/tcl/tests/all.tcl -file indexObj.test
Tests running in interp: /home/carla/src/tcl/unix/tcltest
Tests located in: /home/carla/src/tcl/tests
Tests running in: /home/carla/src/tcl/unix
Temporary files stored in /home/carla/src/tcl/unix
Test files run in separate interpreters
Running tests that match: *
Skipping test files that match: l.*.test
Only running test files that match: indexObj.test
Tests began at Sat May 06 15:21:25 -03 2023
indexObj.test
==== indexObj-8.11 Tcl_GetIntForIndex end-1 FAILED
==== Contents of test case:
testgetintforindex end-1 -2
---- Result was:
2147483647
---- Result should have been (exact matching):
-3
==== indexObj-8.11 FAILED
==== indexObj-8.13 Tcl_GetIntForIndex end FAILED
==== Contents of test case:
testgetintforindex end -2
---- Result was:
2147483647
---- Result should have been (exact matching):
-2
==== indexObj-8.13 FAILED
==== indexObj-8.15 Tcl_GetIntForIndex end+1 FAILED
==== Contents of test case:
testgetintforindex end+1 -2
---- Result was:
2147483647
---- Result should have been (exact matching):
-1
==== indexObj-8.15 FAILED
Tests ended at Sat May 06 15:21:25 -03 2023
all.tcl: Total 56 Passed 52 Skipped 1 Failed 3
Sourced 1 Test Files.
Files with failing tests: indexObj.test
Number of tests skipped for each constraint:
1 obsolete
f302a6c7faFix [44452e2c55]: indexObj.test failures on i386. check-in2024-06-14 05:20:43fbba7df295Fix [44452e2c55]: indexObj.test failures on i386 check-in2023-06-22 19:00:5905df422a98Proposed fix for [44452e2c55]: indexObj.test failures on i386 check-in2023-06-22 11:59:58
Subscribing myself for updates; I can reproduce these 8.7 test failures on IA-32 Linux.
I would say these failures are because endValue in GetWideForIndex() and GetEndOffsetFromObj() is size_t, i.e. 32-bit unsigned, and must be widened to Tcl_WideInt in this statement in GetEndOffsetFromObj():
/* Different signs, sum cannot overflow */ *widePtr = endValue + offset + 1;The result of this statement is stored in wide in Tcl_GetIntForIndex() which then gets capped to INT_MAX for these failing tests.
But trying (ssize_t)endValue just in the statement above breaks init.tcl, so maybe there is more to the problem.
And rather than trying to treat endValue as signed in one spot, maybe it can be made Tcl_WideInt, as done by TIP 660 for 9.0; I think that might be appropriate since endValue comes from either a Tcl_WideInt (from a Tcl value) or an int.
Fixed by fbba7df295 (endValue is now Tcl_WideInt instead of size_t), in 9.0b1. 8.6 is not affected.