Skip to content
Tcl Source Code History Of Ticket 3532972fffffffffffffffffffffffffffffffff
Login

History Of Ticket 3532972fffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 3532972fffffffffffffffffffffffffffffffff

  1. Ticket change [e1423c5351] (rid 87415) by arius-marius on 2012-06-07 20:51:20:

    1. assignee initialized to: "vasiljevic"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Tcl Version: 8.5.11
      OS Platform and Version: Windows 7 (64 bit) & Linux (32 bit)
      Thread Package: 2.6.6 (Linux) & 2.6.7 (Windows)
      
      Problem Behavior:
      - If script execution has finished the following output appears: called Tcl_FindHashEntry on deleted
      - Additionally, under Linux a core dump is created
      
      Expected Behavior:
      - A clean finalization of Tcl interpreter
      
      Tcl-Script:
      
      package require Thread
      
      set th1 [thread::create {puts worker_running ; thread::wait ; puts worker_stopped}]
      
      thread::send -async $th1 {puts script_started; after 5000; puts script_done} go
      
      puts "waiting for go..."
      
      vwait go
      
      if { [thread::exists $th1] } { 
          thread::release $th1
          puts worker_released
      }
      
      puts main_done
      
    4. foundin initialized to: "obsolete: 8.5.11"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "arius-marius"
    10. subsystem initialized to: "80. Thread Package"
    11. title initialized to:
      Tcl Scripts results in "called Tcl_FindHashEntry on deleted"
      
    12. type initialized to: "Bug"
  2. Ticket change [0a9422c0f8] (rid 113848) by arius-marius on 2012-06-08 04:30:53:

    1. icomment:
      Not reproducible with...
      
      Tcl Version: 8.6b2
      OS Platform and Version: Windows 7 (64 bit)
      Thread Package: 2.6.7 (Windows)
      
      
    2. login: "arius-marius"
    3. mimetype: "text/plain"
    4. username: "arius-marius"
  3. Ticket change [29e39747fe] (rid 118464) by dgp on 2012-06-08 18:36:18:

    1. assignee changed to: "dgp"
  4. Ticket change [9c7dde36c3] (rid 96155) by arius-marius on 2012-06-09 00:12:50:

    1. icomment:
      Set the following environment variable on the command line at Windows...
      
      set TCL_FINALIZE_ON_EXIT=1
      
      ...and executed the script again with Tcl version 8.6b2.
      
      => No output on the command line appeared pointing to finalization problems.
      
      
    2. login: "arius-marius"
    3. mimetype: "text/plain"
    4. username: "arius-marius"
  5. Ticket change [a2ef26108c] (rid 109976) by dgp on 2012-06-11 22:17:19:

    1. icomment:
      
      Note that due to variations in thread scheduling, this
      demo script is not deterministic.  The fact that it runs
      once without failing doesn't confirm correct operations.
      
      Making several runs with combinations of the 8.5 and
      trunk branch tips as well as Thread 2.6.7 and 2.7b1
      I am able to see either panics or segfaults in all combinations
      when TCL_FINALIZE_ON_EXIT is set.
      
      Using Tcl 8.6's default setting where thread finalization is skipped
      does appear to avoid the problem.  So in some sense, this isn't 
      really fixed, but 8.6 works around it.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  6. Ticket change [d9e446e4ad] (rid 107689) by ferrieux on 2012-06-11 23:35:43:

    1. icomment:
      Yes. This is, as you remember, the very motivation for the 8.6 move (bug 2001201).
      Bottom line: the OS's exit() is the fastest and most rational way of exiting, especially in a multithreaded setup since the ordered untangling of a locking graph is in general intractable.
      
      Note that the existence of bugs in thread finalization, when forced, is an orthogonal matter; we didn't even need them to prefer quick-exits !
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"