Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2f0c78e9e2daaae7c644a006785ec6c871bfe64d
Ticket: 3408127fffffffffffffffffffffffffffffffff
several thread-7.* tests leak
User & Date: dgp on 2011-09-12 16:05:44
Changes

  1. assignee changed to: "mistachkin"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    The following tests leak memory:
    
    thread-7.24
    thread-7.25
    thread-7.26
    thread-7.28
    thread-7.29
    thread-7.30
    thread-7.31
    
    The cause is the same in all of them.  The tests make
    use of the [testthread exit] command both directly and
    indirectly via the [tcltest::threadReap] command.  This
    command unavoidably causes leaks.  For this reason
    the corresponding Thread command [thread::exit] is
    declared deprecated.
    
    I've successfully converted many tests from [testthread]
    to the Thread package, making use of the [thread::preserve]
    and [thread::release] commands to manage thread lifetimes
    without leaking memory.  I'm not able to convert the tests
    above though.
    
    These tests are testing Tcl_CancelEval via both the
    [interp cancel] command and a [testthread cancel] testing
    command. I've tried to convert these, but I cause 
    intermittent segfaults with my attempts.  My hope is
    that my failures are due to lack of experience with
    cancel, and the matter will be easy for those who know it.
    
  4. foundin changed to: "obsolete: 8.6b2"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "dgp"
  10. subsystem changed to: "49. Threading"
  11. title changed to: "several thread-7.* tests leak"
  12. type changed to: "Bug"