From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21225 invoked by alias); 24 Jan 2004 05:13:30 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 21209 invoked from network); 24 Jan 2004 05:13:27 -0000 Received: from unknown (HELO smtpgw1.nintendo.com) (205.166.76.16) by sources.redhat.com with SMTP; 24 Jan 2004 05:13:27 -0000 Received: from Gateways-MTA by smtpgw1.nintendo.com with Novell_GroupWise; Fri, 23 Jan 2004 21:13:26 -0800 Message-Id: Date: Sat, 24 Jan 2004 05:13:00 -0000 From: "John Utz" To: Cc: Subject: Re: gdbserver coredumps,what is the *right* libthread_db.so for gdbserver on a given platform? Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-SW-Source: 2004-01/txt/msg00287.txt.bz2 Hi again, more informatoin.... >>> Daniel Jacobowitz 01/23/04 02:50PM >>> > If it's still segfaulting you've found a new or unique problem. You'll > have to figure out what gdbserver is doing :) ok, so here's a slight improvement, but still weird...hope that it might jog your brain.... if i take my libpthread-0.9.so and copy it to libpthread-0.9.so.db and then *strip* libpthread-0.9.so i can run 'share' successfully, ie not crash gdbserver. that's good. of course, this means that i have no symbols for libpthread-0.9.so. But, better yet. i can do an add-symbol-file on the libpthread-0.9.so.db and *not* crash gdbserver and get symbols for libpthread-0.9.so!! But, the bad news is that i then get a noncrashing error from gdbserver when i do this: gdb: Unable to set global thread event mask: generic error then, if i step thru my sample thread app i suddenly get an apparent infinite loop of something..i think, because i get a SIGSEV. when i do a bt it shows that i am in longjmp: #0 0x4001a3c2 in longjmp #1 0xffffffff in ?? () <...> #4345 0xffffffff in ?? () #4346 0xffffffff in ?? () #4347 0xffffffff in ?? () <...> and on and on until i reboot the target... does this collection of facts provide any additional insight? failing that, how do i debug gdsbserver? tnx! johnu