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, 1 Mar 2017 11:27:09 +0100 Message-ID: <20170301102709.GB4544@debbie.mshome.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1488366317 28514 195.159.176.226 (1 Mar 2017 11:05:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 1 Mar 2017 11:05:17 +0000 (UTC) User-Agent: Mutt/1.6.0 (2016-04-01) To: 25912@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Wed Mar 01 12:05:13 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 1cj24F-0006sM-PW for guile-bugs@m.gmane.org; Wed, 01 Mar 2017 12:05:11 +0100 Original-Received: from localhost ([::1]:45681 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cj24L-0000YF-T1 for guile-bugs@m.gmane.org; Wed, 01 Mar 2017 06:05:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39287) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cj24A-0000MZ-MY for bug-guile@gnu.org; Wed, 01 Mar 2017 06:05:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cj246-0007ed-NU for bug-guile@gnu.org; Wed, 01 Mar 2017 06:05:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34667) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cj246-0007eX-Jp for bug-guile@gnu.org; Wed, 01 Mar 2017 06:05:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cj246-0002A8-Bk for bug-guile@gnu.org; Wed, 01 Mar 2017 06:05:02 -0500 X-Loop: help-debbugs@gnu.org 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: X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14883662498242 (code B ref -1); Wed, 01 Mar 2017 11:05:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Mar 2017 11:04:09 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 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 1cj1Rx-000584-6o for bug-guile@gnu.org; Wed, 01 Mar 2017 11:25:37 +0100 Content-Disposition: inline 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-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 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:8612 Archived-At: 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