Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

BOFH excuse #274: It was OK before you touched it.


comp / comp.lang.tcl / Re: Ttrace package - no version of package ttrace provided

SubjectAuthor
* Ttrace package - no version of package ttrace providedLuis Mendes
+- Re: Ttrace package - no version of package ttrace providedgreg
+- Re: Ttrace package - no version of package ttrace providedsaito
`- Re: Ttrace package - no version of package ttrace providedet99

1
Subject: Ttrace package - no version of package ttrace provided
From: Luis Mendes
Newsgroups: comp.lang.tcl
Organization: SunSITE.dk - Supporting Open source
Date: Thu, 6 Jun 2024 15:31 UTC
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
From: luisXXXlupeXXX@gmail.com (Luis Mendes)
Subject: Ttrace package - no version of package ttrace provided
Newsgroups: comp.lang.tcl
MIME-Version: 1.0
User-Agent: Pan/0.154 (Izium; 517acf4)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Date: 06 Jun 2024 15:31:38 GMT
Lines: 30
Message-ID: <6661d65a$0$705$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: 123d81eb.news.sunsite.dk
X-Trace: 1717687898 news.sunsite.dk 705 luislupe@gmail.com/176.79.85.73:52351
X-Complaints-To: staff@sunsite.dk
View all headers

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.
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

Subject: Re: Ttrace package - no version of package ttrace provided
From: greg
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Thu, 6 Jun 2024 19:35 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: gregor.ebbing@gmx.de (greg)
Newsgroups: comp.lang.tcl
Subject: Re: Ttrace package - no version of package ttrace provided
Date: Thu, 6 Jun 2024 21:35:46 +0200
Organization: A noiseless patient Spider
Lines: 52
Message-ID: <v3t32i$1kmuf$1@dont-email.me>
References: <6661d65a$0$705$14726298@news.sunsite.dk>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 06 Jun 2024 21:35:47 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="cd8a6448bc3fef8b5e1907ed0341da26";
logging-data="1727439"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+zUrhrNaSNBh55bDKDxptWr1e1SmLVH5k="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:ieP/mjdwbS86JBwy5/2Yc8f5LCI=
Content-Language: de-DE
In-Reply-To: <6661d65a$0$705$14726298@news.sunsite.dk>
View all headers

Am 06.06.24 um 17:31 schrieb Luis Mendes:
> 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.
> 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

Hello,

#I install thread with debian:

apt install tcl-thread

#then only load Ttrace

$ tclsh
tclsh8.6 [~] package require Ttrace
2.8.9

ttrace a sub-package of Thread
https://wiki.tcl-lang.org/page/thread#353f24e94d86afdaa5cb728f6043bfcda92083ab8ecc28555c48fe6156cde70d

Gregor

Subject: Re: Ttrace package - no version of package ttrace provided
From: saito
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Fri, 7 Jun 2024 01:42 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: saitology9@gmail.com (saito)
Newsgroups: comp.lang.tcl
Subject: Re: Ttrace package - no version of package ttrace provided
Date: Thu, 6 Jun 2024 21:42:39 -0400
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <v3toif$1oshp$2@dont-email.me>
References: <6661d65a$0$705$14726298@news.sunsite.dk>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 07 Jun 2024 03:42:40 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="a2bbb1476602ea1b4ddf2545a6ceab7d";
logging-data="1864249"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19QkHi5Ye9DUnLzJO2vBM8J"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:Tw4D+IAkWWtroB7WDxHja+KUlV4=
Content-Language: en-US
In-Reply-To: <6661d65a$0$705$14726298@news.sunsite.dk>
View all headers

On 6/6/2024 11:31 AM, Luis Mendes wrote:
>
> 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.

That is an interesting version number! Is it perhaps some kind of a beta
version that may not have been built properly?

>
> In the book "The Tcl Programming Language" there's no mention that I can
> see about installing it from other source.

AFAIK,it comes with the Thread package. It is a plain Tcl file.

> What should I do to be able to use Ttrace?
>

Just a proper installation of the Thread package, I suppose.

You could start here: https://core.tcl-lang.org/index.html

Subject: Re: Ttrace package - no version of package ttrace provided
From: et99
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Fri, 7 Jun 2024 02:35 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: et99@rocketship1.me (et99)
Newsgroups: comp.lang.tcl
Subject: Re: Ttrace package - no version of package ttrace provided
Date: Thu, 6 Jun 2024 19:35:00 -0700
Organization: A noiseless patient Spider
Lines: 60
Message-ID: <v3trkl$1t8f7$1@dont-email.me>
References: <6661d65a$0$705$14726298@news.sunsite.dk>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 07 Jun 2024 04:35:01 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="fb3a95c58f01747a391c1d559c8aa8bf";
logging-data="2007527"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18BXiRv0OdJL27GHLdJVq/h"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
Cancel-Lock: sha1:J4nuRRYJLm0+12ppPulV4paZTj0=
Content-Language: en-US
In-Reply-To: <6661d65a$0$705$14726298@news.sunsite.dk>
View all headers

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.

1

rocksolid light 0.9.8
clearnet tor