Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 1d7dfc3d3ef03ed3c8283220b59cd357cce408f2
Ticket: 718045ffffffffffffffffffffffffffffffffff
Closing transferred channel crashes app
User & Date: kenj on 2003-04-09 07:34:13
Changes

  1. assignee changed to: "andreas_kupries"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    I'm attaching a script that crashes each time I run it on 
    my system. It's an echo server translated from a single-
    threaded to a multi-threaded implementation.
    
    As written, clients can connect to the server and 
    successfully receive echoes of messages they send. 
    (I've tested it using simple telnet connections.) However, 
    when any client disconnects -- either by closing the 
    client or by issuing the "quit" message -- the server 
    crashes with the following message:
    
    FlushChannel: damaged channel list
    
    abnormal program termination
    
    There was another problem I noticed with this script, 
    that perhaps should be filed as a separate bug. You'll 
    note a few lines near the bottom commented out, which 
    tried to send a "welcome" message after the client 
    connected. The code would send the message 
    successfully, but then the readable fileevent seemed to 
    never fire within the worker thread.
    
    Unfortunately, as I'm running this on Windows 2000, I'm 
    not sure what additional debugging information I can 
    provide. As far as the environment, the operating system 
    is Microsoft Windows 2000, 5.00.2195, Service Pack 3. 
    I'm running the script from a Command Prompt window 
    by executing "tclsh echoserv3.tcl".
    
    The tclsh is version 8.4.2, compiled on my system 
    directly from the source, with threading enabled. The 
    Threads version is 2.5.1, also compiled on my machine.
    
    I compiled both using the Mingw tools. The beginning of 
    the README.txt file says: "This is msys_mingw release 
    #2, it bundles Msys 1.0.8 and Mingw 1.1." gcc --version 
    returns 2.95.3-6.
    
  4. foundin changed to: "obsolete: 8.4.2"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "kenj"
  9. subsystem changed to: "49. Threading"
  10. title changed to: "Closing transferred channel crashes app"
  11. type changed to: "Bug"