Skip to content
Tcl Source Code History Of Ticket c87f07eb18a4662f
Login

History Of Ticket c87f07eb18a4662f

Artifacts Associated With Ticket c87f07eb18a4662f

  1. Ticket change [40cfde1729] (rid 220270) by dgp on 2023-11-14 19:03:06:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-plain"
    4. comment initialized to:
      $ make test-tcl TESTFLAGS='-file "listObj.test string.test" -singleproc 1 -match "listobj-14.1 string-*"'
      ...
      listObj.test
      string.test
      
      
      ==== string-5.1.0 string index FAILED
      ==== Contents of test case:
      
          list [catch {run {string index}} msg] $msg
      
      ---- Result was:
      1 {wrong # args: should be "string {} string charIndex"}
      ---- Result should have been (exact matching):
      1 {wrong # args: should be "string index string charIndex"}
      ==== string-5.1.0 FAILED
      
      
      
      ==== string-5.2.0 string index FAILED
      ==== Contents of test case:
      
          list [catch {run {string index a b c}} msg] $msg
      
      ---- Result was:
      1 {wrong # args: should be "string {} string charIndex"}
      ---- Result should have been (exact matching):
      1 {wrong # args: should be "string index string charIndex"}
      ==== string-5.2.0 FAILED
      
    5. foundin initialized to: "trunk"
    6. is_private initialized to: "0"
    7. login: "dgp"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "8e2300e85be5dd1445b9666eb9429055951e33be"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "dgp"
    14. subsystem initialized to: "14. List Object"
    15. title initialized to: "-singleproc 1 test interference failure"
    16. type initialized to: "Bug"
  2. Ticket change [3037af1940] (rid 220448) by dgp on 2023-11-20 17:13:23:

    1. icomment:
      
      I think another manifestation of the same problem:
      
      $ make gdb-test TESTFLAGS='-singleproc 1 -file "listObj.test string.test"'
      ...
      Tests began at Mon Nov 20 12:05:07 EST 2023
      listObj.test
      string.test
      
      Program received signal SIGSEGV, Segmentation fault.
      0x00007ffff72448e5 in __strlen_sse2_pminub () from /lib64/libc.so.6
      Missing separate debuginfos, use: debuginfo-install glibc-2.17-326.el7_9.x86_64 zlib-1.2.7-21.el7_9.x86_64
      (gdb) bt
      #0  0x00007ffff72448e5 in __strlen_sse2_pminub () from /lib64/libc.so.6
      #1  0x0000000000544939 in Tcl_WrongNumArgs (interp=0x8e9860, objc=0, 
          objv=0xbfc090, message=0x6395a0 "string charIndex")
          at /home/dgp/fossil/tcl9.0b1/generic/tclIndexObj.c:872
      #2  0x00000000004609eb in StringIndexCmd (dummy1396=0x0, interp=0x8e9860, 
          objc=1, objv=0xbfc088) at /home/dgp/fossil/tcl9.0b1/generic/tclCmdMZ.c:1404
      #3  0x00000000004375be in Dispatch (data=0xfa2ae8, interp=0x8e9860, 
          dummy4558=0) at /home/dgp/fossil/tcl9.0b1/generic/tclBasic.c:4596
      #4  0x0000000000437625 in TclNRRunCallbacks (interp=0x8e9860, result=0, 
          rootPtr=0x0) at /home/dgp/fossil/tcl9.0b1/generic/tclBasic.c:4612
      #5  0x0000000000436da1 in Tcl_EvalObjv (interp=0x8e9860, objc=3, 
          objv=0x8edbf0, flags=2097168)
          at /home/dgp/fossil/tcl9.0b1/generic/tclBasic.c:4355
      #6  0x0000000000439813 in TclEvalEx (interp=0x8e9860, 
          script=0x98d6d0 "# all.tcl --\n#\n# This file contains a top-level script to run all of the Tcl\n# tests.  Execute it by invoking \"source all.tcl\" when running tcltest\n# in this directory.\n#\n# Copyright © 1998-1999 Scri"..., 
          numBytes=1012, flags=0, line=26, clNextOuter=0x0, 
          outerScript=0x98d6d0 "# all.tcl --\n#\n# This file contains a top-level script to run all of the Tcl\n# tests.  Execute it by invoking \"source all.tcl\" when running tcltest\n# in this directory.\n#\n# Copyright © 1998-1999 Scri"...)
          at /home/dgp/fossil/tcl9.0b1/generic/tclBasic.c:5451
      #7  0x000000000056ab46 in Tcl_FSEvalFileEx (interp=0x8e9860, pathPtr=0x941ea0, 
          encodingName=0x643ea9 "utf-8")
          at /home/dgp/fossil/tcl9.0b1/generic/tclIOUtil.c:1784
      #8  0x0000000000578466 in Tcl_MainEx (argc=-1, argv=0x7fffffffcd08, 
          appInitProc=0x40f31c <Tcl_AppInit>, interp=0x8e9860)
          at /home/dgp/fossil/tcl9.0b1/generic/tclMain.c:412
      #9  0x000000000040f31c in main (argc=8, argv=0x7fffffffcd08)
          at /home/dgp/fossil/tcl9.0b1/unix/tclAppInit.c:94
      
    2. login: "dgp"
    3. mimetype: "text/plain"
  3. Ticket change [3ecde8effe] (rid 220449) by dgp on 2023-11-20 17:13:47:

    1. login: "dgp"
    2. mimetype: "text/plain"
    3. severity changed to: "Severe"
  4. Ticket change [ede8e2e8ba] (rid 220450) by dgp on 2023-11-20 19:21:26:

    1. icomment:
      
      Segfault from this minimized demo script:
      
      testobj set 1 [list]
      testlistobj index 1 -1
      string index
      
      testlistobj does something to the literal value "index"
      that later shared use in [string index] is not happy with.
      
    2. login: "dgp"
    3. mimetype: "text/plain"
  5. Ticket change [b1efbff536] (rid 220451) by dgp on 2023-11-20 19:49:52:

    1. icomment:
      
      All boils down to a missing flag argument TCL_INDEX_TEMP_TABLE not
      passed to Tcl_GetIndexFromObj() when it must be.
      
    2. login: "dgp"
    3. mimetype: "text/plain"
  6. Ticket change [0a1b3e73da] (rid 220479) by jan.nijtmans on 2023-11-20 20:57:14:

    1. icomment:
      I don't think adding TCL_INDEX_TEMP_TABLE is the 'right' solution here: The real problem was a missing 'static' keyword. Added now.
      
    2. login: "jan.nijtmans"
    3. mimetype: "text/x-fossil-wiki"
  7. Ticket change [e09312af0b] (rid 220484) by jan.nijtmans on 2023-11-20 21:57:03:

    1. assignee changed to: "dgp"
    2. closedate changed to: "2460269.41462856"
    3. closer changed to: "jan.nijtmans"
    4. login: "jan.nijtmans"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"