Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 707f014dcb5f3ee7bf97f0b0df0b62ba7f696e6a34d3862de3a50013b93d56cb
Ticket: 79474c58800cdf94559a2c01230b4536aa416016
refchan segfault
User & Date: apnadkarni on 2024-05-17 07:59:10
Changes

  1. icomment:
    Not reviewed yet but there is still a leak - looks like a different one though, and again not related to your changes but exposed by them, I think.
    
    Only the tail of the log is below as it is quite large. Let me know if it would help to have the full log.
    
    ```
    repository:   d:\src\repos\tcl.fossil
    local-root:   c:/src/tcltk/wip/tcl/
    config-db:    C:/Users/apnad/AppData/Local/_fossil
    checkout:     47cb98a686c4276bab91492c7a31265ae9be56d6 2024-05-16 20:28:04 UTC
    ...
    ==5186== 6,440 (48 direct, 6,392 indirect) bytes in 1 blocks are definitely lost in loss record 113 of 113
    ==5186==    at 0x483B7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
    ==5186==    by 0x488CB64: TclpAlloc (tclAlloc.c:699)
    ==5186==    by 0x48A7273: Tcl_Alloc (tclCkalloc.c:1059)
    ==5186==    by 0x49D7CEA: Tcl_DuplicateObj (tclObj.c:1587)
    ==5186==    by 0x49F4AE2: Tcl_GetReturnOptions (tclResult.c:1588)
    ==5186==    by 0x49B6DC9: MarshallError (tclIORChan.c:997)
    ==5186==    by 0x49B8E4B: InvokeTclMethod (tclIORChan.c:2380)
    ==5186==    by 0x49B7566: ReflectInput (tclIORChan.c:1331)
    ==5186==    by 0x49A3E66: ChanRead (tclIO.c:425)
    ==5186==    by 0x49ABE48: GetInput (tclIO.c:6941)
    ==5186==    by 0x49B09C8: DoRead (tclIO.c:9955)
    ==5186==    by 0x49AFE46: CopyData (tclIO.c:9627)
    ==5186==    by 0x49AF35E: TclCopyChannel (tclIO.c:9294)
    ==5186==    by 0x49B58BF: Tcl_FcopyObjCmd (tclIOCmd.c:1719)
    ==5186==    by 0x4899156: Dispatch (tclBasic.c:4503)
    ==5186==    by 0x48991E0: TclNRRunCallbacks (tclBasic.c:4539)
    ==5186==    by 0x489BECD: TclEvalObjEx (tclBasic.c:6104)
    ==5186==    by 0x489BE5D: Tcl_EvalObjEx (tclBasic.c:6085)
    ==5186==    by 0x49AECAD: TclChannelEventScriptInvoker (tclIO.c:8996)
    ==5186==    by 0x49AE27A: Tcl_NotifyChannel (tclIO.c:8455)
    ==5186==    by 0x4A24AE6: FileWatchNotifyChannelWrapper (tclUnixChan.c:491)
    ==5186==    by 0x4A3233E: FileHandlerEventProc (tclUnixNotfy.c:808)
    ==5186==    by 0x49D6B71: Tcl_ServiceEvent (tclNotify.c:670)
    ==5186==    by 0x49D6FC1: Tcl_DoOneEvent (tclNotify.c:967)
    ==5186==
    ==5186== LEAK SUMMARY:
    ==5186==    definitely lost: 48 bytes in 1 blocks
    ==5186==    indirectly lost: 6,392 bytes in 129 blocks
    ==5186==      possibly lost: 0 bytes in 0 blocks
    ==5186==    still reachable: 0 bytes in 0 blocks
    ==5186==         suppressed: 0 bytes in 0 blocks
    ```
    
  2. login: "apnadkarni"
  3. mimetype: "text/x-markdown"