Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e86817d5a2aab80cbfba085a7cd4024ac580917e73714db5ab2453b59c81c58d
Ticket: b5777d3d3290348abc980027a96607ccfe4bf4da
Crash corner-case in TIP #502 implementation
User & Date: dgp on 2020-09-16 14:24:10
Changes

  1. icomment:
    
    Any of those approaches will work.  I don't object to any of them.  All have
    their pros and cons.
    
    The broader issue is that we have this point of fragility in the execution
    engine.  Any function call out of TEBCresume that could possibly lead
    to nested bytecode execution is at risk without this protection.  That set of
    routines isn't stable as development continues.  Anything that permits 
    extension callbacks should get protection, and with customizable traces and
    resolvers, there are many paths that can potentially do that. A "no compromise
    on safety" approach would protect every call, or at least every call that
    passes interp as an argument.
    
    The (DE)CACHE_STACK_INFO macros themselves are tiny.  Maybe I am missing
    something, but the main effect of them seems to be that they force the more
    expensive implementation of the INST_START_CMD instruction.
    
  2. login: "dgp"
  3. mimetype: "text/plain"