Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 1ad4020f7392760643b9b98f989b12d09f37fbf95deb7de08485268cd2b13f2d
Ticket: 79474c58800cdf94559a2c01230b4536aa416016
refchan segfault
User & Date: sebres on 2024-05-17 10:22:42
Changes

  1. icomment:
    Yep, and trying to find this one leak, I found that a write handler in test reflected command was incorrect - this didn't return an integer, thus produced an after effect error <code>{expected integer but got ""}</code> (that probably additionally caused the leak)...
    
    However fixing the test induced further segfault (and 2nd assert(bufPtr) throws then too).
    
    Commit [2c48f0c544ad9ddd] fixes this segfault now.
    
    I don't know whether it'd circumvent the leak (it was <code>resObj</code> marshalled from an error, probably because of wrong write return code), I rewrote the test in [0dac722930816ea3] to cover both variants (without and with an error in reflected write), although both variants seem to segfault without the fix.
    
    But I also think that this leak has nothing to do with the problem or the fix.
    
  2. login: "sebres"
  3. mimetype: "text/x-fossil-wiki"