Subject: Re: bug#15765: Crash in directory_files_internal

From: Eli Zaretskii <[email-masked]>
Date: Mon, 29 Feb 2016 17:40:36 +0200

> From: Lars Ingebrigtsen <[email-masked]>
> Date: Mon, 29 Feb 2016 16:34:48 +1100
> Cc: [email-masked]
> 
> Lars Ingebrigtsen <[email-masked]> writes:
> 
> > David Reitter <[email-masked]> writes:
> >
> >> This crash occurred after eval'ing the expression
> >>
> >> (directory-files "~/Library/Logs/DiagnosticReports" t "Aquamacs.*.crash")
> >>
> >> This directory exists, contains a few files, and I had eval'ed that
> >> just a few second earlier without problems.
> >>
> >> The bug does not reproduce.
> >>
> >> Relevant lines in my dired.c:
> >>
> >>> 267	      Lisp_Object fullname;
> >>> 268	      ptrdiff_t nbytes = len + directory_nbytes + needsep;
> >>> 269	      ptrdiff_t nchars;
> >>> 
> >>> 271	      fullname = make_uninit_multibyte_string (nbytes, nbytes);
> >>> 272	      memcpy (SDATA (fullname), SDATA (directory),
> >>> 		      directory_nbytes);
> >>> 
> >>
> >> Full crash log below.  The running binary was built based on Emacs
> >> head as per Oct 24, git refid 7c5015698c3, with some patches, but
> >> none to dired.c.
> >
> > Have you seen this again later?
> 
> More information was requested, but no response was given within a few
> months, so I'm closing this bug report.  If the problem still exists,
> please reopen this bug report.

It's entirely possible that this was due to the problem with decoding
file names on OS X HFS+ filesystems and treating their decomposed form
correctly, something solved a few months ago.