Skip to content
Tcl Source Code History Of Ticket 977971f1f31797c4
Login

History Of Ticket 977971f1f31797c4

Artifacts Associated With Ticket 977971f1f31797c4

  1. Ticket change [8b6b7472ff] (rid 179103) by erikleunissen on 2020-02-08 14:21:42:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      > tclsh
      % set tcl_patchLevel
      8.6.10
      % parray tcl_platform
      tcl_platform(byteOrder)     = littleEndian
      tcl_platform(engine)        = Tcl
      tcl_platform(machine)       = x86_64
      tcl_platform(os)            = Linux
      tcl_platform(osVersion)     = 4.12.14-lp150.12.82-default
      tcl_platform(pathSeparator) = :
      tcl_platform(platform)      = unix
      tcl_platform(pointerSize)   = 8
      tcl_platform(threaded)      = 1
      tcl_platform(user)          = erik
      tcl_platform(wordSize)      = 8
      % package names
      zlib TclOO tcl::tommath Tcl
      % package forget TclOO
      % package require TclOO
      Segmentation fault (core dumped)
      
      I'm unsure whether this is an issue with [package] or with TclOO.
      
    5. foundin initialized to: "8.6.10"
    6. is_private initialized to: "0"
    7. login: "erikleunissen"
    8. priority initialized to: "5 Medium"
    9. resolution initialized to: "None"
    10. severity initialized to: "Minor"
    11. status initialized to: "Open"
    12. submitter initialized to: "erikleunissen"
    13. subsystem initialized to: "35. TclOO Package"
    14. title initialized to: "Segfault after forget/require package TclOO"
    15. type initialized to: "Bug"
  2. Add attachment "bt_full.txt" [b11cab19b4] (rid 179104) by erikleunissen on 2020-02-08 14:24:01.

  3. Ticket change [cd32dcb4d9] (rid 179105) by erikleunissen on 2020-02-08 14:24:27:

    1. icomment: "Attached a full back trace in "bt_full.txt"."
    2. login: "erikleunissen"
    3. mimetype: "text/plain"
  4. Ticket change [13debc6e06] (rid 226535) by dkf on 2024-05-23 14:40:13:

    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"
  5. Ticket change [f432120dcc] (rid 226536) by dkf on 2024-05-23 14:42:08:

    1. closedate changed to: "2460454.11259987"
    2. closer changed to: "dkf"
    3. icomment:
      Checking the stack trace, and it definitely says that the fault is occurring in a separate package. Closing; not a Tcl bug technically.
      
    4. login: "dkf"
    5. mimetype: "text/x-markdown"
    6. resolution changed to: "Invalid"
    7. status changed to: "Closed"