From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.devel Subject: Re: error on startup with latest guile-vm Date: Wed, 15 Oct 2008 23:21:18 +0200 Message-ID: References: <2bc5f8210810121941l7847a226o11fd0d37320b910e@mail.gmail.com> <87prm3hc0z.fsf@gnu.org> <2bc5f8210810142217i17be82dfy790961da10704e93@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1224105721 3593 80.91.229.12 (15 Oct 2008 21:22:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 Oct 2008 21:22:01 +0000 (UTC) Cc: =?utf-8?Q?Ludovic_Court=C3=A8s?= , guile-devel@gnu.org To: "Julian Graham" Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Oct 15 23:23:00 2008 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KqDpb-0003xr-8L for guile-devel@m.gmane.org; Wed, 15 Oct 2008 23:22:59 +0200 Original-Received: from localhost ([127.0.0.1]:57592 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KqDoW-0000G5-EH for guile-devel@m.gmane.org; Wed, 15 Oct 2008 17:21:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KqDoU-0000F3-4y for guile-devel@gnu.org; Wed, 15 Oct 2008 17:21:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KqDoS-0000Dm-Fn for guile-devel@gnu.org; Wed, 15 Oct 2008 17:21:49 -0400 Original-Received: from [199.232.76.173] (port=34125 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KqDoS-0000DY-13 for guile-devel@gnu.org; Wed, 15 Oct 2008 17:21:48 -0400 Original-Received: from a-sasl-fastnet.sasl.smtp.pobox.com ([207.106.133.19]:48207 helo=sasl.smtp.pobox.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KqDoK-0000Qk-Ih; Wed, 15 Oct 2008 17:21:40 -0400 Original-Received: from localhost.localdomain (localhost [127.0.0.1]) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTP id 50C0A6F91B; Wed, 15 Oct 2008 17:21:38 -0400 (EDT) Original-Received: from unquote (117.Red-79-156-146.staticIP.rima-tde.net [79.156.146.117]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTPSA id C9DB76F918; Wed, 15 Oct 2008 17:21:34 -0400 (EDT) In-Reply-To: <2bc5f8210810142217i17be82dfy790961da10704e93@mail.gmail.com> (Julian Graham's message of "Wed, 15 Oct 2008 01:17:07 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-Pobox-Relay-ID: 40A9A02E-9AFF-11DD-804C-1E1F86D30F62-02397024!a-sasl-fastnet.pobox.com X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:7779 Archived-At: Hi, On Wed 15 Oct 2008 07:17, "Julian Graham" 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/