GNU bug report logs - #51758
27.2; Backtrace put in home dir, not current dir

Previous Next

Package: emacs;

Reported by: Scott Otterson <scotto <at> sharpleaf.org>

Date: Thu, 11 Nov 2021 01:29:01 UTC

Severity: minor

Found in version 27.2

Full log


Message #15 received at 51758 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 51758 <at> debbugs.gnu.org, scotto <at> sharpleaf.org
Subject: Re: bug#51758: 27.2; Backtrace put in home dir, not current dir
Date: Tue, 20 Sep 2022 15:45:38 +0300
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Cc: 51758 <at> debbugs.gnu.org, "'Eli Zaretskii'" <eliz <at> gnu.org>
> Date: Tue, 20 Sep 2022 14:22:04 +0200
> 
> Scott Otterson <scotto <at> sharpleaf.org> writes:
> 
> > When emacs crashes, I get an error popup (attached) saying that if I click NO, emacs
> > will abort and put emacs_backtrace.txt in "the current directory."
> >
> > Clicking NO, does produce emacs_backtrace.txt (attached), but it's actually put in my
> > EMACSHOME dir (the one emacs understands as "~"), not the current dir.
> 
> I guess this is from w32fns.c:
> 
>   button = MessageBox (NULL,
> 		       "A fatal error has occurred!\n\n"
> 		       "Would you like to attach a debugger?\n\n"
> 		       "Select:\n"
> 		       "YES -- to debug Emacs, or\n"
> 		       "NO  -- to abort Emacs and produce a backtrace\n"
> 		       "       (emacs_backtrace.txt in current directory)."
> #if __GNUC__
> 		       "\n\n(type \"gdb -p <emacs-PID>\" and\n"
> 		       "\"continue\" inside GDB before clicking YES.)"
> #endif
> 		       , "Emacs Abort Dialog",
> 
> Eli, should that text just be amended?  (If it always puts the backtrace
> in EMACSHOME, that is -- I haven't actually cheked the code here.)

The text is correct.  I'm guessing the OP starts Emacs from EMACSHOME
directory.




This bug report was last modified 124 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.