From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22426 invoked by alias); 13 Dec 2001 23:08:33 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 21401 invoked from network); 13 Dec 2001 23:07:14 -0000 Received: from unknown (HELO cygnus.com) (205.180.230.5) by sources.redhat.com with SMTP; 13 Dec 2001 23:07:14 -0000 Received: from cygnus.com (reddwarf.cygnus.com [205.180.231.12]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id PAA08805; Thu, 13 Dec 2001 15:07:12 -0800 (PST) Message-ID: <3C1933E7.E2B9DE87@cygnus.com> Date: Thu, 13 Dec 2001 15:08:00 -0000 From: Michael Snyder Organization: Red Hat, Inc. X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.2-2smp i686) X-Accept-Language: en MIME-Version: 1.0 To: Daniel Jacobowitz CC: gdb-patches@sources.redhat.com Subject: Re: [RFA] Don't use thread_db on corefiles References: <20011213114847.A17989@nevyn.them.org> <3C190DDC.B32D6A7B@cygnus.com> <20011213152958.A30211@nevyn.them.org> <3C1931E3.E240B409@cygnus.com> <20011213180259.A11251@nevyn.them.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2001-12/txt/msg00364.txt.bz2 Daniel Jacobowitz wrote: > > On Thu, Dec 13, 2001 at 02:55:31PM -0800, Michael Snyder wrote: > > Daniel Jacobowitz wrote: > > > > > > On Thu, Dec 13, 2001 at 12:21:48PM -0800, Michael Snyder wrote: > > > > Daniel Jacobowitz wrote: > > > > > > > > > > This patch fixes a really frustrating internal error when you open the > > > > > coredump of a multithreaded application. Depending on your kernel, either > > > > > the core has threads (corefile.c supports this just fine) or it doesn't. > > > > > Neither way will opening libthread_db work right. > > > > > > > > Daniel, what exactly is the problem that you are solving? > > > > What do you mean by "work right"? > > > > > > Work at all. Witness: > > > > What the heck kind of core file is this? I've never seen > > the behavior you're getting. GDB certainly works for standard > > corefiles on Linux (which BTW don't have any thread info in them). > > This is a multithreaded core file :) > > It follows the basic ELF standard for multiple threads in one core > file; multiple PRSTATUS notes, the first of which is the thread that > crashed. > > I'm still putting some touches on the kernel patch itself. Stopping > multiple threads so you can dump them is a royal pain. OK. I'd like to see that patch when it's ready. Do you use only lwp's, or do you use glibc/libpthread threads? If you use library threads, are you saving their info in the core file, or are you only saving the info for the lwp's?