From unknown Sat Jun 21 05:12:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25912: 2.1.7 segfaults on cygwin Resent-From: szgyg Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Wed, 01 Mar 2017 11:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 25912 X-GNU-PR-Package: guile X-GNU-PR-Keywords: To: 25912@debbugs.gnu.org X-Debbugs-Original-To: bug-guile@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.14883662498242 (code B ref -1); Wed, 01 Mar 2017 11:05:02 +0000 Received: (at submit) by debbugs.gnu.org; 1 Mar 2017 11:04:09 +0000 Received: from localhost ([127.0.0.1]:32863 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cj23E-00028q-8F for submit@debbugs.gnu.org; Wed, 01 Mar 2017 06:04:08 -0500 Received: from eggs.gnu.org ([208.118.235.92]:37747) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cj1SC-0001Ai-NW for submit@debbugs.gnu.org; Wed, 01 Mar 2017 05:25:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cj1S6-0000B8-Dl for submit@debbugs.gnu.org; Wed, 01 Mar 2017 05:25:47 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:36969) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cj1S6-0000B2-Ae for submit@debbugs.gnu.org; Wed, 01 Mar 2017 05:25:46 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56949) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cj1S5-0003zZ-1C for bug-guile@gnu.org; Wed, 01 Mar 2017 05:25:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cj1S1-00009Z-TB for bug-guile@gnu.org; Wed, 01 Mar 2017 05:25:45 -0500 Received: from mx3.mail.elte.hu ([157.181.1.138]:44248) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cj1S1-00008m-L4 for bug-guile@gnu.org; Wed, 01 Mar 2017 05:25:41 -0500 Received: from mailbox1.caesar.elte.hu ([157.181.151.157]) by mx3.mail.elte.hu with esmtp (Exim) id 1cj1Rx-0005EV-M0 from for ; Wed, 01 Mar 2017 11:25:38 +0100 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 1cj1Rx-000584-6o for bug-guile@gnu.org; Wed, 01 Mar 2017 11:25:37 +0100 Date: Wed, 1 Mar 2017 11:27:09 +0100 From: szgyg Message-ID: <20170301102709.GB4544@debbie.mshome.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.6.0 (2016-04-01) 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-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Mailman-Approved-At: Wed, 01 Mar 2017 06:04:07 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) I got two identical segfaults from make -j2 on 32-bit cygwin, and three identical segfaults from make -j3 on 64-bit at the same point. Any idea? ----------------- Making all in bootstrap make[2]: Entering directory '/home/szgyg/usr/src/CYGPORT/guile2-2.1.7-0.i686/build/bootstrap' BOOTSTRAP GUILEC ice-9/eval.go wrote `ice-9/eval.go' BOOTSTRAP GUILEC ice-9/psyntax-pp.go BOOTSTRAP GUILEC language/cps/intmap.go *** starting debugger for pid 5024, tid 4568 *** starting debugger for pid 5060, tid 1904 ---------------- Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 5024.0x11d8] vm_regular_engine (thread=0x20081e40, vp=0x200f0f78, registers=0x22c480, resume=0) at /usr/src/debug/guile2-2.1.7-0/libguile/vm-engine.c:1840 1840 *dst_loc = src; (gdb) info locals src = 0x7ff800d8 dst_loc = 0x7ff8d00c op = 63 jump_table_ = {0x64b956d1 , [...] (gdb) print *dst_loc $3 = (void *) 0x0 (gdb) print *dst_loc = src Cannot access memory at address 0x7ff8d00c (gdb) print argv[13] $16 = 0x612eba68 "language/cps/intmap.go" --------------------- Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 5060.0x770] vm_regular_engine (thread=0x20081e40, vp=0x200f0f78, registers=0x22c480, resume=0) at /usr/src/debug/guile2-2.1.7-0/libguile/vm-engine.c:1840 1840 *dst_loc = src; (gdb) info locals src = 0x7ff800d8 dst_loc = 0x7ff8d00c op = 63 jump_table_ = {0x64b956d1 , [...] (gdb) print argv[13] $6 = 0x612eba68 "ice-9/psyntax-pp.go" ----------------------- Making all in bootstrap make[2]: Entering directory '/home/szgyg/usr/src/CYGPORT/guile/guile2-2.1.7-0.x86_64/build/bootstrap' BOOTSTRAP GUILEC ice-9/eval.go wrote `ice-9/eval.go' BOOTSTRAP GUILEC ice-9/psyntax-pp.go BOOTSTRAP GUILEC language/cps/intmap.go *** starting debugger for pid 9848, tid 6772 BOOTSTRAP GUILEC language/cps/intset.go *** starting debugger for pid 6600, tid 376 *** starting debugger for pid 10136, tid 9064 -------------------------- Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 6600.0x178] vm_regular_engine (thread=0x600091e00, vp=0x600131f30, registers=0x1, resume=0) at /usr/src/debug/guile2-2.1.7-0/libguile/vm-engine.c:1840 1840 /usr/src/debug/guile2-2.1.7-0/libguile/vm-engine.c: No such file or directory. (gdb) (gdb) info locals src = 0x6fffffd0128 dst_loc = 0x6fffffdd010 op = 63 jump_table_ = {0x4236bece4 , 0x4236bed84 , [...] ------------------------ Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 9848.0x1a74] vm_regular_engine (thread=0x600091e00, vp=0x600130f30, registers=0x1, resume=0) at /usr/src/debug/guile2-2.1.7-0/libguile/vm-engine.c:1840 1840 /usr/src/debug/guile2-2.1.7-0/libguile/vm-engine.c: No such file or directory. (gdb) info locals src = 0x6fffffd0128 dst_loc = 0x6fffffdd010 op = 63 jump_table_ = {0x4236bece4 , 0x4236bed84 , [...] ------------------------- Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 10136.0x2368] vm_regular_engine (thread=0x600091e00, vp=0x600131f30, registers=0x1, resume=0) at /usr/src/debug/guile2-2.1.7-0/libguile/vm-engine.c:1840 1840 /usr/src/debug/guile2-2.1.7-0/libguile/vm-engine.c: No such file or directory. (gdb) info locals src = 0x6fffffd0128 dst_loc = 0x6fffffdd010 op = 63 jump_table_ = {0x4236bece4 , 0x4236bed84 , [...] ----------------------- $ less -N +g1840 vm-engine.c 1821 /* static-patch! _:24 dst-offset:32 src-offset:32 1822 * 1823 * Patch a pointer at DST-OFFSET to point to SRC-OFFSET. Both offsets 1824 * are signed 32-bit values, indicating a memory address as a number 1825 * of 32-bit words away from the current instruction pointer. 1826 */ 1827 VM_DEFINE_OP (63, static_patch, "static-patch!", OP3 (X32, LO32, L32)) 1828 { 1829 scm_t_int32 dst_offset, src_offset; 1830 void *src; 1831 void** dst_loc; 1832 1833 dst_offset = ip[1]; 1834 src_offset = ip[2]; 1835 1836 dst_loc = (void **) (ip + dst_offset); 1837 src = ip + src_offset; 1838 VM_ASSERT (ALIGNED_P (dst_loc, void*), abort()); 1839 1840 *dst_loc = src; 1841 1842 NEXT (3); 1843 } 1844 From unknown Sat Jun 21 05:12:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25912: 2.1.7 segfaults on cygwin Resent-From: Andy Wingo Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Wed, 01 Mar 2017 17:25:02 +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: To: szgyg Cc: 25912@debbugs.gnu.org Received: via spool by 25912-submit@debbugs.gnu.org id=B25912.148838905120024 (code B ref 25912); Wed, 01 Mar 2017 17:25:02 +0000 Received: (at 25912) by debbugs.gnu.org; 1 Mar 2017 17:24:11 +0000 Received: from localhost ([127.0.0.1]:34701 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cj7z1-0005Cu-BL for submit@debbugs.gnu.org; Wed, 01 Mar 2017 12:24:11 -0500 Received: from pb-sasl1.pobox.com ([64.147.108.66]:63806 helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cj7yz-0005Cm-AQ for 25912@debbugs.gnu.org; Wed, 01 Mar 2017 12:24:09 -0500 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-sasl1.pobox.com (Postfix) with ESMTP id 0659160387; Wed, 1 Mar 2017 12:24:09 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=b+9ykcFRGPmEOX4IgHJsBpOQlY4=; b=jsFFpR XklIYXs4wPAknQlhwj10rnI/RVbB2SpDwtBEoaWjmqZ9Yx1RBZIwPX7cztC7B/zK YZX9KuKDK66B8cMRJYDS48blHw1xPOyIEzMVbTgO/E8ruVQDdy0LkHHt0mipGWqC QEwAlVGPxC7XDtd+GjdauPkRkd65GalfMsVkY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=gDlUekm4SHlEAxIQGkAvrUVraM9ydcd3 yecAUNwzPlglfRIj++O9Ev1FKrG5F9ekzHQS0n6mQl7i3Os+pI1do5n8bqlTEdkh bvSVef0dJ8zWJ+NDzvuhvpAK9rRDg7NMWQCqLVVrKwef6YKIp7L+LVCik4hEWNl5 rAbnUAFCBKE= Received: from pb-sasl1.nyi.icgroup.com (unknown [127.0.0.1]) by pb-sasl1.pobox.com (Postfix) with ESMTP id 0024660386; Wed, 1 Mar 2017 12:24:08 -0500 (EST) Received: from clucks (unknown [88.160.190.192]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pb-sasl1.pobox.com (Postfix) with ESMTPSA id 02F0960385; Wed, 1 Mar 2017 12:24:07 -0500 (EST) From: Andy Wingo References: <20170301102709.GB4544@debbie.mshome.net> Date: Wed, 01 Mar 2017 17:47:30 +0100 In-Reply-To: <20170301102709.GB4544@debbie.mshome.net> (szgyg@ludens.elte.hu's message of "Wed, 1 Mar 2017 11:27:09 +0100") Message-ID: <87a895djvh.fsf@pobox.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Pobox-Relay-ID: E0A4C8D6-FEA3-11E6-B453-B667064AB293-02397024!pb-sasl1.pobox.com X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) On Wed 01 Mar 2017 11:27, szgyg writes: > I got two identical segfaults from make -j2 on 32-bit cygwin, and > three identical segfaults from make -j3 on 64-bit at the same point. > > Any idea? Could it be some mprotect issue? static-patch is a bytecode that is used when doing run-time relocations in the .go files, when they are first loaded up. They are loaded by loader.c. I usually use the mmap path; is that being used on cygwin? Is it reliable? There is a fallback path that doesn't use any memory protection. See loader.c. Andy From unknown Sat Jun 21 05:12:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25912: 2.1.7 segfaults on cygwin Resent-From: szgyg Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Thu, 02 Mar 2017 16:43:02 +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: To: Andy Wingo Cc: 25912@debbugs.gnu.org Received: via spool by 25912-submit@debbugs.gnu.org id=B25912.1488472946380 (code B ref 25912); Thu, 02 Mar 2017 16:43:02 +0000 Received: (at 25912) by debbugs.gnu.org; 2 Mar 2017 16:42:26 +0000 Received: from localhost ([127.0.0.1]:36750 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cjTo9-000064-Iz for submit@debbugs.gnu.org; Thu, 02 Mar 2017 11:42:26 -0500 Received: from mx3.mail.elte.hu ([157.181.1.138]:45366) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cjMmX-0004Ds-C5 for 25912@debbugs.gnu.org; Thu, 02 Mar 2017 04:12:17 -0500 Received: from mailbox1.caesar.elte.hu ([157.181.151.157]) by mx3.mail.elte.hu with esmtp (Exim) id 1cjMmV-0005K1-9E from ; Thu, 02 Mar 2017 10:12:16 +0100 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 1cjMmT-0000fW-GI; Thu, 02 Mar 2017 10:12:13 +0100 Date: Thu, 2 Mar 2017 10:13:49 +0100 From: szgyg Message-ID: <20170302091349.GC4544@debbie.mshome.net> References: <20170301102709.GB4544@debbie.mshome.net> <87a895djvh.fsf@pobox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87a895djvh.fsf@pobox.com> User-Agent: Mutt/1.6.0 (2016-04-01) 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-Spam-Score: -2.3 (--) X-Mailman-Approved-At: Thu, 02 Mar 2017 11:42:25 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) On Wed, Mar 01, 2017 at 05:47:30PM +0100, Andy Wingo wrote: > On Wed 01 Mar 2017 11:27, szgyg writes: > > > I got two identical segfaults from make -j2 on 32-bit cygwin, and > > three identical segfaults from make -j3 on 64-bit at the same point. > > > > Any idea? > > Could it be some mprotect issue? static-patch is a bytecode that is > used when doing run-time relocations in the .go files, when they are > first loaded up. They are loaded by loader.c. I usually use the mmap > path; is that being used on cygwin? Is it reliable? There is a > fallback path that doesn't use any memory protection. See loader.c. Thanks. 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. 436 if (ph[i].p_align != page_size) (gdb) print page_size $3 = 65536 (gdb) print ph[i].p_align $4 = 4096 (gdb) print *ph@n $2 = { {p_type = 1, p_offset = 0, p_vaddr = 0, p_paddr = 0, p_filesz = 50264, p_memsz = 50264, p_flags = 4, p_align = 4096}, {p_type = 1, p_offset = 53248, p_vaddr = 53248, p_paddr = 53248, p_filesz = 1944, p_memsz = 1944, p_flags = 6, p_align = 4096}, {p_type = 2, p_offset = 50208, p_vaddr = 50208, p_paddr = 50208, p_filesz = 56, p_memsz = 56, p_flags = 4, p_align = 8} } I have applied the patch below as a workaround, and now I can compile guile. --- origsrc/guile-2.1.7/libguile/loader.c 2017-01-08 23:38:55.000000000 +0100 +++ src/guile-2.1.7/libguile/loader.c 2017-03-01 21:57:35.114163900 +0100 @@ -475,7 +475,7 @@ map_file_contents (int fd, size_t len, i char *data; #ifdef HAVE_SYS_MMAN_H - data = mmap (NULL, len, PROT_READ, MAP_PRIVATE, fd, 0); + data = mmap (NULL, len, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); if (data == MAP_FAILED) SCM_SYSERROR; *is_read_only = 1; From unknown Sat Jun 21 05:12:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25912: 2.1.7 segfaults on cygwin In-Reply-To: <20170301102709.GB4544@debbie.mshome.net> Resent-From: Mike Gran Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Fri, 03 Mar 2017 14:34:02 +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: To: "25912@debbugs.gnu.org" <25912@debbugs.gnu.org> Reply-To: Mike Gran Received: via spool by 25912-submit@debbugs.gnu.org id=B25912.148855159126165 (code B ref 25912); Fri, 03 Mar 2017 14:34:02 +0000 Received: (at 25912) by debbugs.gnu.org; 3 Mar 2017 14:33:11 +0000 Received: from localhost ([127.0.0.1]:37582 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cjoGd-0006nx-0g for submit@debbugs.gnu.org; Fri, 03 Mar 2017 09:33:11 -0500 Received: from sonic308-16.consmr.mail.ne1.yahoo.com ([66.163.187.39]:47159) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cjoGc-0006nk-8k for 25912@debbugs.gnu.org; Fri, 03 Mar 2017 09:33:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1488551583; bh=AzuIVSo+FDBYZ6eUvkit3+vKujndT3MR6EoX/NufOuA=; h=Date:From:Reply-To:To:Subject:References:From:Subject; b=pHR59tVDARS/VYYxqviOyChBA6kQKXTWhsQmqR1m4P3FFM0eYxqmzzBaGP1Dq+uVLG1sNepdCu9GMl9pUS6yLMl3apw+U4MULSK2fvxRbtvw8dHC8gy8pFvTotMOIgfrBvp9sx817NjowJjOIQFHLkF4p6oLalQED+WK5Tj64QTRumKB1n39YKPDd5E8tpOwf279eGVXyEC3RiiB/jyDL22ji9ZfDMJVLXjdhyhWEQLxXUDGcYttOVvI+cQJ9XGWBFumX6mNjplbvbYJgF+TxHbyiOc/Al3hCkXZ342Mu49aEbh7dWJMb/IjVhxeeZSU+nRnrANHbS1Y8SNBbDixxg== X-YMail-OSG: EmJ0d.YVRDvYSypLUft0cI8AX.dlBffOFI.x5KtXLA-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.ne1.yahoo.com with HTTP; Fri, 3 Mar 2017 14:33:03 +0000 Date: Fri, 3 Mar 2017 14:32:05 +0000 (UTC) From: Mike Gran Message-ID: <78221352.340980.1488551525340@mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit References: <78221352.340980.1488551525340.ref@mail.yahoo.com> Content-Length: 548 X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) Hi- I also can replicate the Cygwin problem as originally described. After wingo's comment on the mmap path vs the non-mmap path, I tried to use the non-mmap path by removing HAVE_SYS_MMAN_H from the config.h. The non-mmap path doesn't build. The errors are in map_file_contents() in loader.c Making the obvious patches to map_file_contents() does seem to allow the Cygwin build to continue. The helper functions sniff_elf_alignment and copy_and_align_elf_data are no longer included in master and had to be pulled from an older rev. Regards, Mike From unknown Sat Jun 21 05:12:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25912: 2.1.7 segfaults on cygwin Resent-From: Andy Wingo Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Mon, 06 Mar 2017 19:43:02 +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: To: szgyg Cc: 25912@debbugs.gnu.org Received: via spool by 25912-submit@debbugs.gnu.org id=B25912.148882932930441 (code B ref 25912); Mon, 06 Mar 2017 19:43:02 +0000 Received: (at 25912) by debbugs.gnu.org; 6 Mar 2017 19:42:09 +0000 Received: from localhost ([127.0.0.1]:43204 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ckyWH-0007uu-5L for submit@debbugs.gnu.org; Mon, 06 Mar 2017 14:42:09 -0500 Received: from pb-sasl2.pobox.com ([64.147.108.67]:50767 helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ckyWF-0007un-Sk for 25912@debbugs.gnu.org; Mon, 06 Mar 2017 14:42:08 -0500 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-sasl2.pobox.com (Postfix) with ESMTP id 2AE7C76812; Mon, 6 Mar 2017 14:42:06 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=iZQBQMAW+U4EzcXRIBUCIjpcn2k=; b=tFKTHo CEa4hqYPTmpyb3bPdXgXEU79ThbyuMZmHb9/ABQiFvp8wbB4Z567n8NBVqNnEUee rLcMDmHzkYYnB52EDbgRKMVuWETdqV+9EWTFxAgruiujC8TS1huPwDL+YyNzhUZd x94ZQ/t+CTTBMXWTHtnnD7jr8oW+UyT3j2K1o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=hRMvBllGpOponeX1V4UxLk6pwBb47uUK ZyF6RgCkTSiEosUdBWadz/aEp4qfrL9Vu2MXxlRp5FoR7/b4lk9xxfnEm9v3oFjZ /lXOCxYX/PjFAyp6B2QEZqvs3rRLd/PwjRV6paUEl42uL2aTVkdaLGgyOOFstQKv TFzXImW/e6U= Received: from pb-sasl2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-sasl2.pobox.com (Postfix) with ESMTP id 24CE276811; Mon, 6 Mar 2017 14:42:06 -0500 (EST) Received: from clucks (unknown [88.160.190.192]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pb-sasl2.pobox.com (Postfix) with ESMTPSA id 0D91376810; Mon, 6 Mar 2017 14:42:04 -0500 (EST) From: Andy Wingo References: <20170301102709.GB4544@debbie.mshome.net> <87a895djvh.fsf@pobox.com> <20170302091349.GC4544@debbie.mshome.net> Date: Mon, 06 Mar 2017 20:41:56 +0100 In-Reply-To: <20170302091349.GC4544@debbie.mshome.net> (szgyg@ludens.elte.hu's message of "Thu, 2 Mar 2017 10:13:49 +0100") Message-ID: <878toib3az.fsf@pobox.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Pobox-Relay-ID: FA485D02-02A4-11E7-BAF0-85AB91A0D1B0-02397024!pb-sasl2.pobox.com X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Hi :) 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. What platform is this that has 64K pages? IIUC cygwin's usual size is 4096 bytes. Andy From unknown Sat Jun 21 05:12:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25912: 2.1.7 segfaults on cygwin 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: To: Andy Wingo Cc: 25912@debbugs.gnu.org Received: via spool by 25912-submit@debbugs.gnu.org id=B25912.148899170822526 (code B ref 25912); Wed, 08 Mar 2017 16:49:01 +0000 Received: (at 25912) by debbugs.gnu.org; 8 Mar 2017 16:48:28 +0000 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 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 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 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 Date: Wed, 8 Mar 2017 17:50:16 +0100 From: szgyg 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <878toib3az.fsf@pobox.com> User-Agent: Mutt/1.6.0 (2016-04-01) 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-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) 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. From unknown Sat Jun 21 05:12:39 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: szgyg Subject: bug#25912: closed (Re: bug#25912: 2.1.7 segfaults on cygwin) Message-ID: References: <87a88o8515.fsf@pobox.com> <20170301102709.GB4544@debbie.mshome.net> X-Gnu-PR-Message: they-closed 25912 X-Gnu-PR-Package: guile Reply-To: 25912@debbugs.gnu.org Date: Tue, 14 Mar 2017 11:36:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1489491362-14264-1" This is a multi-part message in MIME format... ------------=_1489491362-14264-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #25912: 2.1.7 segfaults on cygwin which was filed against the guile package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 25912@debbugs.gnu.org. --=20 25912: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D25912 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1489491362-14264-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 25912-done) by debbugs.gnu.org; 14 Mar 2017 11:35:46 +0000 Received: from localhost ([127.0.0.1]:54933 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cnkjy-0003hd-1I for submit@debbugs.gnu.org; Tue, 14 Mar 2017 07:35:46 -0400 Received: from pb-sasl2.pobox.com ([64.147.108.67]:60838 helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cnkjw-0003hW-L7 for 25912-done@debbugs.gnu.org; Tue, 14 Mar 2017 07:35:44 -0400 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-sasl2.pobox.com (Postfix) with ESMTP id 451B269026; Tue, 14 Mar 2017 07:35:42 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=HSbOLJOu6rS9dTSETmzVVarao28=; b=SfhXfV 1lwioXayeUg65yKY/r2DlWuf2Xxz2uB5Q8q/E8SqLZ3Fc/FLlwkXm9IlFrMpGC6x zDw58H1GG8WZLAsqWxPeNfepIVg0unf7XmIJ9zWPEloNHLSC7dKq31QoOT65Aban V2Da3oZM3o7uIMuVhWeNyDLfR7hL5mcYeDVuQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=phpTXg7/zBD4yYJpWfYKPH8rG59OKu9V cjhOwOD6+VDwCJSykyS13dhNIyF7AHs1Cq83fQXsgQwlU2FAaSLWE0nwX4Qist2w zmqzpd99edonAczuSFu3hP9zy1JRWY8XetoQYGViAKW8RivAL/bnl/HFSonUeEMS +y+EYPf88y0= Received: from pb-sasl2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-sasl2.pobox.com (Postfix) with ESMTP id 3EF5F69025; Tue, 14 Mar 2017 07:35:42 -0400 (EDT) Received: from clucks (unknown [88.160.190.192]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pb-sasl2.pobox.com (Postfix) with ESMTPSA id 5E12369024; Tue, 14 Mar 2017 07:35:41 -0400 (EDT) From: Andy Wingo To: Mike Gran Subject: Re: bug#25912: 2.1.7 segfaults on cygwin References: <78221352.340980.1488551525340.ref@mail.yahoo.com> <78221352.340980.1488551525340@mail.yahoo.com> Date: Tue, 14 Mar 2017 12:35:34 +0100 In-Reply-To: <78221352.340980.1488551525340@mail.yahoo.com> (Mike Gran's message of "Fri, 3 Mar 2017 14:32:05 +0000 (UTC)") Message-ID: <87a88o8515.fsf@pobox.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Pobox-Relay-ID: 5AAB769C-08AA-11E7-BF85-85AB91A0D1B0-02397024!pb-sasl2.pobox.com X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 25912-done Cc: "25912@debbugs.gnu.org" <25912-done@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) On Fri 03 Mar 2017 15:32, Mike Gran writes: > I also can replicate the Cygwin problem as originally described. I understand that with the fix in 2.1.8, that things are working correctly now; closing the report. Thanks for the sleuthing, szgyg and Mike! Andy ------------=_1489491362-14264-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 1 Mar 2017 11:04:09 +0000 Received: from localhost ([127.0.0.1]:32863 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cj23E-00028q-8F for submit@debbugs.gnu.org; Wed, 01 Mar 2017 06:04:08 -0500 Received: from eggs.gnu.org ([208.118.235.92]:37747) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cj1SC-0001Ai-NW for submit@debbugs.gnu.org; Wed, 01 Mar 2017 05:25:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cj1S6-0000B8-Dl for submit@debbugs.gnu.org; Wed, 01 Mar 2017 05:25:47 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:36969) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cj1S6-0000B2-Ae for submit@debbugs.gnu.org; Wed, 01 Mar 2017 05:25:46 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56949) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cj1S5-0003zZ-1C for bug-guile@gnu.org; Wed, 01 Mar 2017 05:25:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cj1S1-00009Z-TB for bug-guile@gnu.org; Wed, 01 Mar 2017 05:25:45 -0500 Received: from mx3.mail.elte.hu ([157.181.1.138]:44248) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cj1S1-00008m-L4 for bug-guile@gnu.org; Wed, 01 Mar 2017 05:25:41 -0500 Received: from mailbox1.caesar.elte.hu ([157.181.151.157]) by mx3.mail.elte.hu with esmtp (Exim) id 1cj1Rx-0005EV-M0 from for ; Wed, 01 Mar 2017 11:25:38 +0100 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 1cj1Rx-000584-6o for bug-guile@gnu.org; Wed, 01 Mar 2017 11:25:37 +0100 Date: Wed, 1 Mar 2017 11:27:09 +0100 From: szgyg To: bug-guile@gnu.org Subject: 2.1.7 segfaults on cygwin Message-ID: <20170301102709.GB4544@debbie.mshome.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.6.0 (2016-04-01) 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-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 01 Mar 2017 06:04:07 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) I got two identical segfaults from make -j2 on 32-bit cygwin, and three identical segfaults from make -j3 on 64-bit at the same point. Any idea? ----------------- Making all in bootstrap make[2]: Entering directory '/home/szgyg/usr/src/CYGPORT/guile2-2.1.7-0.i686/build/bootstrap' BOOTSTRAP GUILEC ice-9/eval.go wrote `ice-9/eval.go' BOOTSTRAP GUILEC ice-9/psyntax-pp.go BOOTSTRAP GUILEC language/cps/intmap.go *** starting debugger for pid 5024, tid 4568 *** starting debugger for pid 5060, tid 1904 ---------------- Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 5024.0x11d8] vm_regular_engine (thread=0x20081e40, vp=0x200f0f78, registers=0x22c480, resume=0) at /usr/src/debug/guile2-2.1.7-0/libguile/vm-engine.c:1840 1840 *dst_loc = src; (gdb) info locals src = 0x7ff800d8 dst_loc = 0x7ff8d00c op = 63 jump_table_ = {0x64b956d1 , [...] (gdb) print *dst_loc $3 = (void *) 0x0 (gdb) print *dst_loc = src Cannot access memory at address 0x7ff8d00c (gdb) print argv[13] $16 = 0x612eba68 "language/cps/intmap.go" --------------------- Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 5060.0x770] vm_regular_engine (thread=0x20081e40, vp=0x200f0f78, registers=0x22c480, resume=0) at /usr/src/debug/guile2-2.1.7-0/libguile/vm-engine.c:1840 1840 *dst_loc = src; (gdb) info locals src = 0x7ff800d8 dst_loc = 0x7ff8d00c op = 63 jump_table_ = {0x64b956d1 , [...] (gdb) print argv[13] $6 = 0x612eba68 "ice-9/psyntax-pp.go" ----------------------- Making all in bootstrap make[2]: Entering directory '/home/szgyg/usr/src/CYGPORT/guile/guile2-2.1.7-0.x86_64/build/bootstrap' BOOTSTRAP GUILEC ice-9/eval.go wrote `ice-9/eval.go' BOOTSTRAP GUILEC ice-9/psyntax-pp.go BOOTSTRAP GUILEC language/cps/intmap.go *** starting debugger for pid 9848, tid 6772 BOOTSTRAP GUILEC language/cps/intset.go *** starting debugger for pid 6600, tid 376 *** starting debugger for pid 10136, tid 9064 -------------------------- Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 6600.0x178] vm_regular_engine (thread=0x600091e00, vp=0x600131f30, registers=0x1, resume=0) at /usr/src/debug/guile2-2.1.7-0/libguile/vm-engine.c:1840 1840 /usr/src/debug/guile2-2.1.7-0/libguile/vm-engine.c: No such file or directory. (gdb) (gdb) info locals src = 0x6fffffd0128 dst_loc = 0x6fffffdd010 op = 63 jump_table_ = {0x4236bece4 , 0x4236bed84 , [...] ------------------------ Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 9848.0x1a74] vm_regular_engine (thread=0x600091e00, vp=0x600130f30, registers=0x1, resume=0) at /usr/src/debug/guile2-2.1.7-0/libguile/vm-engine.c:1840 1840 /usr/src/debug/guile2-2.1.7-0/libguile/vm-engine.c: No such file or directory. (gdb) info locals src = 0x6fffffd0128 dst_loc = 0x6fffffdd010 op = 63 jump_table_ = {0x4236bece4 , 0x4236bed84 , [...] ------------------------- Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 10136.0x2368] vm_regular_engine (thread=0x600091e00, vp=0x600131f30, registers=0x1, resume=0) at /usr/src/debug/guile2-2.1.7-0/libguile/vm-engine.c:1840 1840 /usr/src/debug/guile2-2.1.7-0/libguile/vm-engine.c: No such file or directory. (gdb) info locals src = 0x6fffffd0128 dst_loc = 0x6fffffdd010 op = 63 jump_table_ = {0x4236bece4 , 0x4236bed84 , [...] ----------------------- $ less -N +g1840 vm-engine.c 1821 /* static-patch! _:24 dst-offset:32 src-offset:32 1822 * 1823 * Patch a pointer at DST-OFFSET to point to SRC-OFFSET. Both offsets 1824 * are signed 32-bit values, indicating a memory address as a number 1825 * of 32-bit words away from the current instruction pointer. 1826 */ 1827 VM_DEFINE_OP (63, static_patch, "static-patch!", OP3 (X32, LO32, L32)) 1828 { 1829 scm_t_int32 dst_offset, src_offset; 1830 void *src; 1831 void** dst_loc; 1832 1833 dst_offset = ip[1]; 1834 src_offset = ip[2]; 1835 1836 dst_loc = (void **) (ip + dst_offset); 1837 src = ip + src_offset; 1838 VM_ASSERT (ALIGNED_P (dst_loc, void*), abort()); 1839 1840 *dst_loc = src; 1841 1842 NEXT (3); 1843 } 1844 ------------=_1489491362-14264-1--