Skip to content
Tcl Source Code History Of Ticket 1538926fffffffff
Login

History Of Ticket 1538926fffffffff

Artifacts Associated With Ticket 1538926fffffffff

  1. Ticket change [c297cf2616] (rid 111512) by mpc_janssen on 2006-08-11 20:06:30:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      When executing the following code in a thread enabled 
      tclsh, the tclsh crashes on an access violation on 
      Windows XP
      
      package require Thread
      thread::send [thread::create] exit
      
      Some information:
      
      % parray tcl_platform
      tcl_platform(byteOrder) = littleEndian
      tcl_platform(machine)   = intel
      tcl_platform(os)        = Windows NT
      tcl_platform(osVersion) = 5.1
      tcl_platform(platform)  = windows
      tcl_platform(threaded)  = 1
      tcl_platform(user)      = mjanssen
      tcl_platform(wordSize)  = 4
      % puts $tcl_version
      8.4
      % puts $tcl_patchLevel
      8.4.13
      
    4. foundin initialized to: "obsolete: 8.4.13"
    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: "mpc_janssen"
    10. subsystem initialized to: "49. Threading"
    11. title initialized to: "exit in thread crashes tclsh"
    12. type initialized to: "Bug"
  2. Ticket change [2965973748] (rid 88863) by mpc_janssen on 2006-08-12 06:12:30:

    1. icomment:
      Logged In: YES 
      user_id=1463011
      
      Further testing shows that in a threaded Tcl8.5a4 it works:
      
      C:\Tcl85\bin>tclsh85t.exe
      % parray tcl_platform
      tcl_platform(byteOrder) = littleEndian
      tcl_platform(machine)   = intel
      tcl_platform(os)        = Windows NT
      tcl_platform(osVersion) = 5.1
      tcl_platform(platform)  = windows
      tcl_platform(threaded)  = 1
      tcl_platform(user)      = mjanssen
      tcl_platform(wordSize)  = 4
      % exit
      
      C:\Tcl85\bin>tclsh85t.exe
      % package require Thread
      2.6.3
      % thread::send [thread::create] exit
      target thread died
      %
      C:\Tcl85\bin>
      
      
    2. login: "mpc_janssen"
    3. mimetype: "text/plain"
    4. username: "mpc_janssen"
  3. Ticket change [803245a48f] (rid 97693) by dkf on 2006-08-14 15:57:20:

    1. assignee changed to: "vasiljevic"
  4. Ticket change [a2232c363a] (rid 109841) by vasiljevic on 2006-08-14 16:07:28:

    1. closedate changed to: "2006-08-14T09:07:28"
    2. closer changed to: "vasiljevic"
    3. icomment:
      Logged In: YES 
      user_id=95086
      
      Calling [exit] out of the non-startup thread is NOT supported with the 
      current state of the Tcl library. You must make sure all your threads
      are gone before attempting the [exit]. And you can attempt to call 
      the [exit] only from the first (startup) therad in the process.
      The fact that you got it to work in 8.5 is purely a coincidence. 
      This cannot be solved easily w/o re-designing how the Tcl library
      handles various system's teardown. 
      
      
    4. login: "vasiljevic"
    5. mimetype: "text/plain"
    6. resolution changed to: "Wont Fix"
    7. status changed to: "Closed"
    8. username: "vasiljevic"
  5. Ticket change [b9301777ee] (rid 129093) by cc_benny on 2006-08-15 00:37:44:

    1. icomment:
      Logged In: YES 
      user_id=143885
      
      Tcl shouldn't crash, though, I think.  It should raise an
      error.  The error message should explain what was wrong,
      so that the coder knows how to fix it. 
      
      
    2. login: "cc_benny"
    3. mimetype: "text/plain"
    4. username: "cc_benny"