Tcl Source Code

View Ticket
Login
Ticket UUID: 218191
Title: testthread send hangs up forever
Type: Bug Created on: 2000-10-26 00:54:19
Submitter: nobody Assigned to: nobody
Subsystem: 49. Threading Severity:
Priority: 2 Last modified: 2001-04-23 02:00:40
Status: Closed Closed by: dgp
Resolution: Invalid Closed on: 2001-04-22 19:00:40
Version: final: 8.1.1
Description:
OriginalBugID: 2361 Bug
Version: 8.1.1
SubmitDate: '1999-07-16'
LastModified: '1999-08-05'
Severity: CRIT
Status: Closed
Submitter: techsupp
ChangedBy: hobbs
OS: SunOS
OSVersion: solaris 2.5.1
Machine: Sparc
FixedDate: '2000-10-25'
ClosedDate: '1999-08-05'


Name:
Yun-Wu Cheng

Extensions:
TK BLT

ReproducibleScript:
% testthread names
    1
    % testthread create
    5
    % testthread create
    6
    % testthread send 6 {testthread send 5 {set yy 9}}
    9
    % testthread send 5 {puts $yy}  
    9
    % testthread send 6 {testthread send 1 {set yy 9}} <== hangs up forever

DesiredBehavior:
I tried to send informations among threads. If this problem gets
    removed, I don't need to use variable traces. Actually, I don't see any
    document telling how to use variable traces for sharing information
    among threads.



This was shown to be a classic deadlock by Duffin:
   http://x25.deja.com/[ST_rn=ps]/viewthread.xp?AN=500747247 
-- 08/05/1999 hobbs