Debian Bug report logs - #865442
gdb: x86-64: "cannot find thread-local variables

version graph

Package: gdb; Maintainer for gdb is Héctor Orón Martínez <[email protected]>; Source for gdb is src:gdb (PTS, buildd, popcon).

Reported by: [email protected]

Date: Wed, 21 Jun 2017 13:48:01 UTC

Severity: normal

Tags: upstream

Found in version gdb/7.12-6

Full log


🔗 View this message in rfc822 format

X-Loop: [email protected]
Subject: Bug#865442: correction: errno is special, python is not the problem
Reply-To: Zack Weinberg <[email protected]>, [email protected]
Resent-From: Zack Weinberg <[email protected]>
Resent-To: [email protected]
Resent-CC: Héctor Orón Martínez <[email protected]>
X-Loop: [email protected]
Resent-Date: Wed, 21 Jun 2017 14:15:01 +0000
Resent-Message-ID: <[email protected]>
Resent-Sender: [email protected]
X-Debian-PR-Message: followup 865442
X-Debian-PR-Package: gdb
X-Debian-PR-Keywords: upstream
X-Debian-PR-Source: gdb
Received: via spool by [email protected] id=B865442.14980543232301
          (code B ref 865442); Wed, 21 Jun 2017 14:15:01 +0000
Received: (at 865442) by bugs.debian.org; 21 Jun 2017 14:12:03 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.0-bugs.debian.org_2005_01_02
	(2014-02-07) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-3.9 required=4.0 tests=BAYES_00,RCVD_IN_DNSWL_MED,
	SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham autolearn_force=no
	version=3.4.0-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 15; hammy, 103; neutral, 31; spammy,
	0. spammytokens: hammytokens:0.000-+--a.out, 0.000-+--UD:a.out,
	0.000-+--retitle, 0.000-+--breakpoint, 0.000-+--UD:errno.h
Received: from l2mail1.panix.com ([166.84.1.75])
	by buxtehude.debian.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
	(Exim 4.84_2)
	(envelope-from <[email protected]>)
	id 1dNgMV-0000am-58
	for [email protected]; Wed, 21 Jun 2017 14:12:03 +0000
Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89])
	by l2mail1.panix.com (Postfix) with ESMTPS id 6D5AD7F87
	for <[email protected]>; Wed, 21 Jun 2017 09:56:10 -0400 (EDT)
Received: from mail-io0-f181.google.com (mail-io0-f181.google.com [209.85.223.181])
	by mailbackend.panix.com (Postfix) with ESMTPSA id 7309810F0B
	for <[email protected]>; Wed, 21 Jun 2017 09:56:08 -0400 (EDT)
Received: by mail-io0-f181.google.com with SMTP id c201so4086970ioe.1
        for <[email protected]>; Wed, 21 Jun 2017 06:56:08 -0700 (PDT)
X-Gm-Message-State: AKS2vOxqjKRR1zukY4YsKxFEFTx33jRDSKS2CNhOyNKwf52DTA7armtA
	DtMkXnqeGKPive6MGbnn6GU00il7rg==
X-Received: by 10.107.10.84 with SMTP id u81mr32213648ioi.206.1498053367786;
 Wed, 21 Jun 2017 06:56:07 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.107.202.132 with HTTP; Wed, 21 Jun 2017 06:56:07 -0700 (PDT)
From: Zack Weinberg <[email protected]>
Date: Wed, 21 Jun 2017 09:56:07 -0400
X-Gmail-Original-Message-ID: <CAKCAbMgPhuRdMHEffN86T=EuZXJeYuEc3f2DGU_5SCbjwXNCfA@mail.gmail.com>
Message-ID: <CAKCAbMgPhuRdMHEffN86T=EuZXJeYuEc3f2DGU_5SCbjwXNCfA@mail.gmail.com>
To: [email protected]
Content-Type: text/plain; charset="UTF-8"
X-Greylist: delayed 953 seconds by postgrey-1.35 at buxtehude; Wed, 21 Jun 2017 14:12:03 UTC
Control: retitle -1 gdb: x86-64: "cannot find thread-local variables
on this target"

Further experimentation indicates that this is a problem with
thread-local variables in general and there's something special about
'errno' that makes it appear to work; the Python interface is not the
problem.  For instance:

$ cat test.c
#include <stdio.h>
#include <errno.h>
static _Thread_local int foo;
int main(void)
{
  printf("%d %d\n", errno, foo);
}
$ gcc -g test.c
$ gdb ./a.out
...
(gdb) b main
Breakpoint 1 at 0x749: file test.c, line 6.
(gdb) r
Starting program: /home/zack/a.out

Breakpoint 1, main () at test.c:6
6      printf("%d %d\n", errno, foo);
(gdb) p errno
$1 = 0
(gdb) p foo
Cannot find thread-local storage for process 13090, executable file
/home/zack/a.out:
Cannot find thread-local variables on this target

Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Sun Sep 22 09:28:23 2024; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.