Thread View: linux.debian.bugs.rc
3 messages
3 total messages
Started by juan.mendezr
Sat, 07 Nov 2026 00:40
Bug#1153300: dh-go: 1.70 writes a replace next to the use for the same module, FTBFS
Author: juan.mendezr
Date: Sat, 07 Nov 2026 00:40
Date: Sat, 07 Nov 2026 00:40
107 lines
5837 bytes
5837 bytes
Package: dh-go
Version: 1.70
Severity: serious
Tags: patch
X-Debbugs-Cc: juan.mendezr@proton.me
1.70 cannot build a multi-module package when that package's own -dev is also
installed under /usr/share/gocode/src. That is the case in autopkgtest for
every package, and in a plain build for a package whose build dependencies
pull its own -dev back in. otel is in the second group: it build depends on
golang-google-grpc-dev, which depends on golang-opentelemetry-otel-dev, and
dh-go says so during configure, "go.opentelemetry.io/otel is already
installed. Please check for circular dependencies."
golang-opentelemetry-otel 1.46.0-3, unchanged source that is in testing, in a
clean sid chroot with the 1.70 from the mirror:
go: workspace module go.opentelemetry.io/otel/sdk/metric is replaced at all
versions in the go.work file. To fix, remove the replacement from the
go.work file or specify the version at which to replace the module.
dh_auto_build: error: cd _build && go install -trimpath -v -p 24 returned
exit code 1
44 errors, 22 distinct modules, every one of them in the package's own
DH_GOLANG_BUILDPKG. This is a plain build, not autopkgtest.
The same log carries 20460 copies of
Use of uninitialized value $_ in string eq at
/usr/share/perl5/Debian/Debhelper/Buildsystem/golang.pm line 1051
Line 1051 is the skip that 1.70 changed:
- next if grep { $_ eq $module } @targets;
+ next if grep { $_ eq $module } @use_modules;
@use_modules is all undef by then. It is wiped twelve lines above, at line 1000:
@deps_to_check = map { $this->_get_go_module_dependencies($_) } @use_modules;
In map, $_ is an alias to the array element. _get_go_module_dependencies reads
go.mod with an unlocalised "while (<$gomod>)", which assigns to the global $_,
so every call overwrites the element it was passed and leaves undef there at
EOF. The grep then matches nothing, each module in the workspace also gets a
replace, and go refuses the workspace.
Reproducer without dh-go:
sub reads_a_file {
open(my $fh, "<", "/etc/hostname") or die $!;
while (<$fh>) { }
return ("dep");
}
my @use_modules = ("mod/a", "mod/b", "mod/c");
my @deps = map { reads_a_file($_) } @use_modules;
# @use_modules is now (undef, undef, undef)
# grep { $_ eq "mod/a" } @use_modules finds nothing
1.69 was not affected because @targets never passes through that map. The
change at 1051 is correct in itself, it just landed on top of this.
Fix, in _get_go_module_dependencies, before the loop that reads go.mod, also
sent as https://salsa.debian.org/go-team/dh-go/-/merge_requests/10 :
--- a/lib/Debian/Debhelper/Buildsystem/golang.pm
+++ b/lib/Debian/Debhelper/Buildsystem/golang.pm
@@
open(my $gomod, "<", $gomodfile)
or error("failed to read $gomodfile: $!");
+ local $_;
while (<$gomod>) {
Built as 1.70+fix1 and used to rebuild the same otel source in a clean sid
chroot: Status successful, Lintian successful, Autopkgtest pass, 125 tests in
the build and 125 in the autopkgtest, no failures. The 20460 warnings and the
44 workspace errors are gone. Without the patch the same .dsc and the same
chroot recipe fail at dh_auto_build.
A lexical loop variable would be better style and would remove the hazard for
good, but it means touching the regexes in the loop body, so this is the
smaller change for unstable. The same pattern is in build(), which is not
called from a map today.
Second package, from another testbed and not my own run: the collector sees
the same thing from the autopkgtest side, 166 "is replaced at all versions"
and 33367 uninitialized value warnings, with dh-go 1.70 in the testbed. Its
plain build passes, because nothing pulls its own -dev into the build chroot.
https://salsa.debian.org/mendezr/golang-opentelemetry-collector/-/pipelines/1207763
Severity serious because it is an FTBFS in unstable for packages that build
today, and the dh-go migration excuses currently list about 50 reverse
dependency autopkgtests.
Bug#1153300: dh-go: 1.70 writes a replace next to the use for the same module, FTBFS
Author: juan.mendezr
Date: Sat, 07 Nov 2026 01:50
Date: Sat, 07 Nov 2026 01:50
28 lines
2904 bytes
2904 bytes
My first paragraph made this sound like a multi-module problem. It is not, and the scope is wider than I wrote. A third package reproduces it: golang-github-knqyf263-nested 0.0.1-4, a single module at the root with no /vN and no submodules. Under autopkgtest-virt-unshare on sid, with the 1.70 from the archive, the test fails with one "Use of uninitialized value $_ ... line 1051" and two "workspace module github.com/knqyf263/nested is replaced at all versions", and with 1.70 plus the patch it passes with neither. Also on salsa: https://salsa.debian.org/go-team/packages/golang-github-knqyf263-nested/-/jobs/10608315 So the condition is only this: the module being built is also installed under /usr/share/gocode/src. The multi-module layout changes how many errors you get, 44 for otel against 2 for nested, not whether you get them. That means every dh-go package is affected under autopkgtest, where its own -dev is installed by definition, which matches the roughly 50 reverse dependency autopkgtests in the migration excuses rather than only the multi-module ones. That run is not mine. I checked the two logs on the same machine and they say FAIL and PASS as described.
Bug#1153300: marked as done (dh-go: 1.70 writes a replace next to the use for the same module, FTBFS)
Author: Debian Bug Tracking System
Date: Sun, 08 Nov 2026 11:10
Date: Sun, 08 Nov 2026 11:10
350 lines
16107 bytes
16107 bytes
This is a multi-part message in MIME format...
------------=_1794136021-1435471-0
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"
Your message dated Sun, 08 Nov 2026 11:05:29 +0000
with message-id <E1xQ0iH-0000000H9fo-2Sef@fasolo.debian.org>
and subject line Bug#1153300: fixed in dh-go 1.71
has caused the Debian Bug report #1153300,
regarding dh-go: 1.70 writes a replace next to the use for the same module,=
FTBFS
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)
--=20
1153300: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D1153300
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
------------=_1794136021-1435471-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
Received: (at submit) by bugs.debian.org; 7 Nov 2026 00:32:49 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
(2024-03-25) on buxtehude.debian.org
X-Spam-Level:
X-Spam-Status: No, score=-15.0 required=4.0 tests=BAYES_00,
BODY_INCLUDES_PACKAGE,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,
DKIM_VALID_EF,HAS_PACKAGE,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H5,
RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS,T_PDS_OTHER_BAD_TLD
autolearn=ham autolearn_force=no
version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 16; hammy, 150; neutral, 177; spammy,
0. spammytokens: hammytokens:0.000-+--XDebbugsCc,
0.000-+--X-Debbugs-Cc, 0.000-+--autopkgtest, 0.000-+--sk:golang,
0.000-+--sk:golang-
Return-path: <juan.mendezr@proton.me>
Received: from mail-106121.protonmail.ch ([79.135.106.121]:59301)
by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
(Exim 4.96)
(envelope-from <juan.mendezr@proton.me>)
id 1xPUMO-001Zhr-0V
for submit@bugs.debian.org;
Sat, 07 Nov 2026 00:32:49 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me;
s=protonmail2; t=1794011560; x=1794270760;
bh=N84IGVkE6y175A8Dk2DC4Kcvx3NVq2+qtuRXPokp/yM=;
h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date:
Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector;
b=AM0FUCSidGqxYEtnSE0En7s18nl8cKaGpiqNPKZuzmAKMrdFYYzyyDaAzFI6B+b59
MH4MUtc5+4UyeUbjDkNrjrocDQ2KitVBtgQFsdRE9uIt1TZbgaX5PGH7YFQpnwlEdn
dsHJvfi+4aimsfm2J6LSwCViVzuh0U8XFr14jm43r4pvKv8LjOhtfwFxTfuOYjUD4C
hRujZrK6OiIdWBEKVZcVRWNOpnyWyoLgVNu/Jbup9LPPGnUlxJQqjacH1BrNtAsPhK
sPAGyEbLvJizAmo6OqM9kKfzZO1WV9snVBgh/J1NdfJRTNgexFfJDuX4nWy+hjLUqX
q1sUqujlcN0VQ==
Date: Sat, 07 Nov 2026 00:32:36 +0000
To: submit@bugs.debian.org
From: juan.mendezr@proton.me
Subject: dh-go: 1.70 writes a replace next to the use for the same module, FTBFS
Message-ID: <c8840e8a8c9803d838c1caa44cd7e0d7@proton.me>
Feedback-ID: 176548819:user:proton
X-Pm-Message-ID: d4934c2c6c11904aa871e0c93bb26dd97e4117c6
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Delivered-To: submit@bugs.debian.org
Package: dh-go
Version: 1.70
Severity: serious
Tags: patch
X-Debbugs-Cc: juan.mendezr@proton.me
1.70 cannot build a multi-module package when that package's own -dev is al=
so
installed under /usr/share/gocode/src. That is the case in autopkgtest for
every package, and in a plain build for a package whose build dependencies
pull its own -dev back in. otel is in the second group: it build depends on
golang-google-grpc-dev, which depends on golang-opentelemetry-otel-dev, and
dh-go says so during configure, "go.opentelemetry.io/otel is already
installed. Please check for circular dependencies."
golang-opentelemetry-otel 1.46.0-3, unchanged source that is in testing, in=
a
clean sid chroot with the 1.70 from the mirror:
go: workspace module go.opentelemetry.io/otel/sdk/metric is replaced at a=
ll
versions in the go.work file. To fix, remove the replacement from the
go.work file or specify the version at which to replace the module.
dh_auto_build: error: cd _build && go install -trimpath -v -p 24 returned
exit code 1
44 errors, 22 distinct modules, every one of them in the package's own
DH_GOLANG_BUILDPKG. This is a plain build, not autopkgtest.
The same log carries 20460 copies of
Use of uninitialized value $_ in string eq at
/usr/share/perl5/Debian/Debhelper/Buildsystem/golang.pm line 1051
Line 1051 is the skip that 1.70 changed:
- next if grep { $_ eq $module } @targets;
+ next if grep { $_ eq $module } @use_modules;
@use_modules is all undef by then. It is wiped twelve lines above, at line =
1000:
@deps_to_check =3D map { $this->_get_go_module_dependencies($_) } @use_mo=
dules;
In map, $_ is an alias to the array element. _get_go_module_dependencies re=
ads
go.mod with an unlocalised "while (<$gomod>)", which assigns to the global =
$_,
so every call overwrites the element it was passed and leaves undef there a=
t
EOF. The grep then matches nothing, each module in the workspace also gets =
a
replace, and go refuses the workspace.
Reproducer without dh-go:
sub reads_a_file {
open(my $fh, "<", "/etc/hostname") or die $!;
while (<$fh>) { }
return ("dep");
}
my @use_modules =3D ("mod/a", "mod/b", "mod/c");
my @deps =3D map { reads_a_file($_) } @use_modules;
# @use_modules is now (undef, undef, undef)
# grep { $_ eq "mod/a" } @use_modules finds nothing
1.69 was not affected because @targets never passes through that map. The
change at 1051 is correct in itself, it just landed on top of this.
Fix, in _get_go_module_dependencies, before the loop that reads go.mod, als=
o
sent as https://salsa.debian.org/go-team/dh-go/-/merge_requests/10 :
--- a/lib/Debian/Debhelper/Buildsystem/golang.pm
+++ b/lib/Debian/Debhelper/Buildsystem/golang.pm
@@
open(my $gomod, "<", $gomodfile)
or error("failed to read $gomodfile: $!");
+ local $_;
while (<$gomod>) {
Built as 1.70+fix1 and used to rebuild the same otel source in a clean sid
chroot: Status successful, Lintian successful, Autopkgtest pass, 125 tests =
in
the build and 125 in the autopkgtest, no failures. The 20460 warnings and t=
he
44 workspace errors are gone. Without the patch the same .dsc and the same
chroot recipe fail at dh_auto_build.
A lexical loop variable would be better style and would remove the hazard f=
or
good, but it means touching the regexes in the loop body, so this is the
smaller change for unstable. The same pattern is in build(), which is not
called from a map today.
Second package, from another testbed and not my own run: the collector sees
the same thing from the autopkgtest side, 166 "is replaced at all versions"
and 33367 uninitialized value warnings, with dh-go 1.70 in the testbed. Its
plain build passes, because nothing pulls its own -dev into the build chroo=
t.
https://salsa.debian.org/mendezr/golang-opentelemetry-collector/-/pipelines=
/1207763
Severity serious because it is an FTBFS in unstable for packages that build
today, and the dh-go migration excuses currently list about 50 reverse
dependency autopkgtests.
------------=_1794136021-1435471-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
Received: (at 1153300-close) by bugs.debian.org; 8 Nov 2026 11:05:32 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
(2024-03-25) on buxtehude.debian.org
X-Spam-Level:
X-Spam-Status: No, score=-113.0 required=4.0 tests=BAYES_00,DKIM_SIGNED,
DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FOURLA,FVGT_m_MULTI_ODD,
HAS_BUG_NUMBER,MD5_SHA1_SUM,PGPSIGNATURE,RCVD_IN_DNSWL_MED,
SPF_HELO_PASS,SPF_PASS,USER_IN_DKIM_WELCOMELIST autolearn=ham
autolearn_force=no version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 94; hammy, 150; neutral, 107; spammy,
0. spammytokens: hammytokens:0.000-+--HX-Debian:DAK,
0.000-+--H*rp:D*ftp-master.debian.org, 0.000-+--HX-DAK:process-upload,
0.000-+--H*r:sk:fasolo., 0.000-+--H*MI:fasolo
Return-path: <envelope@ftp-master.debian.org>
Received: from mitropoulos.debian.org ([2001:648:2ffc:deb:216:61ff:fe9d:958d]:35496)
by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
(Exim 4.96)
(envelope-from <envelope@ftp-master.debian.org>)
id 1xQ0iK-0061KN-2d
for 1153300-close@bugs.debian.org;
Sun, 08 Nov 2026 11:05:32 +0000
Received: via submission
from C=NA,ST=NA,L=Ankh Morpork,O=Debian SMTP,OU=Debian SMTP CA,CN=fasolo.debian.org,EMAIL=hostmaster@fasolo.debian.org (verified)
by mitropoulos.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
(Exim 4.96)
(envelope-from <envelope@ftp-master.debian.org>)
id 1xQ0iI-009qY1-2X
for 1153300-close@bugs.debian.org;
Sun, 08 Nov 2026 11:05:30 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
d=ftp-master.debian.org; s=smtpauto.fasolo; h=Date:Message-Id:Content-Type:
Subject:MIME-Version:To:Reply-To:From:Cc:Content-Transfer-Encoding:Content-ID
:Content-Description:In-Reply-To:References;
bh=ZSdTl+UURrXSkx3qjp2s0D324gRSkHCGo5IkfxxscGU=; b=brLIQpig0gSSF6tmtyVnktnjhn
GMH0iCOyjcSmxuw3Q4ERx2ENqrqpItjgtP94Dxy/6OZzPK7fum/WbMr2JyIcOI25O2qs5E3eV5+z5
OVtODJ/a8zfyV8FPHxCQhUXZDKLEUGBHDTcrEg41fajsW9DpAWJgecQGuDLcVxGCABC2im09epyjz
Des31iREN2Iy8pfweAyNyN5EiPIe3MPGLuOUkrmMEtIyxsALyeZrHbW+mV69SbG0fFlX9WAi5RZ4M
08+KoyZmSJUS0/Xt/PI8qT/N/ypom4pdIHCqv65hhoiXdJ9RY4QUs/uiAqVsuheKvGQfl3oJ3zKEc
+/G+FUFw==;
Received: from dak by fasolo.debian.org with local (Exim 4.98.2)
(envelope-from <envelope@ftp-master.debian.org>)
id 1xQ0iH-0000000H9fo-2Sef;
Sun, 08 Nov 2026 11:05:29 +0000
From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
Reply-To: toddy@debian.org (Dr. Tobias Quathamer)
To: 1153300-close@bugs.debian.org
X-DAK: dak process-upload
X-Debian: DAK
X-Debian-Package: dh-go
Debian: DAK
Debian-Changes: dh-go_1.71_source.changes
Debian-Source: dh-go
Debian-Version: 1.71
Debian-Architecture: source
Debian-Suite: unstable
Debian-Archive-Action: accept
MIME-Version: 1.0
Subject: Bug#1153300: fixed in dh-go 1.71
Content-Type: multipart/signed; micalg="pgp-sha256";
protocol="application/pgp-signature";
boundary="===============0811703322097651199=="
Message-Id: <E1xQ0iH-0000000H9fo-2Sef@fasolo.debian.org>
Date: Sun, 08 Nov 2026 11:05:29 +0000
--===============0811703322097651199==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Source: dh-go
Source-Version: 1.71
Done: Dr. Tobias Quathamer <toddy@debian.org>
We believe that the bug you reported is fixed in the latest version of
dh-go, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 1153300@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Dr. Tobias Quathamer <toddy@debian.org> (supplier of updated dh-go package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Sun, 08 Nov 2026 10:58:49 +0100
Source: dh-go
Architecture: source
Version: 1.71
Distribution: unstable
Urgency: medium
Maintainer: Debian Go Packaging Team <team+pkg-go@tracker.debian.org>
Changed-By: Dr. Tobias Quathamer <toddy@debian.org>
Closes: 1153300
Changes:
dh-go (1.71) unstable; urgency=3Dmedium
.
* Fix FTBFS in autopkgtests by introducing a lexical loop variable.
(Closes: #1153300)
Checksums-Sha1:
60e6d635a37a2f6d84ca3331aac0378c1f040c50 1726 dh-go_1.71.dsc
bf6ece49917b1c62c2a21f55d76f099828b43491 29404 dh-go_1.71.tar.xz
e300121ba1118d6d880cdb4f28bde0e139d48161 5378 dh-go_1.71_amd64.buildinfo
Checksums-Sha256:
ea2ece055062273f5c101f92446df0a0250e3dcc2ad4b4365bf0e09e21af3799 1726 dh-go_=
1.71.dsc
b5b888ba31bd7eb3a40ec622a99abb7e22c8c44bdf8455d5b6be0b28b4c9bee0 29404 dh-go=
_1.71.tar.xz
386b08e0502a240aaee98481202182855388609b33f7be3f4cd00a3b7dfdb763 5378 dh-go_=
1.71_amd64.buildinfo
Files:
4c629c9d6b780a9b40eaa3672124f1a4 1726 golang optional dh-go_1.71.dsc
0956c0e5a77e02c54b0fcccf77454106 29404 golang optional dh-go_1.71.tar.xz
5b2f35c3f76a353f4fe80a05777e2273 5378 golang optional dh-go_1.71_amd64.build=
info
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEE0cuPObxd7STF0seMEwLx8Dbr6xkFAmrwSA0ACgkQEwLx8Dbr
6xmT7g/+PjimgFdoq0fAXk1VKaiPoToQsyZrOhnZcZsGcYfSRcPykfXo5DKJHhjT
k66Tz86X5OfjDtnyyCcL/C7+fLq+s/ri/WfSqCNpxELKHce5LJmrMg48ORTs1+CH
Q0ksWG5JIkYokitnBzPaZNM62ExO2NQ6ThHQ+qtkICyqjfYiTNUj8iWo/clAuN5i
i5wiJXGfnqivYaKydndpmSc+g368XCev+yhf+5qoRg2f6rbekzMx2gVL5qVzuzai
R6uod8KzovUwesZnibJ1cj7X6lnZjL4z5VtUZXfhBXY44DdHKSbx2uQMZlTasBz3
VMLPGWb+WM8Lp1BSm3eMqSqNucVmeIk0smsJw/hClcetMOc+jincWL5uLF0qbDoS
rJ5zkRyy8SvgAD8I4h6vhZ70XnDw3M9sHn12JKfP0WpxEyPXuc2HhTiyQOtewfN+
HuriNBG2BwkTmciRi7xmg95rknyQuAK+Whc3T2+LsSSOeoC318UGIdFJZxEF5O2y
NHiRvblQSGF/uVhEiJZb/L1Lw9iXkp3Sr0L7S98fS9TVN9rZVgPZrWF0Bhd1e/HQ
+HFdg8TwwlZrriUxN2WZnjf20p+NvsX+cikyYiiBdroD0n6HwuLbsWX5GBsavpMD
QvlML9ifpu8xZQrijLHVDPWRaZ8eSOrGWLu5ZJrN9Ss0hIy7G6c=3D
=3DXERY
-----END PGP SIGNATURE-----
--===============0811703322097651199==
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
iHUEABYIAB0WIQTziqJOuF8J+ZI8pJSb9qggYcy5IQUCavBXeQAKCRCb9qggYcy5
IZJQAQCQyi942UGKPmIpc5lL4hsjpz18ewXcVq/7naNl4iORGQD/R6K8CwHYbW7U
SIaHACSc/zauc57P0m7JDI+oSDrzZws=
=+yN6
-----END PGP SIGNATURE-----
--===============0811703322097651199==--
------------=_1794136021-1435471-0--
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads