From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#12908: 24.3.50; file `emacs_backtrace.txt'? Date: Fri, 16 Nov 2012 11:08:16 -0800 Message-ID: References: <4B9EFDFEE27E43DBB6331605DD7C2842@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1353092963 7338 80.91.229.3 (16 Nov 2012 19:09:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 Nov 2012 19:09:23 +0000 (UTC) Cc: 12908@debbugs.gnu.org To: "'Juanma Barranquero'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 16 20:09:33 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1TZRIC-0008C1-Qb for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Nov 2012 20:09:33 +0100 Original-Received: from localhost ([::1]:34709 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZRI2-0005cG-BP for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Nov 2012 14:09:22 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:45793) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZRHx-0005b6-JC for bug-gnu-emacs@gnu.org; Fri, 16 Nov 2012 14:09:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TZRHu-0005S3-HN for bug-gnu-emacs@gnu.org; Fri, 16 Nov 2012 14:09:17 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38798) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZRHu-0005Rt-DV for bug-gnu-emacs@gnu.org; Fri, 16 Nov 2012 14:09:14 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TZRIg-0000Lr-0V for bug-gnu-emacs@gnu.org; Fri, 16 Nov 2012 14:10:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Nov 2012 19:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12908 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12908-submit@debbugs.gnu.org id=B12908.13530929541295 (code B ref 12908); Fri, 16 Nov 2012 19:10:01 +0000 Original-Received: (at 12908) by debbugs.gnu.org; 16 Nov 2012 19:09:14 +0000 Original-Received: from localhost ([127.0.0.1]:49049 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TZRHt-0000Ko-J0 for submit@debbugs.gnu.org; Fri, 16 Nov 2012 14:09:14 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:46237) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TZRHr-0000Kh-Ga for 12908@debbugs.gnu.org; Fri, 16 Nov 2012 14:09:12 -0500 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by userp1040.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id qAGJ8LcB005459 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 16 Nov 2012 19:08:22 GMT Original-Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id qAGJ8L6N029970 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 16 Nov 2012 19:08:21 GMT Original-Received: from abhmt112.oracle.com (abhmt112.oracle.com [141.146.116.64]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id qAGJ8KQj013451; Fri, 16 Nov 2012 13:08:21 -0600 Original-Received: from dradamslap1 (/10.159.229.77) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 16 Nov 2012 11:08:20 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: Ac3EKf4ik7suC4KMSQGzwAAgVPWx0gAAnEhA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-Spam-Score: 0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-Spam-Score: 0.7 (/) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:67022 Archived-At: > > What is the file for, how are users to use it and control > > whether and where it is written, etc.? > > Implement backtrace output for fatal errors on MS-Windows. > * w32fns.c (CaptureStackBackTrace_proc): New typedef. > (BACKTRACE_LIMIT_MAX): New macro. > (w32_backtrace): New function. > (emacs_abort): Use w32_backtrace when the user chooses not to > attach a debugger. Update the text of the abort dialog. > > Currently you cannot control where it is written. Thanks for the info. Can you at least control _whether_ it is written? > As for how to use it, if you have MinGW installed you can use > addr2line: addr2line -e /path/to/emacs.exe < emacs_backtrace.txt (Which does what?) If you do *not* have MinGW installed then is it the case that you can do nothing with the file? If so then, in that case at least, users should have an easy way to turn off writing the file (which no one can use). Is there some way (e.g. an env var to check?) that Emacs can itself know whether MinGW is installed, so that at least in the case where it is not it can inhibit writing the file (by default - obviously to be overridable by users)? The file is not big (at least it wasn't in the case I had), so I don't mind Emacs writing it, even though I cannot use it. But I think users should be able to control whether and where it gets written. And I'm thinking that the default location should perhaps be somewhere under .emacs.d, perhaps with the dir that is currently used as the default recorded somehow.