Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 13debc6e06af5af317c7f0a587e09f31f5f6a4c0ee0ff06a5c58969420b0a0ae
Ticket: 977971f1f31797c4d82b4ef9e8af2e03c9c0fa4b
Segfault after forget/require package TclOO
User & Date: dkf on 2024-05-23 14:40:13
Changes

  1. icomment:
    I'm guessing that the problem is that the default `package ifneeded` script does nothing (it's contents are literally "`# Already present, OK?`") but removing it means that you're picking up the old TclOO implementation-as-a-package from your system, which is for Tcl 8.5 only and makes 8.6 explode.
    
    I don't have much of a fix for that. I guess we could make the package index file for the "independent" package include a version check against Tcl to make sure it isn't going into 8.6 or later, but that would still leave the existing deployments of that package as a problem. If we were going to maintain that code for 8.5 then we'd need to do that, but we aren't.
    
    By contrast, on this system which doesn't have that external package installed, we see this:
    
    ```
    % package forget TclOO
    % package require TclOO
    can't find package TclOO
    ```
    
    A loadable library being able to break Tcl? That was always possible.
    
  2. login: "dkf"
  3. mimetype: "text/x-markdown"