From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20910 invoked by alias); 23 Apr 2010 15:46:41 -0000 Received: (qmail 20896 invoked by uid 22791); 23 Apr 2010 15:46:39 -0000 X-SWARE-Spam-Status: No, hits=-6.8 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,TW_DB,T_LOTS_OF_MONEY,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 23 Apr 2010 15:46:34 +0000 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o3NFkWxL029042 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 23 Apr 2010 11:46:32 -0400 Received: from host0.dyn.jankratochvil.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o3NFkUXT023708 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 23 Apr 2010 11:46:32 -0400 Received: from host0.dyn.jankratochvil.net (localhost [127.0.0.1]) by host0.dyn.jankratochvil.net (8.14.4/8.14.4) with ESMTP id o3NFkTdR010742; Fri, 23 Apr 2010 17:46:29 +0200 Received: (from jkratoch@localhost) by host0.dyn.jankratochvil.net (8.14.4/8.14.4/Submit) id o3NFkT6u010741; Fri, 23 Apr 2010 17:46:29 +0200 Date: Fri, 23 Apr 2010 15:46:00 -0000 From: Jan Kratochvil To: gdb Mailing List Cc: Stefano Sabatini Subject: Re: pthread_t ids of threads not showed by "thread info" Message-ID: <20100423154629.GA10463@host0.dyn.jankratochvil.net> References: <20100422151855.GA3128@geppetto> <20100422154404.GB3128@geppetto> <20100422165924.GA1109@host0.dyn.jankratochvil.net> <20100423075135.GA3297@geppetto> <20100423102506.GA21618@host0.dyn.jankratochvil.net> <20100423142115.GA4538@geppetto> <20100423142511.GA6385@host0.dyn.jankratochvil.net> <20100423153554.GB4719@geppetto> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100423153554.GB4719@geppetto> User-Agent: Mutt/1.5.20 (2009-08-17) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-04/txt/msg00108.txt.bz2 On Fri, 23 Apr 2010 17:35:54 +0200, Stefano Sabatini wrote: > On date Friday 2010-04-23 16:25:11 +0200, Jan Kratochvil wrote: > > You must have debug symbols from glibc. On Fedora `debuginfo-install glibc', > > some similar command on other distros. > > OK now I have this problem: > > (gdb) threads __stack_user > Attempt to extract a component of a value that is not a structure. > (gdb) threads stack_used > (gdb) p __stack_user > $1 = -1221236944 $1 = {next = 0x7ffff7fd19c0, prev = 0x7ffff7fd19c0} > (gdb) p &__stack_user > $4 = ( *) 0xb7970160 $4 = (list_t *) 0x379501b280 > (gdb) p (void *)&__stack_user > $5 = (void *) 0xb7970160 $5 = (void *) 0x379501b280 > (gdb) p (void *)&__stack_user.next > Attempt to extract a component of a value that is not a structure. $6 = (void *) 0x379501b280 > I have debug symbols installed (installed libc6-dbg on Debian). You should bugreport it to libc6-dbg, __stack_user must have its type. One could hack it more using just offsets without any struct definitions but it was just a proof-of-concept hack the info is in the core file. One should just apply libthread_db even on the core files. Regards, Jan