From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14576 invoked by alias); 5 Oct 2010 18:00:20 -0000 Received: (qmail 14548 invoked by uid 22791); 5 Oct 2010 18:00:18 -0000 X-SWARE-Spam-Status: No, hits=-6.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,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; Tue, 05 Oct 2010 18:00:11 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o95I0A0g032688 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 5 Oct 2010 14:00:10 -0400 Received: from host1.dyn.jankratochvil.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id o95I089k001176 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 5 Oct 2010 14:00:09 -0400 Received: from host1.dyn.jankratochvil.net (localhost [127.0.0.1]) by host1.dyn.jankratochvil.net (8.14.4/8.14.4) with ESMTP id o95I07ic017885; Tue, 5 Oct 2010 20:00:07 +0200 Received: (from jkratoch@localhost) by host1.dyn.jankratochvil.net (8.14.4/8.14.4/Submit) id o95I07Bw017884; Tue, 5 Oct 2010 20:00:07 +0200 Date: Tue, 05 Oct 2010 18:00:00 -0000 From: Jan Kratochvil To: santoshp Cc: gdb@sourceware.org Subject: Re: How to debug a hang process if the hung process itself is gdb ! Message-ID: <20101005180007.GA17379@host1.dyn.jankratochvil.net> References: <29889557.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <29889557.post@talk.nabble.com> User-Agent: Mutt/1.5.21 (2010-09-15) 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-10/txt/msg00015.txt.bz2 On Tue, 05 Oct 2010 19:38:47 +0200, santoshp wrote: > I have a signal handler for few fatal signals e.g. > sigsegv, sigill etc. The handler will dump the stack trace in the log when > those signals will be triggered using GDB in batch mode. In various cases the process may be crashed a way no longer being able to start that GDB. You should consider using /proc/sys/kernel/core_pattern to run GDB externally, if possible. It is the method used by ABRT (Automatic Bug Reporting Tool) in recent Fedoras (+unconfirmed in RHEL-6). > GDb version: GNU gdb Red Hat Linux (6.5-37.el5_2.2rh), This is RHEL-5.2.z. While troubleshooting you should try a build of one of: http://www.gnu.org/software/gdb/download/ http://www.gnu.org/software/gdb/current/ Otherwise there is also more recent GDB in RHEL/CentOS-5.5: gdb-7.0.1-23.el5 Bugs of this kind for *.el5* GDBs should go rather to CentOS/RHEL Bugzilla with a small reproducer, I would have to code the reproducer myself first. Regards, Jan