Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 75d2cc1df4e541edea294ac0b32f9b569cfd8748684ed6083965b9c1a2b6601a
Ticket: 79474c58800cdf94559a2c01230b4536aa416016
refchan segfault
User & Date: sebres on 2024-05-15 13:08:50
Changes

  1. icomment:
    Here you go - in branch [fix-79474c58800cdf94](./timeline?r=fix-79474c58800cdf94) you'd find a [PR with a test and fix](./vdiff?from=79ebe65436469497&to=fix-79474c58800cdf94).
    
    And you was right, solely protection by ref-counting of csPtr doesn't always work (additionally it needs preserving of referenced r/w channels as well as small change in DoRead exiting with an error if no bufPtr is there). 
    Anyway it works as expected now (and I also did not see any leak there after implementation of ref-counter).
    
    I'll merge it later to 8.6 if no objections follow.
    
  2. login: "sebres"
  3. mimetype: "text/x-markdown"