Skip to content
Tcl Source Code History Of Ticket 1fe745559aed47f0
Login

History Of Ticket 1fe745559aed47f0

Artifacts Associated With Ticket 1fe745559aed47f0

  1. Ticket change [a8d1e2ee03] (rid 197672) by pointsman on 2022-02-07 14:26:39:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      This script:
      
      foreach str {
          \uD802
      } {
          puts [string length $str]
      }
      
      running under valgrind with a -DPURIFY 8.7 or 9.0 build (both current branch head)
      reports:
      
       Conditional jump or move depends on uninitialised value(s)
          at 0x4DFD828: Tcl_UniCharToUtf (tclUtf.c:234)
          by 0x4DCD952: TclParseBackslash (tclParse.c:955)
          by 0x4E00DA8: TclCopyAndCollapse (tclUtil.c:806)
          by 0x4DBAD22: SetListFromAny (tclListObj.c:2087)
          by 0x4DB7BBA: TclListObjCopy (tclListObj.c:433)
          by 0x4CA5B11: EachloopCmd (tclCmdAH.c:2681)
          by 0x4CA5673: TclNRForeachCmd (tclCmdAH.c:2577)
          by 0x4C8EB4B: Dispatch (tclBasic.c:4923)
          by 0x4C8EBD1: TclNRRunCallbacks (tclBasic.c:4963)
          by 0x4C8E499: Tcl_EvalObjv (tclBasic.c:4682)
          by 0x4C90950: TclEvalEx (tclBasic.c:5838)
          by 0x4DB0C85: Tcl_FSEvalFileEx (tclIOUtil.c:1782)
        Uninitialised value was created by a heap allocation
          at 0x4A34E6D: malloc (vg_replace_malloc.c:309)
          by 0x4C81F7F: TclpAlloc (tclAlloc.c:699)
          by 0x4DC8296: Tcl_InitStringRep (tclObj.c:1824)
          by 0x4DBAC88: SetListFromAny (tclListObj.c:2075)
          by 0x4DB7BBA: TclListObjCopy (tclListObj.c:433)
          by 0x4CA5B11: EachloopCmd (tclCmdAH.c:2681)
          by 0x4CA5673: TclNRForeachCmd (tclCmdAH.c:2577)
          by 0x4C8EB4B: Dispatch (tclBasic.c:4923)
          by 0x4C8EBD1: TclNRRunCallbacks (tclBasic.c:4963)
          by 0x4C8E499: Tcl_EvalObjv (tclBasic.c:4682)
          by 0x4C90950: TclEvalEx (tclBasic.c:5838)
          by 0x4DB0C85: Tcl_FSEvalFileEx (tclIOUtil.c:1782)
      
    5. foundin initialized to: "8.7, 9.0"
    6. is_private initialized to: "0"
    7. login: "pointsman"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "4ca203a8e925aecdd9419645f936bccf18cd6ea7"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "pointsman"
    14. subsystem initialized to: "44. UTF-8 Strings"
    15. title initialized to:
      8.7, 9.0: Conditional jump or move depends on uninitialised value in Tcl_UniCharToUtf
      
    16. type initialized to: "Bug"
  2. Ticket change [784807c72a] (rid 197700) by jan.nijtmans on 2022-02-07 15:36:11:

    1. icomment:
      Proposed fix (8.7) here: [4e0909a17e33629c]
      
      Thanks for the report!
      
    2. login: "jan.nijtmans"
    3. mimetype: "text/x-fossil-wiki"
  3. Ticket change [86edc7e645] (rid 197710) by pointsman on 2022-02-07 21:20:23:

    1. icomment:
      
      Yes, with [4e0909a17e33629c] valgrind doesn't complain about this anymore. Seems this was it.
      
      For the record, I must have botched my test script, while minimizing it. At least I don't see the valgrind report anymore with the original test script with core-8-branch. But I see it with this one:
      
      foreach str {
          \uDFFF
      } {
          puts [string length $str]
      }
      
      While this shows the problem relibale with 8.7 it is gone with [4e0909a17e33629c].
      
    2. login: "pointsman"
    3. mimetype: "text/plain"
  4. Ticket change [b16224b9fe] (rid 197715) by jan.nijtmans on 2022-02-07 22:22:48:

    1. assignee changed to: "jan.nijtmans"
    2. closedate changed to: "2459618.43250656"
    3. closer changed to: "jan.nijtmans"
    4. icomment:
      Merged now to core-8-branch and trunk. Closing.
      
      Thanks for your confirmation that it's now fixed!
      
    5. login: "jan.nijtmans"
    6. mimetype: "text/x-fossil-wiki"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"