Skip to content
Tcl Source Code History Of Ticket 1523697
Login

History Of Ticket 1523697

Artifacts Associated With Ticket 1523697

  1. Ticket change [1f3c848e90] (rid 91115) by ctasada on 2006-07-17 07:32:50:

    1. assignee initialized to: "vasiljevic"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Hi guys,
      
      I'm using Tcl 8.5a4 with Thread 2.6.3 in a housemade
      TclKit with threads enabled (of course) and VFS 1.3
      (including the patch Jeff Hobbs did on 2006-05-26).
      
      When running the next code with the Tcl/Tk without
      using VFS it runs ok, but when we execute this code in
      a Threaded TclKit it crashes (sorry, but I don't see
      any error message).
      
      if {[catch {
          package require Thread
      }]} {
          load thread.dll
      }
      
      set threadIds {}
      set x 0
      
      while {$x < 10} {
          lappend threadIds [thread::create]
          incr x
      }
      
      foreach threadId $threadIds {
          thread::send -async $threadId "clock format [clock
      seconds] -format \"%Y/%m/%d %H:%M:%S\""
      }
      
      To me looks like a VFS/Thread problem or maybe a clock
      problem (I've tested with ActiveState 8.4.13 BaseKit
      and seems to work fine).
      
      If you need anything else, please don't hesitate to
      contact me.
      
      Best Regards,
      Carlos Tasada.
      
    4. foundin initialized to: "obsolete: 8.5a4"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "ctasada"
    9. subsystem initialized to: "80. Thread Package"
    10. title initialized to: "Crash using clock commands in a Thread using VFS"
    11. type initialized to: "Bug"
  2. Ticket change [360a7eb20a] (rid 107049) by vasiljevic on 2006-08-06 16:11:42:

    1. icomment:
      Logged In: YES 
      user_id=95086
      
      Is this Windows or Unix?
      Can you get some stack-trace of the crashing thread
      using the GDB if on Unix or VC++ debugger (or 
      alternative) if on Windows?
      
       
      
      
      
    2. login: "vasiljevic"
    3. mimetype: "text/plain"
    4. username: "vasiljevic"
  3. Ticket change [1218907ee2] (rid 95255) by ctasada on 2006-08-07 14:54:57:

    1. icomment:
      Logged In: YES 
      user_id=340696
      
      It happens in both systems. Saddly I cannot provide you with
      a stacktrace because for some reason I cannot compile the
      TclKit in debug mode :(
      
      The error that I get is:
      
      Error from thread tid0xb63f5ba0
      couldn't read file
      "/home/carlos/fw5/Bin/fw5-base/lib/tcl8.5/clock.tcl": not a
      irectory
          while executing
      "source -encoding utf-8 [file join $TclLibDir clock.tcl]"
          (procedure "::tcl::clock::format" line 3)
          invoked from within
      "clock format 1154936894 -format {%Y/%m/%d %H:%M:%S}"
          ("uplevel" body line 1)
          invoked from within
      "uplevel 1 [info level 0]"
          (procedure "clock" line 16)
          invoked from within
      "clock format 1154936894 -format "%Y/%m/%d %H:%M:%S""
      called Tcl_FindHashEntry on deleted tableSegmentation fault
      
      Looking in the code where was generated this error I found
      the TclDbInitNewObj method in the TclObj.c file. There I see
      that the error seems to be produced in the call to
      Tcl_CreateHashEntry where I find that the newPtr looks like
      is always  set to 0 ????. Probably I'm missing something,
      but looks like there are tons of problems to run the TclKit
      in debug mode.
      
      If I can do something else to find the problem, please ask me.
      
      Thanks a lot.
      
      
    2. login: "ctasada"
    3. mimetype: "text/plain"
    4. username: "ctasada"
  4. Ticket change [205f70ef81] (rid 91300) by ctasada on 2007-01-30 04:35:06:

    1. icomment:
      Logged In: YES 
      user_id=340696
      Originator: YES
      
      Hi,
      
      I've been trying this script using ActiveTcl8.5.0.0b5.261540-win32-ix86-threaded.exe base threaded versions with Thread 2.6.5, in Windows and Linux and I get a crash in both cases:
      - Windows: called Tcl_Close on channel with refcount > 0
      - Linux: clock command not found
      
      Retesting with 8.4.13 (Thread 2.6.3) it works, as I already said in the first post.
      
      Is there any test that I can do to help you finding the problem? I cannot obtain the stacktrace, or I don't known how to do it :(
      
      Thanks again
      
      
    2. login: "ctasada"
    3. mimetype: "text/plain"
    4. username: "ctasada"
  5. Ticket change [d880fc88bc] (rid 107449) by ctasada on 2007-01-30 19:26:17:

    1. foundin changed to: "obsolete: 8.5a5"
    2. priority changed to: "6"
  6. Ticket change [5cc5d2de0a] (rid 115362) by vasiljevic on 2007-01-30 19:35:10:

    1. icomment:
      Logged In: YES 
      user_id=95086
      Originator: NO
      
      Obviously it has nothing to do with the thread package
      but it has everything to do with the Tcl version. 
      I'm no windows specialist so I cannot tell you how to 
      obtain the stack trace there. On Linux it is simpler: just
      compile the Tcl (and all packages you load) with 
      --enable-symbols. Then run the tclsh under debugger
      (gdb) and run you test. When it crashes, you can use
      "backtrace" (bt) gdb command to show the stack of the
      thread that did cause the exception.
      
      
      
    2. login: "vasiljevic"
    3. mimetype: "text/plain"
    4. username: "vasiljevic"
  7. Ticket change [d24d9dd423] (rid 113513) by ctasada on 2007-01-31 17:32:55:

    1. icomment:
      Logged In: YES 
      user_id=340696
      Originator: YES
      
      This problem only happens using a tclkit or an ActiveState base package. Using the standard Tcl/Tk versions it works fine. I've tried to compile TclKit in debug mode, without luck, and I don't have the source to compile an ActiveState base package :(
      
      
    2. login: "ctasada"
    3. mimetype: "text/plain"
    4. username: "ctasada"
  8. Ticket change [26d3609f8a] (rid 88416) by hobbs on 2007-02-09 07:11:43:

    1. closedate changed to: "2007-02-09T00:11:43"
    2. closer changed to: "hobbs"
    3. icomment:
      Logged In: YES 
      user_id=72656
      Originator: NO
      
      Resolved out of band with Carlos.
      
      
    4. login: "hobbs"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "hobbs"