Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 64c54512ff05a98f5d0ccbf53da850f61f2f2560
Ticket: 641195ffffffffffffffffffffffffffffffffff
interp crashes on name conflict
User & Date: nobody on 2002-11-20 12:23:30
Changes

  1. assignee changed to: "hobbs"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    [Richard Suchenwirth] - Reassigning the name of a child 
    interpreter as alias causes tclsh 8.4.1 to crash both on 
    Windows 2000 and Solaris:
     X:\tcl>tclsh
    % info pa
    8.4.1
    % interp create foo
    foo
    % interp alias {} foo foo eval
    called Tcl_FindHashEntry on deleted table
    abnormal program termination
    suchenwi@jaguar%tclsh               
    % info pa
    8.4.1
    % interp create foo
    foo
    % interp alias {} foo foo eval
    called Tcl_FindHashEntry on deleted table
    zsh: 1456 IOT instruction  tclsh
    
    Expected behavior: error message, e.g. "interp name foo 
    can not be reassigned", no crash.
    
    Further observation: using the interp name as a proc 
    name silently destroys the slave interpreter:
    % interp create foo
    foo
    % interp eval foo {set bar 0}
    0
    % proc foo {} {puts bar}
    % interp eval foo {set bar}
    could not find interpreter "foo"
    
    
  4. foundin changed to: "obsolete: 8.4.1"
  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: "20. [interp]"
  10. title changed to: "interp crashes on name conflict"
  11. type changed to: "Bug"