On 6/6/2024 8:31 AM, Luis Mendes wrote:
Hi,
I've never used Threads or Ttrace before, but now I'm setting up Threads
to speed up my program.
When sourcing a tcl file there's a segfault.
You likely will need to narrow this down, i.e. what statement causes the segfault. Place vwait forever in the file at 1/2, 1/4, .... points until you find it.
However, from what you are doing, you might just first try to package require Thread to see if that crashes.
Ttrace seems to be recommended to track the problem.
When I attempt
package require Ttrace
there's the error:
"""attempt to provide package ttrace 2.9b1 failed: no version of package ttrace provided"""
The Thread version installed in /usr/local/lib is 2.9b1.
In the book "The Tcl Programming Language" there's no mention that I can
see about installing it from other source.
A grep seems to point to the lib/ttrace.tcl as the source of it, inside
the tcllib directory.
There's almost no information I can gather from web searches about this.
What should I do to be able to use Ttrace?
Thank you,
Luís
The 2.9b1 is suspicious to me.
What version of tcl are you running, i.e. info patch
If the crash is not from,
package require Thread
Is it also 2.9b1 ?
That indicates a beta version. Typically, I only see beta versions of Thread or Ttrace (which usually both have the same version) when I am building my own beta version of tcl from a source kit, e.g. 9.0b1.
I would guess you may have a mixed up tcl system. Typically the same pkgIndex.tcl file handles the ifneeded for both the thread .so which is loaded and the file ttrace.tcl (which ends up being sourced).
Obviously, more info is needed to help out here.
On the other hand, if you can, you probably should just install a complete version of tcl.
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)