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

History Of Ticket 1829708fffffffff

Artifacts Associated With Ticket 1829708fffffffff

  1. Ticket change [f425e29cd7] (rid 129857) by msofer on 2007-11-10 23:56:38:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      http.test triggers a threading segfault; this happens in a somewhat aleatory manner, but after a few rapid repetitions of the test it triggers reliably here.
      
      
      $ make test TESTFLAGS="-f http.test"
      ...
      ++++ http-7.3 PASSED
      ++++ http-7.4 PASSED
      Test file error: child killed: segmentation violation
      
      ----
      The backtrace is
      
      #0  0x400367f4 in __pthread_mutex_unlock_usercnt () from /lib/tls/i686/cmov/libpthread.so.0
      #1  0x40036bf0 in pthread_mutex_unlock () from /lib/tls/i686/cmov/libpthread.so.0
      #2  0x08148f24 in Tcl_MutexUnlock (mutexPtr=0x817fa38) at /home/CVS/tcl_SF_clean/unix/../unix/tclUnixThrd.c:522
      #3  0x0814a168 in Tcl_WaitForEvent (timePtr=0x0) at /home/CVS/tcl_SF_clean/unix/../unix/tclUnixNotfy.c:871
      #4  0x08107cb9 in Tcl_DoOneEvent (flags=-3) at /home/CVS/tcl_SF_clean/unix/../generic/tclNotify.c:957
      #5  0x08066876 in Tcl_ThreadObjCmd (dummy=0x0, interp=0x8265458, objc=2, objv=0x826dd28) at /home/CVS/tcl_SF_clean/unix/../generic/tclThreadTest.c:385
      #6  0x0806d575 in TclEvalObjvInternal (interp=0x8265458, objc=2, objv=0x826dd28, command=0x8291b62 "testthread wait\n    ", length=16, flags=0)
          at 
      /home/CVS/tcl_SF_clean/unix/../generic/tclBasic.c:3661
      
      ----
      
      % parray tcl_platform
      tcl_platform(byteOrder)   = littleEndian
      tcl_platform(machine)     = i686
      tcl_platform(os)          = Linux
      tcl_platform(osVersion)   = 2.6.20-16-generic
      tcl_platform(platform)    = unix
      tcl_platform(pointerSize) = 4
      tcl_platform(threaded)    = 1
      tcl_platform(user)        = mig
      tcl_platform(wordSize)    = 4
      
      
    4. foundin initialized to: "obsolete: 8.5b3"
    5. is_private initialized to: "0"
    6. priority initialized to: "9 Immediate"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "msofer"
    10. subsystem initialized to: "49. Threading"
    11. title initialized to: "http.test triggers segfault (sometimes)"
    12. type initialized to: "Bug"
  2. Ticket change [1c26439460] (rid 90553) by msofer on 2007-11-12 22:26:47:

    1. icomment:
      Logged In: YES 
      user_id=148712
      Originator: YES
      
      That was HEAD as of Nov 10; repro with the released 8.5b2. 
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  3. Ticket change [1be3db1555] (rid 123226) by msofer on 2007-11-12 23:10:36:

    1. icomment:
      Logged In: YES 
      user_id=148712
      Originator: YES
      
      8.5a6 too
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  4. Ticket change [fdc4a26ec5] (rid 108470) by hobbs on 2007-11-13 07:30:13:

    1. assignee changed to: "vasiljevic"
  5. Ticket change [143a2d0d8f] (rid 124353) by msofer on 2007-11-13 07:36:56:

    1. icomment:
      Logged In: YES 
      user_id=148712
      Originator: YES
      
      Note that this happens *after* the last test; gwlester reporting seeing failures on app exit under osx too.
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  6. Ticket change [304f72cccb] (rid 93225) by msofer on 2007-11-13 22:57:55:

    1. icomment:
      Logged In: YES 
      user_id=148712
      Originator: YES
      
      Can't seem to trigger this anymore after [Bug 1618235] was fixed earlier today. Related?
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  7. Ticket change [a232afe096] (rid 109847) by vasiljevic on 2007-11-13 23:06:02:

    1. icomment:
      Logged In: YES 
      user_id=95086
      Originator: NO
      
      most probably. thx to dkf for backporting the 
      compat code from 8.4 branch.
      I'm just too low on time this week.
      
      
    2. login: "vasiljevic"
    3. mimetype: "text/plain"
    4. username: "vasiljevic"
  8. Ticket change [b5f3ad0a43] (rid 125338) by msofer on 2007-11-28 17:26:42:

    1. icomment:
      Logged In: YES 
      user_id=148712
      Originator: YES
      
      Still there in head as of today
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  9. Ticket change [8375ac827f] (rid 117384) by dgp on 2007-12-04 03:49:44:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: NO
      
      
      Should this bug block 8.5.0?
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  10. Ticket change [c143a93fbc] (rid 111292) by vasiljevic on 2007-12-04 04:03:39:

    1. icomment:
      Logged In: YES 
      user_id=95086
      Originator: NO
      
      I do not know. I'm unable to reproduce this on any machine
      that I have access to. I would not consider this a show stopper
      if you ask me. 
      
      
    2. login: "vasiljevic"
    3. mimetype: "text/plain"
    4. username: "vasiljevic"
  11. Ticket change [f2ae08e344] (rid 109597) by dgp on 2007-12-04 04:11:45:

    1. priority changed to: "8"
  12. Ticket change [f7dbb7e20d] (rid 91446) by georgeps on 2007-12-15 02:38:51:

    1. icomment:
      Logged In: YES 
      user_id=585068
      Originator: NO
      
      I can't attach files to this bug report for some reason, so here are some links:
      
      This is an abort/panic related to the problem:
      http://paste.tclers.tk/633
      
      This is a log and the modified test file that it took to bring out the problem in an --enable-symbols=all build.  It's easier without --enable-symbols.  
      
      http://paste.tclers.tk/632
      
      This has to be causing a problem for someone.  I think this should block 8.5, unless threads aren't important (which they certainly aren't to me).
      
      -GPS
      
      
    2. login: "georgeps"
    3. mimetype: "text/plain"
    4. username: "georgeps"
  13. Ticket change [3d03f0a838] (rid 121014) by georgeps on 2007-12-15 03:12:35:

    1. icomment:
      Logged In: YES 
      user_id=585068
      Originator: NO
      
      I found a new buggy path by just changing the script a bit.
      
      I made a small change to the script.  I removed the after 1000; before the testthread wait
      
      if {[catch {package require http 2} version]} {
          if {[info exists http2]} {
      catch {puts "Cannot load http 2.* package"}
      return
          } else {
      catch {puts "Running http 2.* tests in slave interp"}
      set interp [interp create http2]
      $interp eval [list set http2 "running"]
      $interp eval [list set argv $argv]
      $interp eval [list source [info script]]
      interp delete $interp
      return
          }
      }
      set httpthread [testthread create "
          socket -server {apply {{chan addr port} { testthread wait}} 6666};
          testthread wait"]
      
      testthread send -async $httpthread {
        testthread exit
      }
      
      Backtraces available here:
      http://paste.tclers.tk/634
      
      
      
    2. login: "georgeps"
    3. mimetype: "text/plain"
    4. username: "georgeps"
  14. Ticket change [7c120e39eb] (rid 97013) by vasiljevic on 2007-12-15 03:35:38:

    1. icomment:
      Logged In: YES 
      user_id=95086
      Originator: NO
      
      OK, all relax a bit...
      
      The reason why I said this isn't the show-stopper is because I strongly
      believe (and George's last change proves that) that we are hitting a well
      known bug in Tcl teardown where the master thread exits before some
      other thread created after the startup. In this case the master exiting 
      thread releases some resources still used by the existing thread(s) so
      some of them may (do) freak out. 
      W/O rewriting the whole Tcl finalization mechanism (and introducing 
      refcounts on shared resources) you can't solve that problem. But you
      can very easily avoid it by properly tearing down all threads before
      the master one (first one in the process, or better, first one that
      loaded the Tcl lib) exits. 
      
      So I believe there is no reason to halt the 8.5.0 because if that, as this
      one is sitting in the core since the introduction of threads in Tcl.
      
      I will have to see some long-running thread-test that uses the Tcl threading
      extension which will core the process. This one I will pay immediate attention
      to, as we are absolutely and totally dependent on the thread-related stability
      of the core.
      
      
      
      
    2. login: "vasiljevic"
    3. mimetype: "text/plain"
    4. username: "vasiljevic"
  15. Ticket change [59f8fd2199] (rid 118062) by georgeps on 2007-12-15 04:06:17:

    1. icomment:
      Logged In: YES 
      user_id=585068
      Originator: NO
      
      "A well known bug" OK.  I shall have to quote you on that.  I'm going to suggest that we note this "well known bug in the README/Hall of Shame, because it wasn't known to me, and apparently others.
      
      
    2. login: "georgeps"
    3. mimetype: "text/plain"
    4. username: "georgeps"
  16. Ticket change [32f46d67a4] (rid 93704) by vasiljevic on 2007-12-15 04:19:25:

    1. icomment:
      Logged In: YES 
      user_id=95086
      Originator: NO
      
      Sorry, I thought this is a well-known behaviour...
      If you are interested, you can begin at the bug
      #597575 and then move on...
      
      
      
      
    2. login: "vasiljevic"
    3. mimetype: "text/plain"
    4. username: "vasiljevic"
  17. Ticket change [7875bf736c] (rid 89967) by hobbs on 2007-12-15 04:35:22:

    1. icomment:
      Logged In: YES 
      user_id=72656
      Originator: NO
      
      It was well known to me, and is no surprise for pthreads-based systems.  Note that this isn't even a public API we are talking about - it uses testthread.  The issue with public threads needing to have proper shutdown should get noted when it isn't a special test API.  It should go into the Thread module docs asap though.
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. username: "hobbs"
  18. Ticket change [36fd7f28e8] (rid 107198) by ferrieux on 2011-08-19 23:10:50:

    1. icomment:
      Status ?
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"