From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: The emacs_backtrace "feature" Date: Mon, 24 Sep 2012 10:29:35 -0700 Message-ID: <5060987F.3020108@cs.ucla.edu> References: <83lig3yaci.fsf@gnu.org> <505CC1FA.4070300@cs.ucla.edu> <8739279zzx.fsf@dod.no> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1348507801 636 80.91.229.3 (24 Sep 2012 17:30:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 24 Sep 2012 17:30:01 +0000 (UTC) Cc: Lars Ingebrigtsen , Steinar Bang To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 24 19:30:05 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TGCTs-0006YT-EV for ged-emacs-devel@m.gmane.org; Mon, 24 Sep 2012 19:30:04 +0200 Original-Received: from localhost ([::1]:54862 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TGCTn-0000RP-Ij for ged-emacs-devel@m.gmane.org; Mon, 24 Sep 2012 13:29:59 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34808) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TGCTi-0000RG-2l for emacs-devel@gnu.org; Mon, 24 Sep 2012 13:29:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TGCTc-0008FP-CM for emacs-devel@gnu.org; Mon, 24 Sep 2012 13:29:54 -0400 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:57731) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TGCTc-0008Eg-70 for emacs-devel@gnu.org; Mon, 24 Sep 2012 13:29:48 -0400 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 4B901A60004; Mon, 24 Sep 2012 10:29:40 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1A6GpP2ERvvD; Mon, 24 Sep 2012 10:29:39 -0700 (PDT) Original-Received: from penguin.cs.ucla.edu (Penguin.CS.UCLA.EDU [131.179.64.200]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id CF73FA60002; Mon, 24 Sep 2012 10:29:39 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120911 Thunderbird/15.0.1 In-Reply-To: <8739279zzx.fsf@dod.no> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 131.179.128.62 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:153518 Archived-At: On 09/24/2012 08:55 AM, Steinar Bang wrote: > Can you get a backtrace even if the core is from an executable that was > compiled without debug information? Yes. Debug info doesn't affect the backtrace. It's more useful, though, to get a backtrace from an executable built with debug information, just as it's more useful to get a core dump that way. One *can* analyze either one without the debug information, but it's no picnic. On 09/24/2012 07:27 AM, Lars Ingebrigtsen wrote: > "let's just spew out reams of nearly meaningless data to the terminal" It's normally just ten lines, maybe 300 bytes total. It's more than that (500 lines) only if you build emacs with --enable-checking and then an assertion fails, under the assumption that people who are debugging prefer to have more debug info. In practice these numbers worked OK for my use cases; we can change them as further experience suggests.