Skip to content
Tcl Source Code History Of Ticket 63530267aa576587
Login

History Of Ticket 63530267aa576587

Artifacts Associated With Ticket 63530267aa576587

  1. Ticket change [80b67e1aa2] (rid 214666) by emiliano on 2023-05-06 18:32:48:

    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, lseq.test shows a failing test.
      
      $ make test TESTFLAGS="-file lseq.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 lseq.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:  lseq.test
      Tests began at Sat May 06 15:29:02 -03 2023
      lseq.test
      
      
      ==== lseq-3.31 lreverse inplace with doubles FAILED
      ==== Contents of test case:
      
          lreverse [lseq 1.1 29.9 0.3]
      
      ---- Result was:
      29.599999999999998 29.299999999999997 28.999999999999996 28.7 28.4 28.099999999999998 27.799999999999997 27.499999999999996 27.2 26.9 26.599999999999998 26.299999999999997 25.999999999999996 25.7 25.4 25.099999999999998 24.799999999999997 24.499999999999996 24.2 23.9 23.599999999999998 23.299999999999997 22.999999999999996 22.7 22.4 22.099999999999998 21.799999999999997 21.499999999999996 21.2 20.9 20.599999999999998 20.299999999999997 20.0 19.7 19.4 19.099999999999998 18.799999999999997 18.5 18.2 17.9 17.599999999999998 17.299999999999997 17.0 16.7 16.4 16.099999999999998 15.799999999999999 15.499999999999998 15.2 14.899999999999999 14.599999999999998 14.299999999999999 13.999999999999998 13.7 13.399999999999999 13.099999999999998 12.799999999999999 12.499999999999998 12.2 11.899999999999999 11.599999999999998 11.299999999999999 10.999999999999998 10.7 10.399999999999999 10.099999999999998 9.799999999999999 9.499999999999998 9.2 8.899999999999999 8.599999999999998 8.299999999999999 7.999999999999998 7.699999999999998 7.399999999999999 7.099999999999999 6.799999999999999 6.499999999999999 6.199999999999998 5.899999999999999 5.599999999999999 5.299999999999999 4.999999999999999 4.699999999999998 4.399999999999999 4.099999999999999 3.799999999999999 3.4999999999999987 3.199999999999999 2.899999999999999 2.5999999999999988 2.299999999999999 1.999999999999999 1.6999999999999988 1.399999999999999 1.099999999999999
      ---- Result should have been (exact matching):
      29.9 29.599999999999998 29.299999999999997 29.0 28.7 28.4 28.099999999999998 27.799999999999997 27.5 27.2 26.9 26.599999999999998 26.299999999999997 26.0 25.7 25.4 25.099999999999998 24.799999999999997 24.5 24.2 23.9 23.599999999999998 23.299999999999997 23.0 22.7 22.4 22.099999999999998 21.799999999999997 21.5 21.2 20.9 20.6 20.299999999999997 20.0 19.7 19.4 19.1 18.799999999999997 18.5 18.2 17.9 17.6 17.299999999999997 17.0 16.7 16.4 16.1 15.799999999999999 15.5 15.2 14.899999999999999 14.6 14.299999999999999 14.0 13.7 13.399999999999999 13.099999999999998 12.8 12.5 12.2 11.899999999999999 11.599999999999998 11.3 11.0 10.7 10.399999999999999 10.099999999999998 9.8 9.5 9.2 8.899999999999999 8.599999999999998 8.3 8.0 7.699999999999999 7.399999999999999 7.099999999999998 6.800000000000001 6.5 6.199999999999999 5.899999999999999 5.599999999999998 5.300000000000001 5.0 4.699999999999999 4.399999999999999 4.099999999999998 3.8000000000000007 3.5 3.1999999999999993 2.8999999999999986 2.599999999999998 2.3000000000000007 2.0 1.6999999999999993 1.3999999999999986 1.1000000000000014
      ==== lseq-3.31 FAILED
      
      
      Tests ended at Sat May 06 15:29:02 -03 2023
      all.tcl:	Total	79	Passed	78	Skipped	0	Failed	1
      Sourced 1 Test Files.
      Files with failing tests: lseq.test
      
    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: "Severe"
    11. status initialized to: "Open"
    12. submitter initialized to: "emiliano"
    13. subsystem initialized to: "- New Builtin Commands"
    14. title initialized to: "lseq.test fail on i386"
    15. type initialized to: "Bug"
  2. Ticket change [8999cac549] (rid 214668) by chrstphrchvz on 2023-05-06 19:13:00:

    1. icomment:
      Subscribing myself for updates; I can reproduce this failure on IA-32 Linux. The same failure was recently mentioned in [a1aaca786b] for 9.0.
      
    2. login: "chrstphrchvz"
    3. mimetype: "text/x-fossil-wiki"
  3. Ticket change [c5608dbd72] (rid 214691) by emiliano on 2023-05-07 20:27:05:

    1. icomment:
      I think the test itself is misguided, as it depends on the (sometimes rather surprising) behaviour of floating point math.
      
      Besides not getting the same actual numbers on my machine, I also noted that I don't get the last (aka end) argument, 29.9 in this case.
      
      I traced this problem to generic/tclArithSeries.c , line 335
      
      	len = (dend - dstart + dstep)/dstep;
      
      len is a Tcl_WideInt argument, while the others are doubles. 
      
      For the values on this test it should be
      
      % expr {(29.9 - 1.1 + 0.3) / 0.3}
      97.0
      
      but a printf() tells me that len is 96. A second printf confirms that 
      
      	((dend - dstart + dstep)/dstep) - 97.0
      
      equals -0.00000000000000147798, so when assigned to an integral value
      it gets promoted to 96, not 97, the series resulting an element short.
      
      I think the precision issue could be solved with [format], maybe using
      
      % lmap x [lseq 1.1 29.9 0.3] {format %g $x}
      1.1 1.4 1.7 2 2.3 2.6 2.9 3.2 3.5 3.8 4.1 4.4 4.7 5 5.3 5.6 5.9 6.2 6.5 6.8 7.1 7.4 7.7 8 8.3 8.6 8.9 9.2 9.5 9.8 10.1 10.4 10.7 11 11.3 11.6 11.9 12.2 12.5 12.8 13.1 13.4 13.7 14 14.3 14.6 14.9 15.2 15.5 15.8 16.1 16.4 16.7 17 17.3 17.6 17.9 18.2 18.5 18.8 19.1 19.4 19.7 20 20.3 20.6 20.9 21.2 21.5 21.8 22.1 22.4 22.7 23 23.3 23.6 23.9 24.2 24.5 24.8 25.1 25.4 25.7 26 26.3 26.6 26.9 27.2 27.5 27.8 28.1 28.4 28.7 29 29.3 29.6
      
      Note that on this machine, using 29.900000000000001 instead of 29.9 is enough to get the extra element.
      
    2. login: "emiliano"
    3. mimetype: "text/plain"
  4. Ticket change [04833e5817] (rid 215905) by chrstphrchvz on 2023-06-25 20:04:04:

    1. assignee changed to: "griffin"
    2. icomment:
      Assigning this ticket to Brian, who has been working on this test.
      
      This may be related to [e5f06285de] which is still present on 8.7.
      
      As of [7ad6f6f6ad05], lseq-3.31 and a few similar tests are skipped for 32-bit on 9.0 using the constraint has64BitLengths. I do not understand why that is appropriate.
      
    3. login: "chrstphrchvz"
    4. mimetype: "text/x-fossil-wiki"
    5. subsystem changed to: "52. Portability Support"
  5. Ticket change [72e72915a5] (rid 216051) by chrstphrchvz on 2023-06-30 02:26:44:

    1. icomment:
      I believe the <tt>has64BitLengths</tt> constraint can be removed from these tests which pass on 32-bit:
      <ul><li>
      lseq-3.31, lseq-4.14, and lseq-4.15, which pass as of [f7688d05ca]
      </li><li>
      lseq-4.11, which appears to have always passed since its introduction in [d31251277c]
      </li></ul>
      
    2. login: "chrstphrchvz"
    3. mimetype: "text/x-fossil-wiki"
  6. Ticket change [d6ce45b56d] (rid 216052) by chrstphrchvz on 2023-06-30 02:31:28:

    1. icomment:
      …It also makes sense to keep the <tt>has64BitLengths</tt> constraint for lseq-4.4, lseq-4.12, and lseq-4.13.
      
    2. login: "chrstphrchvz"
    3. mimetype: "text/x-fossil-wiki"
  7. Ticket change [ffb0d07711] (rid 216098) by griffin on 2023-06-30 20:37:16:

    1. closedate changed to: "2460126.35921565"
    2. closer changed to: "griffin"
    3. icomment:
      The lseq test has been synchronized between core-8-branch and main.
      
    4. login: "griffin"
    5. mimetype: "text/x-markdown"
    6. status changed to: "Closed"