unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Andy Wingo <wingo@pobox.com>
To: "Julian Graham" <joolean@gmail.com>
Cc: "Ludovic Courtès" <ludo@gnu.org>, guile-devel@gnu.org
Subject: Re: error on startup with latest guile-vm
Date: Wed, 15 Oct 2008 23:21:18 +0200	[thread overview]
Message-ID: <m3hc7dh7w1.fsf@pobox.com> (raw)
In-Reply-To: <2bc5f8210810142217i17be82dfy790961da10704e93@mail.gmail.com> (Julian Graham's message of "Wed, 15 Oct 2008 01:17:07 -0400")

Hi,

On Wed 15 Oct 2008 07:17, "Julian Graham" <joolean@gmail.com> writes:

> Next up on the list of stupid questions: I was able to compile one of
> my modules, but the resulting .go file got created with (what looks
> like) a weirdly restrictive umask -- mode 600, and not, say, 664 or
> 644.  Did I do something wrong?

Nope, it's just abuse of POSIX -- we create a temporary file then relink
it if the compilation succeeded. Temp files have those perms by default.
Patches welcome, to fix this to use the user's umask, to
call-with-output-file/atomic in (system base compile).

As an aside, it used to be that the file was truncated then rewritten.
This was bad. That part of the kernel is notoriously buggy. More
relevantly, truncating an mmapped file will cause SIGBUS, which we must
avoid. It seems that we are fine with our mmap strategy -- like with ELF
files -- but we have to take some care.

While I'm rambling, I was looking at the ELF format today, inspired by
razor (an *incredibly* fast package manager --
http://github.com/krh/razor/wikis/razor-design), and we really should do
more of that style of coding. Specifically regarding ELF, we should be
able to dump tagged SCM values into an ELF file, which would help with
undumping. And we should be able to write native code to ELF files. But
this is all future work. There is lots of exciting stuff to do in this
regard.

Andy
-- 
http://wingolog.org/




  reply	other threads:[~2008-10-15 21:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-13  2:41 error on startup with latest guile-vm Julian Graham
2008-10-14  7:27 ` Ludovic Courtès
2008-10-15  5:17   ` Julian Graham
2008-10-15 21:21     ` Andy Wingo [this message]
2008-10-16  8:14       ` Ludovic Courtès

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

  List information: https://www.gnu.org/software/guile/

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

  git send-email \
    --in-reply-to=m3hc7dh7w1.fsf@pobox.com \
    --to=wingo@pobox.com \
    --cc=guile-devel@gnu.org \
    --cc=joolean@gmail.com \
    --cc=ludo@gnu.org \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).