all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Pip Cet <pipcet@protonmail.com>
Cc: yantar92@posteo.net, 75209@debbugs.gnu.org, njackson@posteo.net
Subject: bug#75209: 30.0.93; Emacs reader failed to read data in "/home/nlj/.cache/org-persist/gc-lock.eld"
Date: Wed, 01 Jan 2025 20:52:03 +0200	[thread overview]
Message-ID: <86r05ml63w.fsf@gnu.org> (raw)
In-Reply-To: <87a5camnyu.fsf@protonmail.com> (message from Pip Cet on Wed, 01 Jan 2025 17:41:57 +0000)

> Date: Wed, 01 Jan 2025 17:41:57 +0000
> From: Pip Cet <pipcet@protonmail.com>
> Cc: "N. Jackson" <njackson@posteo.net>, yantar92@posteo.net, 75209@debbugs.gnu.org
> 
> I'm assuming that the resolution was that the file was read before we
> finished writing it.  I've run into the same issue a number of times
> (interrupting and resuming Emacs builds leads to build failures, "make
> bootstrap" makes them go away).
> 
> Can we consider modifying the .elc format to have a footer indicating
> that the file is complete?

The .elc file is supposed to be created only when the compilation is
complete and successful.  If you look at byte-compile-file, you will
see that we first compile the Lisp code, then write the produced
bytecode to a temporary file, and only after that we rename the
temporary file into the target .elc file.  Renaming a file is an
atomic operation on Posix filesystems, so it either completely
succeeds or completely fails.

We only write directly to the target file if that file's directory is
unwritable.

So I don't understand why you see incomplete .elc files when you
interrupt the build.  What happens in my case is that I see those
temporary files left around, but I don't think I've ever saw an
incomplete .elc file after interrupting the build.

Is it likely that the directory where you build Emacs is not writable
by your user?  That's the only way I could explain what you see.  Or
maybe there's some other factor at work here, in which case we should
find out what that factor is, before we consider how to fix it.

In any case, I think this is a separate issue, so I'd prefer to have a
separate bug report for it.

Thanks.





  reply	other threads:[~2025-01-01 18:52 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-30 18:48 bug#75209: 30.0.93; Emacs reader failed to read data in "/home/nlj/.cache/org-persist/gc-lock.eld" N. Jackson
2024-12-30 19:31 ` Eli Zaretskii
     [not found]   ` <87zfkddk1l.fsf@Phoenix>
2024-12-30 20:01     ` Eli Zaretskii
2025-01-01 17:41       ` Pip Cet via Bug reports for GNU Emacs, the Swiss army knife of text editors
2025-01-01 18:52         ` Eli Zaretskii [this message]
2025-01-01 21:09           ` Pip Cet via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-31 17:42   ` Ihor Radchenko
     [not found]     ` <87frm3elkr.fsf@Phoenix>
2024-12-31 19:02       ` Ihor Radchenko
2024-12-31 19:54         ` Eli Zaretskii
2025-01-01  9:42           ` Ihor Radchenko
2025-01-01 12:14             ` Eli Zaretskii
2025-01-02 17:28               ` Ihor Radchenko
2025-01-02 18:48                 ` Eli Zaretskii
2025-01-05 10:03                   ` Ihor Radchenko
2025-01-05 11:15                     ` Eli Zaretskii
2025-01-05 13:18                       ` Ihor Radchenko
2025-01-01 15:54         ` N. Jackson
2025-01-02 13:34 ` N. Jackson
2025-01-05 14:18   ` N. Jackson
2025-01-05 17:21     ` Eli Zaretskii
2025-01-06  0:58       ` N. Jackson
2025-01-06 13:49         ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86r05ml63w.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=75209@debbugs.gnu.org \
    --cc=njackson@posteo.net \
    --cc=pipcet@protonmail.com \
    --cc=yantar92@posteo.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.