From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16867 invoked by alias); 19 Nov 2001 11:12:55 -0000 Mailing-List: contact gdb-help@sourceware.cygnus.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 16505 invoked from network); 19 Nov 2001 11:12:46 -0000 Received: from unknown (HELO a59252.upc-a.chello.nl) (62.163.59.252) by sourceware.cygnus.com with SMTP; 19 Nov 2001 11:12:46 -0000 Received: by a59252.upc-a.chello.nl (Postfix, from userid 1000) id 2821C1C95D; Mon, 19 Nov 2001 12:01:23 +0100 (CET) Date: Thu, 08 Nov 2001 07:09:00 -0000 From: peter@a59252.upc-a.chello.nl To: Kevin Buettner Cc: gdb@sourceware.cygnus.com Subject: Re: configuring gdb 5.x for use with threads Message-ID: <20011119120123.C14194@a59252.upc-a.chello.nl> References: <20011102102321.D6507@a59252.upc-a.chello.nl> <20011117142746.A12792@a59252.upc-a.chello.nl> <1011117165348.ZM6496@ocotillo.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <1011117165348.ZM6496@ocotillo.lan>; from kevinb@cygnus.com on Sat, Nov 17, 2001 at 09:53:49AM -0700 X-SW-Source: 2001-11/txt/msg00086.txt.bz2 On Sat, Nov 17, 2001 at 09:53:49AM -0700, Kevin Buettner wrote: > On Nov 17, 2:27pm, peter@a59252.upc-a.chello.nl wrote: > > > I rebuild my glibc+linuxthreads 2.2.4 agains my linuxkernel > > 2.4.15-pre5 SMP, a libthread_db-1.0.so was build. > > Make sure that you have the following patch (to glibc) applied. I too > was having problems with debugging multithreaded programs that were > linked against libraries from glibc 2.2.4. This patch fixed the > problems that I was seeing... > > 2001-10-05 Kevin Buettner > > * pthread.c (__linuxthread_pthread_sizeof_descr): Change name > to __linuxthreads_pthread_sizeof_descr to match name used by > symbol_list_arr[LINUXTHREADS_PTHREAD_SIZEOF_DESCR] in > linuxthreads_db/td_symbol_list.c. > > =================================================================== > RCS file: /cvs/glibc/libc/linuxthreads/pthread.c,v > retrieving revision 1.86 > retrieving revision 1.87 > diff -u -r1.86 -r1.87 > --- libc/linuxthreads/pthread.c 2001/09/12 03:51:41 1.86 > +++ libc/linuxthreads/pthread.c 2001/10/07 20:19:16 1.87 > @@ -211,7 +211,7 @@ > h_descr); > const int __pthread_offsetof_pid = offsetof(struct _pthread_descr_struct, > p_pid); > -const int __linuxthread_pthread_sizeof_descr > +const int __linuxthreads_pthread_sizeof_descr > = sizeof(struct _pthread_descr_struct); > > /* Forward declarations */ > Hi,. This patch wouldn't fix the problemm,. however I put on my stout shoes and build myself a libc from the cvs libc-2.2-branch. This did the trick. However there is another problem now ;-). using gdb 5.0.93-2001-11-18-cvs the following happens: after attaching to a threaded programm, all threads that are in detached state and should exit, leak. this will continue until my process table swamps. I'm a developer, and willing to put some (though limited; business is hard these days) time into this but I'm sort of in the dark here. and help, hints, etc. appreciated. regards, Peter Zijlstra