Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 8bbb7763e1cf5b52dc0faf681667fbf48d204defdfe788e764599ba9f24bf362
Ticket: 167e0635db79f05d23d766376f6eed32b1572451
`make valgrind` detections
User & Date: dgp on 2024-04-10 15:43:06
Changes

  1. icomment:
    
    Much improved results from changes so far.  Here are remaining reports:
    
    $ make valgrind TESTFLAGS="-file clock.test -verbose bpste"
    ...
    ---- clock-5.1.vm:0 start
    ==32290== Conditional jump or move depends on uninitialised value(s)
    ==32290==    at 0x5514D3: CreateHashEntry (tclHash.c:288)
    ==32290==    by 0x453119: FindOrCreateFmtScnStorage (tclClockFmt.c:799)
    ==32290==    by 0x453254: Tcl_GetClockFrmScnFromObj (tclClockFmt.c:863)
    ==32290==    by 0x4573E1: ClockGetOrParseFmtFormat (tclClockFmt.c:3131)
    ==32290==    by 0x457A50: ClockFormat (tclClockFmt.c:3275)
    ==32290==    by 0x44FA4B: ClockFormatObjCmd (tclClock.c:3599)
    ==32290==    by 0x4373A0: Dispatch (tclBasic.c:4608)
    ==32290==    by 0x437404: TclNRRunCallbacks (tclBasic.c:4624)
    ==32290==    by 0x436CE3: Tcl_EvalObjv (tclBasic.c:4367)
    ==32290==    by 0x439464: TclEvalEx (tclBasic.c:5463)
    ==32290==    by 0x57A155: Tcl_FSEvalFileEx (tclIOUtil.c:1790)
    ==32290==    by 0x587CF9: Tcl_MainEx (tclMain.c:404)
    ==32290==    by 0x40F3CB: main (tclAppInit.c:94)
    ==32290== 
    ++++ clock-5.1.vm:0 PASSED
    ...
    ---- clock-28.1.vm:0 start
    ==32290== Conditional jump or move depends on uninitialised value(s)
    ==32290==    at 0x5514D3: CreateHashEntry (tclHash.c:288)
    ==32290==    by 0x453119: FindOrCreateFmtScnStorage (tclClockFmt.c:799)
    ==32290==    by 0x453254: Tcl_GetClockFrmScnFromObj (tclClockFmt.c:863)
    ==32290==    by 0x454FAC: ClockGetOrParseScanFormat (tclClockFmt.c:2079)
    ==32290==    by 0x4558A0: ClockScan (tclClockFmt.c:2285)
    ==32290==    by 0x44FCA0: ClockScanObjCmd (tclClock.c:3689)
    ==32290==    by 0x4373A0: Dispatch (tclBasic.c:4608)
    ==32290==    by 0x437404: TclNRRunCallbacks (tclBasic.c:4624)
    ==32290==    by 0x436CE3: Tcl_EvalObjv (tclBasic.c:4367)
    ==32290==    by 0x439464: TclEvalEx (tclBasic.c:5463)
    ==32290==    by 0x57A155: Tcl_FSEvalFileEx (tclIOUtil.c:1790)
    ==32290==    by 0x587CF9: Tcl_MainEx (tclMain.c:404)
    ==32290==    by 0x40F3CB: main (tclAppInit.c:94)
    ==32290== 
    ++++ clock-28.1.vm:0 PASSED
    ...
    
    
    At the end are several warnings about read and write after free
    by ClockFmtObj_FreeInternalRep()
    
  2. login: "dgp"
  3. mimetype: "text/plain"