Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 432bb7451dc8677691e7d0248a8368d9e1a3dc81
Ticket: 218547ffffffffffffffffffffffffffffffffff
Interpreter crashes upon 'exit'
User & Date: nobody on 2000-10-26 01:02:00
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 988 Bug
    Version: 8.1a2
    SubmitDate: '1998-12-17'
    LastModified: '1999-03-30'
    Severity: LOW
    Status: Released
    Submitter: pat
    ChangedBy: stanton
    RelatedBugIDs: 1273 1573 1593
    OS: Linux
    OSVersion: 2.0.29
    Machine: X86
    FixedDate: '1999-03-30'
    FixedInVersion: 8.1b3
    ClosedDate: '2000-10-25'
    
    
    Extensions:
    Memchan, but anz other extension with a channel type will do
    
    CustomShell:
    Freshly configured and compiled 8.1a2 / 8.1b1 interpreter.
    
    ReproducibleScript:
    Compile 8.1a2 (or 8.1b1), the memchan extension, then do
    
    % package require Memchan
    1.4
    % memchan
    mem0
    % exit
    
    Remark: Any other extension providing a new channel type should exhibit the same behaviour.
    
    ObservedBehavior:
    The interpreter crashed (Segmentation fault)
    
    DesiredBehavior:
    The interpreter should exit cleanly
    
    
    
    I traced the interpreter while it was executing the 'exit' and found out that Tcl unloads the memchan library first, and then tries to close the remaining open channel, hitting an invalid 'typePtr'.
    
    The source for the memchan extension can be found at  http://www.oche.de/~akupries/tcltk.html
    ----
    Related Finalization Bugs: 1573 & 1593.  03/24/1999 14:40 - surles -
    
    Unloading of libraries is deferred until after exit handlers have been invoked.
    03/30/1999 14:25 - stanton -
    
    
    
  4. foundin changed to: "obsolete: 8.1a2"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "69. Other"
  10. title changed to: "Interpreter crashes upon 'exit'"
  11. type changed to: "Bug"