Skip to content
Tcl Source Code History Of Ticket 3494470
Login

History Of Ticket 3494470

Artifacts Associated With Ticket 3494470

  1. Ticket change [ea87281d0e] (rid 103392) by rtreleaven on 2012-02-26 01:18:12:

    1. assignee initialized to: "vasiljevic"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      % puts $tcl_patchLevel
      8.5.10
      % parray tcl_platform
      tcl_platform(byteOrder)   = littleEndian
      tcl_platform(machine)     = x86_64
      tcl_platform(os)          = Linux
      tcl_platform(osVersion)   = 3.0.0-16-generic
      tcl_platform(platform)    = unix
      tcl_platform(pointerSize) = 8
      tcl_platform(threaded)    = 1
      tcl_platform(user)        = rtreleaven
      tcl_platform(wordSize)    = 8
      % 
      
      Problem Behavior
      The script below produces this output >90% but  <100% of the time.
      
      $ tclsh getHelp.tcl
      Does thread exist? no
      Does thread exist? no
      Does thread exist? no
      Does thread exist? no
      Does thread exist? no
      Does thread exist? no
      called Tcl_FindHashEntry on deleted table
      $ echo $?
      0
      
      Expected Behaviour
      The message "called Tcl_FindHashEntry on deleted table" should not be generated
      
      Concise Code Sample
      
      set truth(1) yes
      set truth(0) no
      package require Thread
      set id [ thread::id ]
      for { set i 0 } { $i < 6 } { incr i } {
      thread::create -preserved {
      while 1 {
      for { set i 0 } { $i < 9999999 } { incr i } {}
      update
      }
      }
      }
      after 1000
      foreach id [ thread::names ] {
      if { $id eq [ thread::id ] } { continue }
      thread::release -wait $id
      puts "Does thread exist? $truth([ thread::exists $id])"
      }
      
      
    4. foundin initialized to: "obsolete: 8.5.10"
    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: "rtreleaven"
    10. subsystem initialized to: "80. Thread Package"
    11. title initialized to: "called Tcl_FindHashEntry on deleted table"
    12. type initialized to: "Bug"
  2. Ticket change [b5cf9dbca2] (rid 125307) by rtreleaven on 2012-02-26 08:21:03:

    1. icomment:
      added the actual script
      
      
    2. login: "rtreleaven"
    3. mimetype: "text/plain"
    4. username: "rtreleaven"
  3. Add attachment "getHelp.tcl" [e69b20126e] (rid 104318) by rtreleaven on 2012-02-26 08:21:27.

  4. Ticket change [92866ee724] (rid 120773) by rtreleaven on 2012-02-26 08:21:28:

    1. icomment:
      
      
      File Added - 436717: getHelp.tcl
      
      
      
    2. login: "rtreleaven"
    3. mimetype: "text/plain"
    4. username: "rtreleaven"
  5. Add attachment "getHelp.tcl" [10e0027dd1] (rid 95036) by rtreleaven on 2012-02-26 09:27:44.

  6. Ticket change [a04ea2fcbb] (rid 96784) by rtreleaven on 2012-02-26 09:27:44:

    1. icomment:
      
      
      File Added - 436720: getHelp.tcl
      
      
      
    2. login: "rtreleaven"
    3. mimetype: "text/plain"
    4. username: "rtreleaven"
  7. Ticket change [c124e0f5f9] (rid 111275) by sebres on 2012-02-28 18:29:29:

    1. icomment:
      still strange:
      
      windows x32 / debian x64,
      tcl 8.5.11 with thread 2.6.7
      core-8-5-brunch with thread 2.7
      
      first script runs without any problem, BUT
      second script runs to his end, hereafter something runs infinity in background  with cpu load 50%. "thread::names" returns main thread only.
      
      
    2. login: "sebres"
    3. mimetype: "text/plain"
    4. username: "sebres"
  8. Ticket change [aeb49368ea] (rid 101688) by sebres on 2012-02-28 20:04:37:

    1. icomment:
      The infinite loop was blame - ("while 1")
      Try following script to prevent an endless running:
      
      package require Thread
      set id [ thread::id ]
      set tid [
      thread::create {
      while {![info exists ::thstop]} {
      for { set i 0 } { $i < 9999999 } { incr i } {}
      update
      }
      puts end!!!!
      }
      ]
      after 1000
      thread::send -async $tid {set ::thstop 1}
      catch {thread::release -wait $tid}
      
      
      
    2. login: "sebres"
    3. mimetype: "text/plain"
    4. priority changed to: "3 Low"
    5. resolution changed to: "Invalid"
    6. username: "sebres"
  9. Ticket change [da2984fdc3] (rid 107729) by sebres on 2012-02-28 20:14:52:

    1. closedate changed to: "2012-02-28T13:14:52"
    2. closer changed to: "sebres"
    3. status changed to: "Pending"
  10. Ticket change [7f3ee173e9] (rid 135556) by dkf on 2013-11-12 12:34:08:

    1. closedate changed to: "2456609.02371391"
    2. closer changed to: "dkf"
    3. comment changed to:
      % puts $tcl_patchLevel
      8.5.10
      % parray tcl_platform
      tcl_platform(byteOrder)   = littleEndian
      tcl_platform(machine)     = x86_64
      tcl_platform(os)          = Linux
      tcl_platform(osVersion)   = 3.0.0-16-generic
      tcl_platform(platform)    = unix
      tcl_platform(pointerSize) = 8
      tcl_platform(threaded)    = 1
      tcl_platform(user)        = rtreleaven
      tcl_platform(wordSize)    = 8
      % 
      
      Problem Behavior
      The script below produces this output >90% but  <100% of the time.
      
      $ tclsh getHelp.tcl
      Does thread exist? no
      Does thread exist? no
      Does thread exist? no
      Does thread exist? no
      Does thread exist? no
      Does thread exist? no
      called Tcl_FindHashEntry on deleted table
      $ echo $?
      0
      
      Expected Behaviour
      The message "called Tcl_FindHashEntry on deleted table" should not be generated
      
      Concise Code Sample
      
      set truth(1) yes
      set truth(0) no
      package require Thread
      set id [ thread::id ]
      for { set i 0 } { $i < 6 } { incr i } {
      thread::create -preserved {
      while 1 {
      for { set i 0 } { $i < 9999999 } { incr i } {}
      update
      }
      }
      }
      after 1000
      foreach id [ thread::names ] {
      if { $id eq [ thread::id ] } { continue }
      thread::release -wait $id
      puts "Does thread exist? $truth([ thread::exists $id])"
      }
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. severity changed to: "Minor"
    7. status changed to: "Closed"