Skip to content
Tcl Source Code History Of Ticket ac601b59bab7
Login

History Of Ticket ac601b59bab7

Artifacts Associated With Ticket ac601b59bab7

  1. Ticket change [a27197b534] (rid 199474) by pooryorick on 2022-03-21 21:50:50:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-wiki"
    4. comment initialized to:
      In a debugging build of core_8_branch, a script that does nothing more than
      require the Thread package results in a segmentation fault when the process
      exits.  This is due to the fact that since commit [3b0e92b198],
      <code>LoadCleanupProc()</code> unloads every loaded library when an interp is
      deleted.  Later, <code>FinalizeThread()</code> calls exit handlers set up by
      the Thread library, but those handlers have been unloaded, causing a
      segmentation fault.
      
    5. is_private initialized to: "0"
    6. login: "pooryorick"
    7. priority initialized to: "5 Medium"
    8. resolution initialized to: "None"
    9. severity initialized to: "Important"
    10. status initialized to: "Open"
    11. submitter initialized to: "pooryorick"
    12. subsystem initialized to: "- New Builtin Commands"
    13. title initialized to:
      using the Thread package in a debugging build of Tcl results in a segmentation fault at exit
      
    14. type initialized to: "Bug"
  2. Ticket change [241093ea99] (rid 199479) by pooryorick on 2022-03-22 00:52:43:

    1. icomment:
      Fixed in [f0a6d62a1ade872d].  With this fix, a library is only unloaded from the process if it provides a "Unload" function.  Since it requires some care to produce a library fit for dynamic unloading, it makes sense to limit unload functionality only to those libraries specifically designed to support it.  Checking for the existence of an "Unload" function is a good way to differentiate between modules that can be unloaded, and modules that cannot.
      
    2. login: "pooryorick"
    3. mimetype: "text/x-fossil-wiki"
  3. Ticket change [7b04a4da0a] (rid 200121) by jan.nijtmans on 2022-04-14 10:33:21:

    1. assignee changed to: "pooryorick"
    2. closedate changed to: "2459683.93983072"
    3. closer changed to: "jan.nijtmans"
    4. foundin changed to: "8.7"
    5. icomment:
      Since the fix is in core-8-branch now, this ticket can be closed.
      
      Thanks, pooryorick, for the fix!
      
    6. login: "jan.nijtmans"
    7. mimetype: "text/x-fossil-wiki"
    8. resolution changed to: "Fixed"
    9. status changed to: "Closed"