Skip to content
Tcl Source Code History Of Ticket 3301634
Login

History Of Ticket 3301634

Artifacts Associated With Ticket 3301634

  1. Ticket change [9299b2238d] (rid 120789) by tombert on 2011-05-13 15:14:13:

    1. assignee initialized to: "vasiljevic"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Environment Windows7, TCL 8.5.9 release and HEAD, compiled with MinGW
      
      
    4. foundin initialized to: "obsolete: 8.5.9"
    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: "tombert"
    10. subsystem initialized to: "80. Thread Package"
    11. title initialized to: "Thread release crash"
    12. type initialized to: "Bug"
  2. Ticket change [627a0201b5] (rid 92409) by tombert on 2011-05-13 22:14:27:

    1. icomment:
      
      
      File Added - 411522: crash.tcl
      
      
      
    2. login: "tombert"
    3. mimetype: "text/plain"
    4. username: "tombert"
  3. Add attachment "crash.tcl" [fccb2629c6] (rid 108300) by tombert on 2011-05-13 22:14:27.

  4. Add attachment "socket_crash.itcl" [e684907cf2] (rid 104303) by tombert on 2011-05-13 22:15:34.

  5. Ticket change [d407c30b2e] (rid 123377) by tombert on 2011-05-13 22:15:34:

    1. icomment:
      
      
      File Added - 411523: socket_crash.itcl
      
      
      
    2. login: "tombert"
    3. mimetype: "text/plain"
    4. username: "tombert"
  6. Add attachment "util.tcl" [57c8ccb90b] (rid 117686) by tombert on 2011-05-13 22:15:57.

  7. Ticket change [f5e3f88673] (rid 130194) by tombert on 2011-05-13 22:15:57:

    1. icomment:
      
      
      File Added - 411524: util.tcl
      
      
      
    2. login: "tombert"
    3. mimetype: "text/plain"
    4. username: "tombert"
  8. Ticket change [a511737591] (rid 110311) by tombert on 2011-05-13 22:19:23:

    1. icomment:
      Stripped down my application to reproduce the crash.
      The configured default path in the files point to d:/crash/...
      
      To reproduce call: wish crash.tcl
      If one removes a single procedure from the util.tcl the crash won't happen no more. Or you can remove a few method declarations from the socket_crash class, this will lead to an allocation error.
      Doing only "exit" without release works fine.
      
      thx for support
      
      
      
    2. login: "tombert"
    3. mimetype: "text/plain"
    4. username: "tombert"
  9. Ticket change [f7fc8b230a] (rid 91463) by tombert on 2011-08-18 16:56:52:

    1. foundin changed to: "obsolete: 8.5.10"
    2. icomment:
      Example still crashes in 8.5.10 and latest thread package release.
      thx
      
      
      
    3. login: "tombert"
    4. mimetype: "text/plain"
    5. username: "tombert"
  10. Ticket change [d08fad0902] (rid 113205) by tombert on 2011-08-18 17:00:55:

    1. icomment:
      Another interesting behaviour is calling (in a virgin wish):
      > package re Thread
      > thread::release [thread::id]
      
      which does nothing in the first attempt, but calling it a second time it reports that the thread does not exists.
      What is the expected result when releasing the main thread itself?
      
      thx
      
      
      
      
      
    2. login: "tombert"
    3. mimetype: "text/plain"
    4. username: "tombert"
  11. Ticket change [1eea40ca17] (rid 91058) by andreas_kupries on 2011-08-18 22:47:22:

    1. icomment:
      Huh. Destruction of the main thread I would suspect to be a case of "pulling the rug out from under yourself".
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  12. Ticket change [841375291c] (rid 117484) by vasiljevic on 2011-08-18 22:59:59:

    1. icomment:
      Releasing the main thread is syntactically possible
      and wrong. Actually releasing the 'current' thread
      ie. one calling the thread::release should be disabled
      or just a no-op'ed. I never thought of that as this is 
      rarely practically done.
      
      Releasing (i.e. letting it die away) any thread is always
      connected with various cleanups that may go astray
      in certain situations. For example, you lock a mutex in
      a thread and then release the thread. Moreover, the 
      Tcl lib was initially not desiged for thread safety. It is
      added some years later. So the entire cleanup/finalize
      machinery is not very thread-friendly and still assumes
      a "main" thread (the one that started the program) is
      always arround. 
      
      So.,, you never exit a "main" thread (whichever that is)
      and I will add a block that will effectively no-op the
      release of the 'self' i.e current thread (as explained above).
      
      Cheers
      Zoran 
      
      
    2. login: "vasiljevic"
    3. mimetype: "text/plain"
    4. username: "vasiljevic"
  13. Ticket change [6085c8cd30] (rid 116014) by tombert on 2011-08-19 00:56:38:

    1. icomment:
      ok - thx for the explanation, I'll take precaution not to release "myself" ...
      ... but this still leaves the crash open, I'll post a quick look into the code here:
      
      package require Thread
      proc crash {} {
          set ::tid [thread::create {thread::wait}]
          puts $::tid
          thread::send $::tid {
      package require Itcl
      namespace import itcl::*
      source d:/crash/socket_crash.itcl
      source d:/crash/util.tcl
      set obj [socket_crash "#auto"]
          }
          thread::release $::tid
      }
      after idle crash
      
      
      
      
      
      
    2. login: "tombert"
    3. mimetype: "text/plain"
    4. username: "tombert"
  14. Ticket change [86ef23e231] (rid 131603) by tombert on 2012-04-10 16:00:16:

    1. icomment:
      Retested in WinXP, TCL 8.5.11, thread 2.7b1: does not crash.
      Have to try in W7.
      
      
    2. login: "tombert"
    3. mimetype: "text/plain"
    4. username: "tombert"
  15. Ticket change [c5afa6a0a3] (rid 112044) by sebres on 2012-04-10 20:27:21:

    1. icomment:
      possible duplicate to 3494470?
      https://sourceforge.net/tracker/?func=detail&aid=3494470&group_id=10894&atid=110894
      
      
    2. login: "sebres"
    3. mimetype: "text/plain"
    4. username: "sebres"
  16. Ticket change [8a44527beb] (rid 127363) by dkf on 2012-04-10 20:36:49:

    1. icomment:
      Technically, since neither is actually particularly clearer as to the deep nature of the bug, we'd roll that one into this.
      
      My main concern is that we have code that can crash at all. That's Bad.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  17. Ticket change [d20db8b458] (rid 113463) by tombert on 2012-04-11 03:01:50:

    1. icomment:
      Cant reproduce any more with latest head. Tested XP and W7.
      
      
    2. login: "tombert"
    3. mimetype: "text/plain"
    4. username: "tombert"
  18. Ticket change [3097b16784] (rid 93283) by dgp on 2012-04-27 03:06:23:

    1. assignee changed to: "dgp"
    2. closedate changed to: "2012-04-26T20:06:23"
    3. closer changed to: "dgp"
    4. icomment:
      
      
      allow_comments - 1
      
      
      
    5. login: "dgp"
    6. mimetype: "text/plain"
    7. resolution changed to: "Out of Date"
    8. status changed to: "Closed"
    9. username: "dgp"