Skip to content
Tcl Source Code History Of Ticket 688fcc7082
Login

History Of Ticket 688fcc7082

Artifacts Associated With Ticket 688fcc7082

  1. Ticket change [d8e474a137] (rid 185596) by pooryorick on 2020-08-16 09:52:56:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-wiki"
    4. comment initialized to:
      In Tcl built with <code>-DPURIFY</code> and <code>--enable-symbols</code>, the
      following script results in a segmentation fault:
      
      <code><verbatim>
      variable res {}
      namespace eval ns1 {
          namespace export *
          proc p1 {} {
              return success
          }
          interp alias {} [namespace current]::p2 {} [namespace current]::p1
      }
      
      
      namespace eval ns2 {
          namespace import [namespace parent]::ns1::p2
      }
      
      proc ondelete {oldname newname op} {
          variable res
          catch {
              $oldname
          } cres
          set res [string match {invalid command name*ns1::p1*} $cres]
      }
      trace add command  ns2::p2 delete ondelete
      namespace delete ns1
      </verbatim></code>
      
      The issue is that the delete trace on the imported routine deletes the
      namespace of the underlying routine, resulting in the deletion of both the
      underlying routine and the alias, but then the imported command is called, and
      its <code>ImportedCmdData</code> structure still holds a reference to the
      now-deleted Alias structure.
      
    5. is_private initialized to: "0"
    6. login: "pooryorick"
    7. priority initialized to: "5 Medium"
    8. resolution initialized to: "None"
    9. severity initialized to: "Minor"
    10. status initialized to: "Open"
    11. submitter initialized to: "pooryorick"
    12. subsystem initialized to: "- New Builtin Commands"
    13. title initialized to:
      trace on imported alias deletes alias and then calls import and triggers memory error
      
    14. type initialized to: "Bug"
  2. Ticket change [d6a8917c2d] (rid 185601) by pooryorick on 2020-08-16 10:06:37:

    1. icomment:
      Fixed in [037c0ff27fd5d0a2] by modifying
      <code>Tcl_DeleteCommandFromToken()</code> so that it deletes any imports of the
      routine before deleting the routine itself.
      
    2. login: "pooryorick"
    3. mimetype: "text/x-fossil-wiki"
  3. Ticket change [89922f1a21] (rid 185614) by pooryorick on 2020-08-17 10:21:42:

    1. login: "pooryorick"
    2. mimetype: "text/plain"
    3. resolution changed to: "Fixed"
  4. Ticket change [950417fab7] (rid 185753) by pooryorick on 2020-08-29 09:03:37:

    1. closedate changed to: "2459090.87751332"
    2. closer changed to: "pooryorick"
    3. login: "pooryorick"
    4. mimetype: "text/plain"
    5. status changed to: "Closed"
  5. Ticket change [c39fd56136] (rid 194398) by pooryorick on 2021-05-17 21:35:32:

    1. closedate changed to: "2459352.39968116"
    2. icomment:
      Fix applied to core-8-6-branch in [e45d054ba46ee5c2].
      
    3. login: "pooryorick"
    4. mimetype: "text/x-fossil-wiki"
  6. Ticket change [44c7f28a54] (rid 194402) by jan.nijtmans on 2021-05-18 08:47:19:

    1. assignee changed to: "pooryorick"
    2. closer changed to: "nobody"
    3. icomment:
      Re-opening, because this fix broke the build: [https://github.com/tcltk/tcl/actions/runs/852459210]
      
    4. login: "jan.nijtmans"
    5. mimetype: "text/x-fossil-wiki"
    6. resolution changed to: "None"
    7. status changed to: "Open"
  7. Ticket change [c9b3384c3c] (rid 194418) by pooryorick on 2021-05-18 14:30:25:

    1. icomment: "Fixed again in [3b0e92b198b86975]."
    2. login: "pooryorick"
    3. mimetype: "text/x-fossil-wiki"
  8. Ticket change [39f066f591] (rid 194419) by jan.nijtmans on 2021-05-18 15:10:26:

    1. icomment:
      This - indeed - looks OK now, but it's only applied to 8.6 yet. Will 8.7 and 9.0 follow soon? Then it can be closed.
      
    2. login: "jan.nijtmans"
    3. mimetype: "text/x-fossil-wiki"
  9. Ticket change [6399055756] (rid 194478) by jan.nijtmans on 2021-05-20 15:53:22:

    1. icomment:
      @pooryorick: Noting that commit [3b0e92b198b86975] was on core-8-branch, is this bug now fixed on all branches?
      
    2. login: "jan.nijtmans"
    3. mimetype: "text/x-fossil-wiki"
  10. Ticket change [4a21a16411] (rid 194997) by pooryorick on 2021-06-21 21:36:11:

    1. icomment:
      This fix was committed to core-8-branch in [037c0ff27fd5d0a2] and also made its
      way to trunk via merge of core-8-branch.  [3b0e92b198b86975] is unrelated and
      shouldn't have been noted in this report.
      
    2. login: "pooryorick"
    3. mimetype: "text/x-fossil-wiki"
  11. Ticket change [fccf1a8427] (rid 194998) by pooryorick on 2021-06-21 21:36:36:

    1. closedate changed to: "2459387.40041782"
    2. closer changed to: "pooryorick"
    3. login: "pooryorick"
    4. mimetype: "text/plain"
    5. resolution changed to: "Fixed"
    6. status changed to: "Closed"