|
2007-02-09
| ||
| 07:11 | • Closed ticket [1523697fff]: Crash using clock commands in a Thread using VFS... artifact: 26d3609f8a user: hobbs | |
|
2007-01-31
| ||
| 17:32 | • Ticket [1523697fff]: 4 changes artifact: d24d9dd423 user: ctasada | |
|
2007-01-30
| ||
| 19:35 | • Ticket [1523697fff]: 4 changes artifact: 5cc5d2de0a user: vasiljevic | |
| 19:26 | • Ticket [1523697fff]: 2 changes artifact: d880fc88bc user: ctasada | |
| 04:35 | • Ticket [1523697fff]: 4 changes artifact: 205f70ef81 user: ctasada | |
|
2006-08-07
| ||
| 14:54 | • Ticket [1523697fff]: 4 changes artifact: 1218907ee2 user: ctasada | |
|
2006-08-06
| ||
| 16:11 | • Ticket [1523697fff]: 4 changes artifact: 360a7eb20a user: vasiljevic | |
|
2006-07-17
| ||
| 07:32 | • New ticket [1523697fff]. artifact: 1f3c848e90 user: ctasada | |
Crash using clock commands in a Thread using VFS
Closed / Fixed1523697fffffffffffffffffffffffffffffffffCreated 20 years agoUpdated 20 years ago
Descriptionplain2006-07-17 07:32:50
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.
vasiljevicplain2006-08-06 16:11:42
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?
ctasadaplain2006-08-07 14:54:57
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.
ctasadaplain2007-01-30 04:35:06
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
ctasada Ticket [1523697fff]: 2 changes
[History diff]2007-01-30 19:26:17
vasiljevicplain2007-01-30 19:35:10
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.
ctasadaplain2007-01-31 17:32:55
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 :(
hobbsplain2007-02-09 07:11:43
Logged In: YES user_id=72656 Originator: NO Resolved out of band with Carlos.
Log in (anonymous is fine) to add a comment.