Subject: Re: bug#75209: 30.0.93; Emacs reader failed to read data in "/home/nlj/.cache/org-persist/gc-lock.eld"

From: Eli Zaretskii <[email-masked]>
Date: Sat, 15 Mar 2025 15:16:33 +0200

> From: Ihor Radchenko <[email-masked]>
> Cc: [email-masked], [email-masked]
> Date: Sat, 15 Mar 2025 12:55:22 +0000
> 
> Eli Zaretskii <[email-masked]> writes:
> 
> > Could the code which writes the file do it in atomic fashion,
> > i.e. write a temporary file, then rename the original file, then move
> > the new to the original's name, then delete the original file?
> >
> > (On Posix filesystems moving a file to the original name is an atomic
> > operation, but not on MS-Windows, which is why I suggest a slightly
> > more complicated procedure.)
> 
> See the attached diff.
> It should be applied on top of previous patches (or on top of the latest
> Org main).

Thanks, I hope the OP could test this and tell if it makes the problem
go away for good.