Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 8157db24a50001a0e268a6bae35f22eeb4b3f12d0be8f81f9322835429462b99
Ticket: a63f5a4fed23469bf1e1caaaf674b9dc765dd2ce
Safe interp gets the parent's -errorinfo and -errorstack through a failing alias
User & Date: serhiy.storchaka on 2026-10-17 11:50:46
Changes

  1. icomment:
    Proposed fix in branch [/timeline?r=safe-interp-no-parent-traceback|safe-interp-no-parent-traceback]: <tt>Tcl_TransferResult()</tt> no longer transfers <tt>-errorinfo</tt>, <tt>-errorstack</tt> and <tt>-errorline</tt> from a trusted interp to a safe one; the message, <tt>-errorcode</tt> and the return code still pass. The safe interp starts its own traceback at the alias call. knownBug test interp-26.8 now passes, new test interp-26.10; four safe.test tests that expected part of the parent's traceback are updated.
    
    This also fixes the safe interp part of [77f0dbc0f8]. It is a behaviour change of a public function, so it is proposed for 9.1 only.
    
  2. login: "serhiy.storchaka"
  3. mimetype: "text/x-fossil-wiki"