Artifacts Associated With Ticket 44452e2c55
Ticket change [b94355e974] (rid 214665) by emiliano on 2023-05-06 18:28:11:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-plain"
- comment initialized to:
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 - foundin initialized to: "8.7"
- is_private initialized to: "0"
- login: "emiliano"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- severity initialized to: "Critical"
- status initialized to: "Open"
- submitter initialized to: "emiliano"
- subsystem initialized to: "13. Index Object"
- title initialized to: "indexObj.test failures on i386"
- type initialized to: "Bug"
Ticket change [475bd009a6] (rid 214667) by chrstphrchvz on 2023-05-06 19:10:09:
- icomment:
Subscribing myself for updates; I can reproduce these 8.7 test failures on IA-32 Linux.
- login: "chrstphrchvz"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [e4fd038916] (rid 214674) by chrstphrchvz on 2023-05-07 15:16:02:
- icomment:
I would say these failures are because <tt>endValue</tt> in <tt>GetWideForIndex()</tt> and <tt>GetEndOffsetFromObj()</tt> is <tt>size_t</tt>, i.e. 32-bit unsigned, and must be widened to <tt>Tcl_WideInt</tt> in this statement in <tt>GetEndOffsetFromObj()</tt>: <pre> /* Different signs, sum cannot overflow */ *widePtr = endValue + offset + 1; </pre> The result of this statement is stored in <tt>wide</tt> in <tt>Tcl_GetIntForIndex()</tt> which then gets capped to <tt>INT_MAX</tt> for these failing tests. But trying <tt>(ssize_t)endValue</tt> just in the statement above breaks init.tcl, so maybe there is more to the problem. And rather than trying to treat <tt>endValue</tt> as signed in one spot, maybe it can be made <tt>Tcl_WideInt</tt>, as done by TIP 660 for 9.0; I think that might be appropriate since <tt>endValue</tt> comes from either a <tt>Tcl_WideInt</tt> (from a Tcl value) or an <tt>int</tt>.
- login: "chrstphrchvz"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [855115c7ac] (rid 257998) by serhiy.storchaka on 2026-10-14 13:34:26:
- icomment:
Fixed by [/info/fbba7df295|fbba7df295] (endValue is now Tcl_WideInt instead of size_t), in 9.0b1. 8.6 is not affected.
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- icomment:
Ticket change [9d96ee602f] (rid 259908) by serhiy.storchaka on 2026-10-22 17:19:25:
- closedate changed to: "2461328.0655814237"
- closer changed to: "serhiy.storchaka"
- login: "serhiy.storchaka"