Skip to content
Tcl Source Code History Of Ticket 44452e2c5522c3e8
Login

History Of Ticket 44452e2c5522c3e8

Artifacts Associated With Ticket 44452e2c5522c3e8

  1. Ticket change [b94355e974] (rid 214665) by emiliano on 2023-05-06 18:28:11:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-plain"
    4. 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
      
    5. foundin initialized to: "8.7"
    6. is_private initialized to: "0"
    7. login: "emiliano"
    8. priority initialized to: "5 Medium"
    9. resolution initialized to: "None"
    10. severity initialized to: "Critical"
    11. status initialized to: "Open"
    12. submitter initialized to: "emiliano"
    13. subsystem initialized to: "13. Index Object"
    14. title initialized to: "indexObj.test failures on i386"
    15. type initialized to: "Bug"
  2. Ticket change [475bd009a6] (rid 214667) by chrstphrchvz on 2023-05-06 19:10:09:

    1. icomment:
      Subscribing myself for updates; I can reproduce these 8.7 test failures on IA-32 Linux.
      
    2. login: "chrstphrchvz"
    3. mimetype: "text/x-fossil-wiki"
  3. Ticket change [e4fd038916] (rid 214674) by chrstphrchvz on 2023-05-07 15:16:02:

    1. 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>.
      
    2. login: "chrstphrchvz"
    3. mimetype: "text/x-fossil-wiki"
  4. Ticket change [855115c7ac] (rid 257998) by serhiy.storchaka on 2026-10-14 13:34:26:

    1. icomment:
      Fixed by [/info/fbba7df295|fbba7df295] (endValue is now Tcl_WideInt instead of size_t), in 9.0b1. 8.6 is not affected.
      
    2. login: "serhiy.storchaka"
    3. mimetype: "text/x-fossil-wiki"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  5. Ticket change [9d96ee602f] (rid 259908) by serhiy.storchaka on 2026-10-22 17:19:25:

    1. closedate changed to: "2461328.0655814237"
    2. closer changed to: "serhiy.storchaka"
    3. login: "serhiy.storchaka"