From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: szgyg Newsgroups: gmane.lisp.guile.bugs Subject: bug#25912: 2.1.7 segfaults on cygwin Date: Wed, 8 Mar 2017 17:50:16 +0100 Message-ID: <20170308165016.GD1836@debbie.mshome.net> References: <20170301102709.GB4544@debbie.mshome.net> <87a895djvh.fsf@pobox.com> <20170302091349.GC4544@debbie.mshome.net> <878toib3az.fsf@pobox.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1488991761 29440 195.159.176.226 (8 Mar 2017 16:49:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 8 Mar 2017 16:49:21 +0000 (UTC) User-Agent: Mutt/1.6.0 (2016-04-01) Cc: 25912@debbugs.gnu.org To: Andy Wingo Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Wed Mar 08 17:49:17 2017 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1clelx-0006X3-41 for guile-bugs@m.gmane.org; Wed, 08 Mar 2017 17:49:09 +0100 Original-Received: from localhost ([::1]:57282 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1clem3-0006tE-45 for guile-bugs@m.gmane.org; Wed, 08 Mar 2017 11:49:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50381) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1clelt-0006ra-HG for bug-guile@gnu.org; Wed, 08 Mar 2017 11:49:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1clelq-0001Dr-BI for bug-guile@gnu.org; Wed, 08 Mar 2017 11:49:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48335) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1clelq-0001DT-80 for bug-guile@gnu.org; Wed, 08 Mar 2017 11:49:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1clelp-0005s4-R2 for bug-guile@gnu.org; Wed, 08 Mar 2017 11:49:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: szgyg Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Wed, 08 Mar 2017 16:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25912 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 25912-submit@debbugs.gnu.org id=B25912.148899170822526 (code B ref 25912); Wed, 08 Mar 2017 16:49:01 +0000 Original-Received: (at 25912) by debbugs.gnu.org; 8 Mar 2017 16:48:28 +0000 Original-Received: from localhost ([127.0.0.1]:46534 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1clelI-0005rF-8h for submit@debbugs.gnu.org; Wed, 08 Mar 2017 11:48:28 -0500 Original-Received: from mx3.mail.elte.hu ([157.181.1.138]:58180) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1clelG-0005r6-1Z for 25912@debbugs.gnu.org; Wed, 08 Mar 2017 11:48:26 -0500 Original-Received: from mailbox1.caesar.elte.hu ([157.181.151.157]) by mx3.mail.elte.hu with esmtp (Exim) id 1clelE-0001nm-8Q from ; Wed, 08 Mar 2017 17:48:24 +0100 Original-Received: (Authenticated sender: szgyg) by mailbox1.caesar.elte.hu with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1clelC-00088H-Km; Wed, 08 Mar 2017 17:48:22 +0100 Content-Disposition: inline In-Reply-To: <878toib3az.fsf@pobox.com> X-ELTE-SpamScore: -6.7 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 3.0 X-ELTE-SpamCheck-Details: score=-6.7 required=5.0 tests=ALL_TRUSTED, BAYES_00, L_AUTH, RP_MATCHES_RCVD autolearn=ham autolearn_force=no SpamAssassin version=3.4.0 -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -5.0 L_AUTH Caesar auth -0.6 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -0.1 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.org gmane.lisp.guile.bugs:8663 Archived-At: On Mon, Mar 06, 2017 at 08:41:56PM +0100, Andy Wingo wrote: > On Thu 02 Mar 2017 10:13, szgyg writes: > > > load_thunk_from_memory doesn't call mprotect because in loader.c > > line 436 the ELF segment is aligned to 4k while page size is 64k. > > Ah, thank you for tracking this down. I think we were going to just > change the page size to 64K for .go files but I can't remember. I think > libc's loader doesn't actually align the pages on disk but projects > segments of the file onto the memory image. Changing *page-size* to 64k in linker.scm solves the problem. Size of bootstrap/ goes from 17MB to 20MB. > What platform is this that has 64K pages? IIUC cygwin's usual size is > 4096 bytes. Pagesize is 4k on windows, but we can't allocate a single page, only batches of 16 pages. Cygwin is hiding this abomination by using 64k as pagesize.