Skip to content
Tcl Source Code History Of Ticket 5f236bc67a
Login

History Of Ticket 5f236bc67a

Artifacts Associated With Ticket 5f236bc67a

  1. Ticket change [f8476bb7d4] (rid 177711) by chw on 2019-12-09 07:42:21:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      Sorry for being a PITA, here is another test case:
      
      1. build a core-8-branch tclsh (x86_64, linux, static, symbols, purify, standard TCL_UTF_MAX=3)
      
      2. run it interactively in
           valgrind --track-origins=yes --leak-check=full -v ...
      
      3. type at tclsh's prompt
           puts "\udcdc\ud8d8\ueeee"
      
      4. observe immediately
      
      ==22743== Conditional jump or move depends on uninitialised value(s)
      ==22743==    at 0x296323: Tcl_UniCharToUtf (tclUtf.c:159)
      ==22743==    by 0x1FCCF5: UtfToUtfProc (tclEncoding.c:2425)
      ==22743==    by 0x1FC9BA: UtfIntToUtfExtProc (tclEncoding.c:2247)
      ==22743==    by 0x1FB2AE: Tcl_UtfToExternal (tclEncoding.c:1477)
      ==22743==    by 0x23898B: Write (tclIO.c:4336)
      ==22743==    by 0x2386AA: Tcl_WriteObj (tclIO.c:4208)
      ==22743==    by 0x242674: Tcl_PutsObjCmd (tclIOCmd.c:183)
      ==22743==    by 0x135EE6: Dispatch (tclBasic.c:4811)
      ==22743==    by 0x135F6C: TclNRRunCallbacks (tclBasic.c:4851)
      ==22743==    by 0x138912: TclEvalObjEx (tclBasic.c:6420)
      ==22743==    by 0x1388A6: Tcl_EvalObjEx (tclBasic.c:6401)
      ==22743==    by 0x2FDC56: Tcl_RecordAndEvalObj (tclHistory.c:189)
      ==22743==  Uninitialised value was created by a heap allocation
      ...
      
      5. repeat step 3, no more valgrind complaints seen
      
    5. foundin initialized to: "core-8-branch"
    6. is_private initialized to: "0"
    7. login: "chw"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "0b3aff16612e1e9f3b675963fa64e01bd1d89307"
    10. resolution initialized to: "None"
    11. severity initialized to: "Important"
    12. status initialized to: "Open"
    13. submitter initialized to: "chw"
    14. subsystem initialized to: "44. UTF-8 Strings"
    15. title initialized to: "valgrind report for Tcl_UniCharToUtf"
    16. type initialized to: "Bug"
  2. Ticket change [040ebb8e13] (rid 177741) by jan.nijtmans on 2019-12-09 19:38:30:

    1. icomment:
      No problem. My original intention was to make core-8-6-branch work fine with TCL_UTF_MAX=3, and core-8-branch with TCL_UTF_MAX=4|6. But ... while backporting things to core-8-6-branch I might as well make it work for all TCL_UTF_MAX values gradually.
      
      I think I got everything covered now in [3e0a616f7e9bf5a2]. I'll see if I can test it with Valgrind.
      
      Thanks!
      
    2. login: "jan.nijtmans"
    3. mimetype: "text/x-fossil-wiki"
  3. Ticket change [e45dc2d151] (rid 177762) by jan.nijtmans on 2019-12-11 09:00:22:

    1. assignee changed to: "jan.nijtmans"
    2. closedate changed to: "2458828.87526256"
    3. closer changed to: "jan.nijtmans"
    4. icomment:
      Looks like valgrind is satisfied now.
      
      Thanks for persuing this!
      
    5. login: "jan.nijtmans"
    6. mimetype: "text/x-fossil-wiki"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"