Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e92507d3ea9736b983208426aaa4ea448cff3221
Ticket: 405769ffffffffffffffffffffffffffffffffff
rare segfault at "unset -nocomplain"
User & Date: msofer on 2001-03-04 03:46:48
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    The command
       unset -nocomplain
    (with no further arguments) causes Tcl_UnsetObjCmd (in
    tclVar.c) to request the string representation of an
    object which was *not* passed as an argument. 
    
    Under special circumstances (which I couldn't trigger
    in current sources) this causes a segfault. In order to
    cause a segfault,   
        *(stackPtr(stackTop+1)->bytes)
    must be in a forbidden memory region at the moment of
    the invocation of "unset -nocomplain".
    
    The cure seems pretty harmless: remove the offending
    line, which is unused anyway. The offending statement
    (line 2627 in tclVar.c) reads:
         name = TclGetString(objv[i]);
    
    Thusly corrected sources pass all tcltests.
    
    
    
  4. foundin changed to: "obsolete: 8.4a2"
  5. priority changed to: "7 High"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "msofer"
  9. subsystem changed to: "07. Variables"
  10. title changed to: "rare segfault at "unset -nocomplain""
  11. type changed to: "Bug"