From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8458 invoked by alias); 29 Jun 2007 19:15:58 -0000 Received: (qmail 8447 invoked by uid 22791); 29 Jun 2007 19:15:57 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 29 Jun 2007 19:15:55 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 5C102982A3; Fri, 29 Jun 2007 19:15:53 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 393F4982A2; Fri, 29 Jun 2007 19:15:53 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.67) (envelope-from ) id 1I4LwA-0000ig-RQ; Fri, 29 Jun 2007 15:15:22 -0400 Date: Fri, 29 Jun 2007 19:15:00 -0000 From: Daniel Jacobowitz To: Michael Snyder Cc: gdb@sourceware.org Subject: Re: libSegFault and just in time debugging Message-ID: <20070629191522.GA2715@caradoc.them.org> Mail-Followup-To: Michael Snyder , gdb@sourceware.org References: <003c01c7ba81$2abc9ce0$677ba8c0@sonic.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <003c01c7ba81$2abc9ce0$677ba8c0@sonic.net> User-Agent: Mutt/1.5.15 (2007-04-09) 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: 2007-06/txt/msg00346.txt.bz2 On Fri, Jun 29, 2007 at 12:10:32PM -0700, Michael Snyder wrote: > What if, instead of doing that, libSegFault (or another similar library) > were to open a socket to a daemon and say "I caught a crash -- what > do you want me to do?". And then wait for a reply. All that can be > done with async-signal-safe function calls. It's a brilliant idea. Ubuntu did it :-) It uses the Linux kernel's core handling support, and is called apport. https://wiki.ubuntu.com/Apport You'll notice a bit of a way down that there's GDB output; in this case it comes from a core dump, but I'm pretty sure the same kernel hooks can be used to take control before the core is dumped. I'd have to check. -- Daniel Jacobowitz CodeSourcery