Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c31779944c45a527daec9c0e603e046a73051fb1
Ticket: 983660ffffffffffffffffffffffffffffffffff
Leak of unshared literals at interp deletion
User & Date: msofer on 2004-07-05 17:25:20
Changes

  1. icomment:
    Logged In: YES 
    user_id=148712
    
    Rewinding, back to square 1: the bug does seem to be in the
    handling of the return options, as storing them as a shared
    literal does not plug the leak. This was tested by replacing
    TclAddLiteralObj with TclRegisterNewLiteral.
    
    Somehow, the proc body is not being cleaned up properly on
    interp deletion. This is determined by noticing that either of
      i eval {rename  foo {}}
      i eval {proc foo {} {}}
    before deleting the interp plugs the leak. The leak does not
    appear with other literals.
    
    
    
    
  2. login: "msofer"
  3. mimetype: "text/plain"
  4. username: "msofer"