Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ea87281d0e2e71f5ffd8db87fdb5c372d06ea7e4
Ticket: 3494470fffffffffffffffffffffffffffffffff
called Tcl_FindHashEntry on deleted table
User & Date: rtreleaven on 2012-02-26 01:18:12
Changes

  1. assignee changed to: "vasiljevic"
  2. cmimetype changed to: "text/plain"
  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. foundin changed to: "obsolete: 8.5.10"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "rtreleaven"
  10. subsystem changed to: "80. Thread Package"
  11. title changed to: "called Tcl_FindHashEntry on deleted table"
  12. type changed to: "Bug"