GNU bug report logs - #70914
29.3; Crashes often on Windows

Previous Next

Package: emacs;

Reported by: Simen Endsjø <simendsjo <at> gmail.com>

Date: Mon, 13 May 2024 08:49:02 UTC

Severity: normal

Found in version 29.3

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Simen Endsjø <simendsjo <at> gmail.com>
Cc: 70914 <at> debbugs.gnu.org, corwin <at> bru.st, ssbssa <at> yahoo.de
Subject: Re: bug#70914: 29.3; Crashes often on Windows
Date: Wed, 22 May 2024 21:19:18 +0300
> From: Simen Endsjø <simendsjo <at> gmail.com>
> Date: Wed, 22 May 2024 18:54:06 +0200
> Cc: ssbssa <at> yahoo.de, corwin <at> bru.st, 70914 <at> debbugs.gnu.org
> 
> > You can now remove the added condition and the call to emacs_abort
> > from the code.  Please run for a while and see if there are any other
> > crashes like that one, which yield a zero code address.
> 
> Yes, I'll use this version for a while and see if things get better.

Thanks.

> > Thanks.  Too much is involved here, but my money is on consult: I see
> > in its code several places where it matches file names in a way that
> > can only work on Posix systems (i.e., assuming absolute file names
> > begin with a slash, not with a drive letter).  Since
> > consult-recent-file is in the Lisp backtrace, it's a definite
> > possibility.
> 
> I can reproduce it calling just find-file too:

Yes, I know.  It reproduces the problem even in "emacs -Q".  I used
that to test the fix.  But if the user manually types such an invalid
file name, it is on him/her.  What I wanted to try to find is whether
some of our Lisp packages _generates_ such a "file name", which would
be a bug we'd need to fix.

But note how many unknowns are involved in your find-file example:

   doom--shut-up-autosave-a
   so-long--set-auto-mode
   +evil--persist-state-a
   evil-save-state
   org-mode
   org-fancy-priorities-mode
   org-activate-links
   org-activate-links--overlays

If you can somehow spot what causes this "//" name to appear in this
case, do tell.  E.g., if it's the fault of Org, then we'd want to fix
that.

It is important to understand that "//" is an invalid file name on
Windows, as far as Emacs is concerned, and using it will basically
produce results which are not useful.  E.g., try

  M-: (file-attributes "//") RET

(in the fixed Emacs, of course, and after removing the call to
emacs_abort in parse_root).




This bug report was last modified 1 year and 54 days ago.

Previous Next


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