* Investigating Emacs startup failure
@ 2019-05-19 8:11 Richard Copley
2019-05-19 9:00 ` Richard Copley
0 siblings, 1 reply; 5+ messages in thread
From: Richard Copley @ 2019-05-19 8:11 UTC (permalink / raw)
To: help-gnu-emacs
There's something wrong with my Emacs installation (master, on Windows).
When invoked normally, it fails to start. Since I last successfully ran
Emacs in this way, I have pulled from master and rebuilt, and updated my
ELPA packages.
I don't know how to debug this, so I don't know if a bug report is needed,
and if so, what to put in it. Does anyone have any suggestions? Here is
what I have already tried:
* Invoked in my customary fashion as "runemacs" from a start-menu shortcut,
the process exits immediately without displaying a frame. The same if
invoked as "runemacs" from the command line.
* Invoked as "emacs" or "emacs --debug-init" from the command line, it
writes a message:
GPG error: "no usable configuration", OpenPGP
and exits, with exit status -1. (I don't know whether the GPG error and the
failure to start are related. I usually launch runemacs from the start
menu, so if this message was being printed before, I wouldn't have seen the
error.)
* Invoked as "emacs -Q", it starts as expected. Having done that, I can
load my init file with M-x load-file, and then everything looks normal (and
there are no messages or errors).
* Invoked as "gdb -batch -quiet -ex "set auto-load safe-path /" -ex run -ex
quit --args ./emacs.exe", it prints the following (note:
"add-auto-load-safe-path C:\projects\emacs\src\.gdbinit" is already present
in my .gdbinit, which is copied to all the "$HOME" directories I can think
of: the correct one %APPDATA%, %LOCALAPPDATA%, %HOMEPATH% and the MSYS2
home directory):
C:\projects\emacs\src>gdb -batch -quiet -ex run -ex quit --args ./emacs.exe
warning: File "C:\projects\emacs\src\.gdbinit" auto-loading has been
declined by your `auto-load safe-path' set to
"$debugdir:$datadir/auto-load".
To enable execution of this file add
add-auto-load-safe-path C:\projects\emacs\src\.gdbinit
line to your configuration file "$HOME/.gdbinit".
To completely disable this security protection add
set auto-load safe-path /
line to your configuration file "$HOME/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual. E.g., run from the
shell:
info "(gdb)Auto-loading safe path"
[New Thread 14644.0x1b8]
[New Thread 14644.0x1738]
[New Thread 14644.0x428c]
[New Thread 14644.0x35d0]
[New Thread 14644.0x350c]
[New Thread 14644.0x2a7c]
[Thread 14644.0x2a7c exited with code 1]
[New Thread 14644.0x211c]
[Thread 14644.0x211c exited with code 1]
Gwarning: G
Pwarning: P
Gwarning: G
warning:
ewarning: e
rwarning: r
rwarning: r
owarning: o
rwarning: r
:warning: :
warning:
"warning: "
nwarning: n
owarning: o
warning:
uwarning: u
swarning: s
awarning: a
bwarning: b
lwarning: l
ewarning: e
warning:
cwarning: c
owarning: o
nwarning: n
fwarning: f
iwarning: i
gwarning: g
uwarning: u
rwarning: r
awarning: a
twarning: t
iwarning: i
owarning: o
nwarning: n
"warning: "
,warning: ,
warning:
Owarning: O
pwarning: p
ewarning: e
nwarning: n
Pwarning: P
Gwarning: G
Pwarning: P
warning:
[Thread 14644.0x350c exited with code 0]
[Thread 14644.0x35d0 exited with code 4294967295]
[Thread 14644.0x428c exited with code 4294967295]
[Thread 14644.0x1738 exited with code 4294967295]
[Inferior 1 (process 14644) exited with code 037777777777]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Investigating Emacs startup failure
2019-05-19 8:11 Investigating Emacs startup failure Richard Copley
@ 2019-05-19 9:00 ` Richard Copley
2019-05-19 9:27 ` [w32] Corrupt ~/.emacs.d/elpa/gnupg/ causes Emacs startup failure with gnu-elpa-keyring-update installed (was Re: Investigating Emacs startup failure) Richard Copley
0 siblings, 1 reply; 5+ messages in thread
From: Richard Copley @ 2019-05-19 9:00 UTC (permalink / raw)
To: help-gnu-emacs
On Sun, 19 May 2019 at 09:11, Richard Copley <rcopley@gmail.com> wrote:
There's something wrong with my Emacs installation (master, on
Windows). When invoked normally, it fails to start. Since I last
successfully ran Emacs in this way, I have pulled from master and rebuilt,
and updated my ELPA packages.
I don't know how to debug this, so I don't know if a bug report is
needed, and if so, what to put in it. Does anyone have any suggestions?
Here is what I have already tried:
[...]
I uninstalled all packages (the problem went away) and reinstalled them
one-by-one. The problem came back after installing
"gnu-elpa-keyring-update-2019.3". This suggests the "OpenPGP" error is
important. I still can't see where this is going wrong. There's no error if
I load "package.el" and "~/.emacs/package-quickstart.el" after starting
"emacs -Q". (Whatever happened to early-init.el? I don't seem to have one.)
^ permalink raw reply [flat|nested] 5+ messages in thread
* [w32] Corrupt ~/.emacs.d/elpa/gnupg/ causes Emacs startup failure with gnu-elpa-keyring-update installed (was Re: Investigating Emacs startup failure)
2019-05-19 9:00 ` Richard Copley
@ 2019-05-19 9:27 ` Richard Copley
2019-05-19 19:00 ` Stefan Monnier
0 siblings, 1 reply; 5+ messages in thread
From: Richard Copley @ 2019-05-19 9:27 UTC (permalink / raw)
To: help-gnu-emacs
On Sun, 19 May 2019 at 10:00, Richard Copley <rcopley@gmail.com> wrote:
> On Sun, 19 May 2019 at 09:11, Richard Copley <rcopley@gmail.com> wrote:
>
> There's something wrong with my Emacs installation (master, on
> Windows). When invoked normally, it fails to start. Since I last
> successfully ran Emacs in this way, I have pulled from master and rebuilt,
> and updated my ELPA packages.
>
> I don't know how to debug this, so I don't know if a bug report is
> needed, and if so, what to put in it. Does anyone have any suggestions?
> Here is what I have already tried:
> [...]
>
> I uninstalled all packages (the problem went away) and reinstalled them
> one-by-one. The problem came back after installing
> "gnu-elpa-keyring-update-2019.3". This suggests the "OpenPGP" error is
> important. I still can't see where this is going wrong. There's no error if
> I load "package.el" and "~/.emacs/package-quickstart.el" after starting
> "emacs -Q". (Whatever happened to early-init.el? I don't seem to have one.)
>
I fixed this (and lost my chance of debugging it) by deleting the gnupg/
directory in ~/.emacs.d/elpa before reinstalling the
"gnu-elpa-keyring-update-2019.3" package.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [w32] Corrupt ~/.emacs.d/elpa/gnupg/ causes Emacs startup failure with gnu-elpa-keyring-update installed (was Re: Investigating Emacs startup failure)
2019-05-19 9:27 ` [w32] Corrupt ~/.emacs.d/elpa/gnupg/ causes Emacs startup failure with gnu-elpa-keyring-update installed (was Re: Investigating Emacs startup failure) Richard Copley
@ 2019-05-19 19:00 ` Stefan Monnier
2019-05-19 19:30 ` Richard Copley
0 siblings, 1 reply; 5+ messages in thread
From: Stefan Monnier @ 2019-05-19 19:00 UTC (permalink / raw)
To: help-gnu-emacs
> I fixed this (and lost my chance of debugging it) by deleting the gnupg/
> directory in ~/.emacs.d/elpa before reinstalling the
> "gnu-elpa-keyring-update-2019.3" package.
FWIW, such a corrupt directory shouldn't prevent use of Emacs.
Could you make it a bug report?
Stefan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [w32] Corrupt ~/.emacs.d/elpa/gnupg/ causes Emacs startup failure with gnu-elpa-keyring-update installed (was Re: Investigating Emacs startup failure)
2019-05-19 19:00 ` Stefan Monnier
@ 2019-05-19 19:30 ` Richard Copley
0 siblings, 0 replies; 5+ messages in thread
From: Richard Copley @ 2019-05-19 19:30 UTC (permalink / raw)
To: Stefan Monnier; +Cc: help-gnu-emacs
On Sun, 19 May 2019 at 20:01, Stefan Monnier <monnier@iro.umontreal.ca>
wrote:
> > I fixed this (and lost my chance of debugging it) by deleting the gnupg/
> > directory in ~/.emacs.d/elpa before reinstalling the
> > "gnu-elpa-keyring-update-2019.3" package.
>
> FWIW, such a corrupt directory shouldn't prevent use of Emacs.
> Could you make it a bug report?
>
No sweat, <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=35801>.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-05-19 19:30 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-19 8:11 Investigating Emacs startup failure Richard Copley
2019-05-19 9:00 ` Richard Copley
2019-05-19 9:27 ` [w32] Corrupt ~/.emacs.d/elpa/gnupg/ causes Emacs startup failure with gnu-elpa-keyring-update installed (was Re: Investigating Emacs startup failure) Richard Copley
2019-05-19 19:00 ` Stefan Monnier
2019-05-19 19:30 ` Richard Copley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).