GNU bug report logs - #56443
28.1; Mac segmentation fault with ffap

Previous Next

Package: emacs;

Reported by: Stephen Eglen <sje30 <at> cam.ac.uk>

Date: Thu, 7 Jul 2022 17:23:02 UTC

Severity: normal

Found in version 28.1

Done: Mattias Engdegård <mattiase <at> acm.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stephen Eglen <sje30 <at> cam.ac.uk>
To: Mattias Engdegård <mattiase <at> acm.org>
Cc: sje30 <at> cam.ac.uk, Eli Zaretskii <eliz <at> gnu.org>, 56443 <at> debbugs.gnu.org, mardani29 <at> yahoo.es
Subject: bug#56443: 28.1; Mac segmentation fault with ffap
Date: Fri, 08 Jul 2022 17:12:21 +0100
Thank you Mattias; working from master I can confirm I do not see an
error now.

Stephen

On Fri, Jul 08 2022, Mattias Engdegård wrote:

> 8 juli 2022 kl. 12.45 skrev Eli Zaretskii <eliz <at> gnu.org>:
>
>> Fine with me, but please update the comment to this effect.
>
> Certainly.
>
>> But why does the original call to file_name_case_insensitive_err fail
>> in this case with err > 0 on macOS, and what is the value of err?
>
> It fails because the argument, "mailto:some <at> mail.address", is not an
> existing file and so pathconf(filename, _PC_CASE_SENSITIVE) returns -1
> which means "don't know". (If a file of that name is indeed created
> then it returns 0 here because this is a case-insensitive file
> system.)
>
> Perhaps we shouldn't ask about case-sensitivity for such names but
> then again those are legal file names to open and
> Ffile_name_insensitive_p doesn't know the intentions of the caller,
> and in any case the error leads us to try the parent directory which
> doesn't exist so everything works out for the best with the patch.
>
> Pushed to master, with a test.





This bug report was last modified 3 years and 14 days ago.

Previous Next


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