Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 9a7d7d6e17ff8de3d8e274f4adb641450faf86b42c4cfed6fb3b26f8664ad0a3
Ticket: 4b22d84a6236ed01b4ba300556dc4f4c78214ee0
Core Dump when setting const with non-existent namespace
User & Date: apnadkarni on 2026-03-14 02:33:10
Changes

  1. icomment:
    I don't want to jump to constError because it uses other variables whose status I do not know on the jump to doConst (remember varPtr was not set) and I do not want to trace backward to jump points.
    
    "variable not found" is only used if the interpreter does not already have an error message. If it does, it is preserved (which again, is not the case with constError).
    
    Setting msgPart is not trivial because it expects a static string. Pointing it to content of interp result requires more book keeping.
    
    Also note constError is only used in that code block for errors related to arrays. Otherwise gotError is used (see the line 3692 in the last code block before constError.
    
    I do not use ! with pointers. Stylistic choice. Shrug.
    
  2. login: "apnadkarni"
  3. mimetype: "text/plain"