From unknown Fri Jun 13 10:32:03 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#39118 <39118@debbugs.gnu.org> To: bug#39118 <39118@debbugs.gnu.org> Subject: Status: 3.0.0 JIT segfaults on 64-bit Cygwin Reply-To: bug#39118 <39118@debbugs.gnu.org> Date: Fri, 13 Jun 2025 17:32:03 +0000 retitle 39118 3.0.0 JIT segfaults on 64-bit Cygwin reassign 39118 guile submitter 39118 John Cowan severity 39118 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 13 12:26:49 2020 Received: (at submit) by debbugs.gnu.org; 13 Jan 2020 17:26:49 +0000 Received: from localhost ([127.0.0.1]:59998 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ir3UG-0002I8-VG for submit@debbugs.gnu.org; Mon, 13 Jan 2020 12:26:49 -0500 Received: from lists.gnu.org ([209.51.188.17]:48489) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ir3UE-0002Hy-9q for submit@debbugs.gnu.org; Mon, 13 Jan 2020 12:26:47 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:39346) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ir3UB-0007IS-T0 for bug-guile@gnu.org; Mon, 13 Jan 2020 12:26:45 -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,HTML_MESSAGE, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ir3UA-0005FV-E7 for bug-guile@gnu.org; Mon, 13 Jan 2020 12:26:43 -0500 Received: from mail-qk1-x72e.google.com ([2607:f8b0:4864:20::72e]:38083) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ir3U9-0005AZ-V9 for bug-guile@gnu.org; Mon, 13 Jan 2020 12:26:42 -0500 Received: by mail-qk1-x72e.google.com with SMTP id k6so9235549qki.5 for ; Mon, 13 Jan 2020 09:26:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ccil-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=m3yYUc+mjNRqI5Q6bE7SjC15JQ2QpUhE2rK1v04KHhw=; b=Vz/Zkqv3+uOv+BZn8iGSLKZ5NRt04G9lBXrd+TIfsSwSY7d7I3Si9F8mcYWSaKzArh e6I28gPYt9zgcFUDZOsDUHqmYBYUoyf4ABbTvFEvg1fq/6ao2Obc0vawzsFrULXIZOsM 1cOCfdKYQPovYDZ4fI1bIVKQMEuOshbC8imTfIWfTcloThf4pR3xgX08yFXdhDaMUKUc vaaiZYw7WZWo0i59UWACCQXj6/ZR2AiPdAlnRVDNKeS0yxMWt+qQbv2b+K/7yamNIWF3 /jYNhQ3sP/LG/XMbjGxK8iAALdzy4GH2GujmQfaMZhoVC79crDhuFcXBssNKuB9F4v0w pr9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=m3yYUc+mjNRqI5Q6bE7SjC15JQ2QpUhE2rK1v04KHhw=; b=DWr+qoc23UiGRMUWky+4ZsNE5LEYJm8YNyZkKlJBrvMpx/QNlsqAnayQYB9ecPq+lb kEJwani59fer9VUMlZuALtAx25WFdO3CO4n6lSwxOu8D3GhRPCWbdnB5g63a8QayI3B3 /3yc7Fx5v+IaO+zgha6OC0W4IB43Zre3TrIYS2UQtTwCypAmqTw1VS5DM1opXFLNDDkF 6t/i+lIv+j9Uyge29Jbc/XP+FsNZ1TQMyfwefQa1eUGDb+Qo0yu69pYCfRGW/MJzVWib UbtrgZc5wLF1nnSpiD4QeVAFtrEWxJKXyaFnffap6h8qTjy8jy4P4wG3r0yb9HM6ELdg f4fQ== X-Gm-Message-State: APjAAAXPMaHKT/75nt71p1JQVvS9vDx7/7uBSJSsYvMFkUB0dN3rr4oQ 084+Dg36pXjffeZtqQiZ6i7ZDQG+LahkbdhMWtdlzQ== X-Google-Smtp-Source: APXvYqwRasveWe96iQRA4BKI0ZCTHTGY8rPseR8OuyyLeyJJg46fSV8662RU5RqYFbB20Vcyt8tgAlhkaNJNbzal3/w= X-Received: by 2002:a37:e507:: with SMTP id e7mr17681786qkg.358.1578936398469; Mon, 13 Jan 2020 09:26:38 -0800 (PST) MIME-Version: 1.0 References: <87zherlphs.fsf@pobox.com> In-Reply-To: <87zherlphs.fsf@pobox.com> From: John Cowan Date: Mon, 13 Jan 2020 12:26:27 -0500 Message-ID: Subject: Re: GNU Guile 2.9.9 Released [beta] To: Andy Wingo Content-Type: multipart/alternative; boundary="000000000000276f43059c08c7a6" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::72e X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: bug-guile@gnu.org, guile-devel@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: -2.3 (--) --000000000000276f43059c08c7a6 Content-Type: text/plain; charset="UTF-8" Guile 2.9.9, like .8 and .7, does not build on Cygwin (64 bit). Configure runs without error, but make crashes with this (truncated to just the tail): Making all in bootstrap make[2]: Entering directory '/cygdrive/c/Users/rr828893/Downloads/guile-2.9.9/bootstrap' BOOTSTRAP GUILEC ice-9/eval.go BOOTSTRAP GUILEC ice-9/psyntax-pp.go BOOTSTRAP GUILEC language/cps/intmap.go BOOTSTRAP GUILEC language/cps/intset.go BOOTSTRAP GUILEC language/cps/graphs.go BOOTSTRAP GUILEC ice-9/vlist.go BOOTSTRAP GUILEC srfi/srfi-1.go /bin/sh: line 6: 4294 Segmentation fault (core dumped) GUILE_AUTO_COMPILE=0 ../meta/build-env guild compile --target="x86_64-unknown-cygwin" -O1 -Oresolve-primitives -L "/home/rr828893/Downloads/guile-2.9.9/module" -L "/home/rr828893/Downloads/guile-2.9.9/guile-readline" -o "srfi/srfi-1.go" "../module/srfi/srfi-1.scm" make[2]: *** [Makefile:1930: srfi/srfi-1.go] Error 139 make[2]: Leaving directory '/cygdrive/c/Users/rr828893/Downloads/guile-2.9.9/bootstrap' make[1]: *** [Makefile:1849: all-recursive] Error 1 make[1]: Leaving directory '/cygdrive/c/Users/rr828893/Downloads/guile-2.9.9' make: *** [Makefile:1735: all] Error 2 All previous problems (which were easy to work around) have gone away in this release, which is progress, but it doesn't get me past Guile 2.2. John Cowan http://vrici.lojban.org/~cowan cowan@ccil.org Your worships will perhaps be thinking that it is an easy thing to blow up a dog? [Or] to write a book? --Don Quixote, Introduction --000000000000276f43059c08c7a6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Guile 2.9.9, like .8 and .7, does not build on Cygwin (64 = bit).=C2=A0 Configure runs without error, but make crashes with this (trunc= ated to just the tail):

Making all in bootstrap
make[= 2]: Entering directory '/cygdrive/c/Users/rr828893/Downloads/guile-2.9.= 9/bootstrap'
=C2=A0 BOOTSTRAP GUILEC ice-9/eval.go
=C2=A0 BOOTSTR= AP GUILEC ice-9/psyntax-pp.go
=C2=A0 BOOTSTRAP GUILEC language/cps/intma= p.go
=C2=A0 BOOTSTRAP GUILEC language/cps/intset.go
=C2=A0 BOOTSTRAP = GUILEC language/cps/graphs.go
=C2=A0 BOOTSTRAP GUILEC ice-9/vlist.go
= =C2=A0 BOOTSTRAP GUILEC srfi/srfi-1.go
/bin/sh: line 6: =C2=A04294 Segme= ntation fault =C2=A0 =C2=A0 =C2=A0(core dumped) GUILE_AUTO_COMPILE=3D0 ../m= eta/build-env guild compile --target=3D"x86_64-unknown-cygwin" -O= 1 -Oresolve-primitives -L "/home/rr828893/Downloads/guile-2.9.9/module= " -L "/home/rr828893/Downloads/guile-2.9.9/guile-readline" -= o "srfi/srfi-1.go" "../module/srfi/srfi-1.scm"
make[= 2]: *** [Makefile:1930: srfi/srfi-1.go] Error 139
make[2]: Leaving direc= tory '/cygdrive/c/Users/rr828893/Downloads/guile-2.9.9/bootstrap'make[1]: *** [Makefile:1849: all-recursive] Error 1
make[1]: Leaving d= irectory '/cygdrive/c/Users/rr828893/Downloads/guile-2.9.9'
make= : *** [Makefile:1735: all] Error 2

All previou= s problems (which were easy to work around) have gone away in this release,= which is progress, but it doesn't get me past Guile 2.2.


John Cowan =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0http://vrici.lojban= .org/~cowan =C2=A0 =C2=A0 =C2=A0 =C2=A0cowan@ccil.org
Your worships will perhaps be thinking that it is a= n easy thing
to blow up a dog? [Or] to write a book?
=C2=A0 =C2=A0 --= Don Quixote, Introduction

--000000000000276f43059c08c7a6-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 13 18:09:32 2020 Received: (at 39118) by debbugs.gnu.org; 13 Jan 2020 23:09:32 +0000 Received: from localhost ([127.0.0.1]:60378 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ir8pw-000567-4Y for submit@debbugs.gnu.org; Mon, 13 Jan 2020 18:09:32 -0500 Received: from mail-qt1-f194.google.com ([209.85.160.194]:35197) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ir8pu-00055v-GF for 39118@debbugs.gnu.org; Mon, 13 Jan 2020 18:09:30 -0500 Received: by mail-qt1-f194.google.com with SMTP id e12so10754011qto.2 for <39118@debbugs.gnu.org>; Mon, 13 Jan 2020 15:09:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ccil-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=cgs1In7yFqzQBpgmj0Iom0IJCekuChTPF3n75JiteKI=; b=UGGrw9LL3tmMn0ukyuTbQ/LIDrIXlgCR4HyrHt3SF0ZZq9sTOAmpUSvD4kJ1Iv7la5 tVoeQVxsyZ1wv9RDPf6Z05AMKrshU81Rae4svEbhl5XflgQQuv1fE8IDns6s6BYGTwbf 39D4Uqky8aTfIfb7reERTpOzHcYedycJcmx3vNIwZOgJWaQbkP2vywSmkwOXLm0fXu0r F3zu4ySwuKzRSOO3nF3MtQALoX6VyFr+GBfnuZQCut51ap5JzpjcPj1lzzYUrN5pihF9 mK7QHjxrqqHF+RQNF3Wr8C7zRQLBBqj6ht/Hjn5BXtMOCLOiKvgHTlKZe20LlwXvLJmC Rztw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=cgs1In7yFqzQBpgmj0Iom0IJCekuChTPF3n75JiteKI=; b=o3Y3mR/l0nGNFlFYviOEkn737hfwknx6e4yKmh8RM6qX5toFcQdlp+G4hOul2znC9r 6AxY01Bc53QBAuDqZX2/Yw81vVCxMV5gWDZz3NbtAJLNRi9dyD+UGUEo9dSmtBuBQ3Q8 f5y3lI7ATFcMDJPkTvtB2RP2sU0zw5kHifzIKGN+cPc/dpnUP/VrdHvTIqqUT+RHbd8c BtLwqhIU/kd6ahdxYDJ2B/uq4KZw3RQAS52BbyaL2punAy6KiPke+tOIWvu0iTaXoCLO 4iNs9QdykLBXBWT4IYs6il/V1UyPtAjvNQ0ElF7aFKBYhGLnI4LQhO/eSC21+w9UG7PQ gy+A== X-Gm-Message-State: APjAAAV8u0WLwvJK71+WRCP/6PM+93sRT+t30XhLhp+9aGLOcrMcltNG 7fx/mmPt3PWwBiJpnyTwAMMFzFGAbdUGPgcrSbR1uw== X-Google-Smtp-Source: APXvYqwPenDZR/6S9JgSiM8UXaNMPnwkEibEDo02lTyYs/zXEid/Deun1HCO2rcwDYYqEXmetuQtDnLEBHtMHTR7N/E= X-Received: by 2002:ac8:4456:: with SMTP id m22mr1003058qtn.362.1578956965098; Mon, 13 Jan 2020 15:09:25 -0800 (PST) MIME-Version: 1.0 References: <87zherlphs.fsf@pobox.com> In-Reply-To: From: John Cowan Date: Mon, 13 Jan 2020 18:09:13 -0500 Message-ID: Subject: Re: bug#39118: GNU Guile 2.9.9 Released [beta] To: Andy Wingo Content-Type: multipart/alternative; boundary="00000000000005481c059c0d912e" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 39118 Cc: 39118@debbugs.gnu.org, guile-devel@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: -1.0 (-) --00000000000005481c059c0d912e Content-Type: text/plain; charset="UTF-8" Okay, with GUILE_JIT_THRESHOLD set to -1 in the environment, I can build Guile under Cygwin. There are two test failures which probably reflect differences between newlib and glibc: ERROR: time.test: strptime: GNU %s format: strftime fr_FR.utf8 - arguments: ((system-error "strptime" "~A" ("Invalid argument") (22))) ERROR: time.test: strptime: GNU %s format: strftime fr_FR.iso88591 - arguments: ((system-error "strptime" "~A" ("Invalid argument") (22))) And that's that: Cygwin can support Guile 3.0 without JIT. It might be a good idea to force this variable on in "configure" when building under Cygwin. --00000000000005481c059c0d912e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Okay, with GUILE_JIT_THRESHOLD set to -1 = in the environment, I can build Guile under Cygwin.=C2=A0 There are two tes= t failures which probably reflect differences between newlib and glibc:
ERROR: time.test: strptime: GNU %s format: strftime fr_FR.u= tf8 - arguments: ((system-error "strptime" "~A" ("= Invalid argument") (22)))
ERROR: time.test: strptime: GNU %s format= : strftime fr_FR.iso88591 - arguments: ((system-error "strptime" = "~A" ("Invalid argument") (22)))

And that's that: Cygwin can support Guile 3.0 without JIT.=C2=A0 It = might be a good idea to force this variable on in "configure" whe= n building under Cygwin.



=

--00000000000005481c059c0d912e-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 20 04:21:39 2020 Received: (at control) by debbugs.gnu.org; 20 Jan 2020 09:21:39 +0000 Received: from localhost ([127.0.0.1]:44358 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1itTFW-0000m4-8V for submit@debbugs.gnu.org; Mon, 20 Jan 2020 04:21:39 -0500 Received: from eggs.gnu.org ([209.51.188.92]:46654) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1itTFP-0000lm-64 for control@debbugs.gnu.org; Mon, 20 Jan 2020 04:21:32 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:48579) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1itTFK-0006fQ-3A for control@debbugs.gnu.org; Mon, 20 Jan 2020 04:21:22 -0500 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=54582 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1itTFJ-0000Da-Lv for control@debbugs.gnu.org; Mon, 20 Jan 2020 04:21:21 -0500 Date: Mon, 20 Jan 2020 10:21:20 +0100 Message-Id: <878sm2iiun.fsf@gnu.org> To: control@debbugs.gnu.org From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: control message for bug #39118 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control 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: -3.3 (---) retitle 39118 3.0.0 JIT segfaults on 64-bit Cygwin quit From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 20 11:35:40 2020 Received: (at 39118) by debbugs.gnu.org; 20 Jan 2020 16:35:40 +0000 Received: from localhost ([127.0.0.1]:45905 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ita1Y-0000s3-CV for submit@debbugs.gnu.org; Mon, 20 Jan 2020 11:35:40 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50794) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ita1T-0000rh-Fx for 39118@debbugs.gnu.org; Mon, 20 Jan 2020 11:35:35 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:55229) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ita1M-0008UI-1K; Mon, 20 Jan 2020 11:35:24 -0500 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=56578 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ita1C-0002vj-Hg; Mon, 20 Jan 2020 11:35:23 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: John Cowan Subject: Segfault while building on 64-bit Cygwin References: <87zherlphs.fsf@pobox.com> Date: Mon, 20 Jan 2020 17:35:13 +0100 In-Reply-To: (John Cowan's message of "Mon, 13 Jan 2020 12:26:27 -0500") Message-ID: <875zh6gk72.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 39118 Cc: Andy Wingo , 39118@debbugs.gnu.org, guile-devel@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: -3.3 (---) Hi John, John Cowan skribis: > Guile 2.9.9, like .8 and .7, does not build on Cygwin (64 bit). Configure > runs without error, but make crashes with this (truncated to just the tai= l): > > Making all in bootstrap > make[2]: Entering directory > '/cygdrive/c/Users/rr828893/Downloads/guile-2.9.9/bootstrap' > BOOTSTRAP GUILEC ice-9/eval.go > BOOTSTRAP GUILEC ice-9/psyntax-pp.go > BOOTSTRAP GUILEC language/cps/intmap.go > BOOTSTRAP GUILEC language/cps/intset.go > BOOTSTRAP GUILEC language/cps/graphs.go > BOOTSTRAP GUILEC ice-9/vlist.go > BOOTSTRAP GUILEC srfi/srfi-1.go > /bin/sh: line 6: 4294 Segmentation fault (core dumped) > GUILE_AUTO_COMPILE=3D0 ../meta/build-env guild compile > --target=3D"x86_64-unknown-cygwin" -O1 -Oresolve-primitives -L > "/home/rr828893/Downloads/guile-2.9.9/module" -L > "/home/rr828893/Downloads/guile-2.9.9/guile-readline" -o "srfi/srfi-1.go" > "../module/srfi/srfi-1.scm" > make[2]: *** [Makefile:1930: srfi/srfi-1.go] Error 139 > make[2]: Leaving directory > '/cygdrive/c/Users/rr828893/Downloads/guile-2.9.9/bootstrap' > make[1]: *** [Makefile:1849: all-recursive] Error 1 > make[1]: Leaving directory > '/cygdrive/c/Users/rr828893/Downloads/guile-2.9.9' > make: *** [Makefile:1735: all] Error 2 Could you try building 3.0.0 with JIT enabled and grab a backtrace? Thanks in advance! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 20 11:39:00 2020 Received: (at 39118) by debbugs.gnu.org; 20 Jan 2020 16:39:00 +0000 Received: from localhost ([127.0.0.1]:45909 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ita4n-0000wl-DO for submit@debbugs.gnu.org; Mon, 20 Jan 2020 11:39:00 -0500 Received: from mail-qv1-f49.google.com ([209.85.219.49]:36076) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ita4h-0000wQ-Jp for 39118@debbugs.gnu.org; Mon, 20 Jan 2020 11:38:56 -0500 Received: by mail-qv1-f49.google.com with SMTP id m14so76956qvl.3 for <39118@debbugs.gnu.org>; Mon, 20 Jan 2020 08:38:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ccil-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nWr9vCE9uevpdu/ZcI1aR3gJI+3RudT7iCNrrjuiTi8=; b=sdIzc+ewKKJrlh4s5BEzQm/9BbrBCI2ogO+CG+yaH6runvpXCQNElWbSnc0qT0Qdlg x8jSzgrUqAR3nInMWKZro01P+BzHnJ7qZr5EK6iE/WNiK0gbz7bCFaGqcF9LlLF0PoJb gajP3+zntRXW0YhgTNmdgvof0+Ig9offp1iHLS7CD2xS2g1+o9c6yDPDcGJSdaz5FVnI pesZDDt948aiDhdDSK0/wkHRFVZKQr4XZUsidDEKUj/j/1BeTZZLcYjbF3azzRuMxw4a wqM+shUIQvw9DPIs5ob9k5MXLxnhUkSZRs38ZyVvVM4lMAAzUZ4htDoyx4zJ+w1uUh5C yKgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=nWr9vCE9uevpdu/ZcI1aR3gJI+3RudT7iCNrrjuiTi8=; b=WGKDYp/Eq1oOuG/5lWVeWaxhWrw84rmgbaWMxVQ7/zIGPJdoF410HOfYeU1ZAjIUxl 04Dnc0OXQKsHCXVlKYcNzHLbByGcCmfPLEtloTb9XMvaOriEM/TRUCDt+epzdgt6Hwa7 Ap5kUfD2KlekOtELSaJpaSYALv/pjVwq4arZCogW32QorEYMOU+CtoxqJ5B4/MFmN0EA oZqFAkKQqr53xaX7prtquYm4ip4uJhOOJbe2f001OHF1rnuipS7x7b2svDGNGPb5/PBp dm8xKR9rxgWQPwZ7I9RGXFZBx+BYWhqjZxoxLalF0jp3r92azoHJo2bIljrNRUCx2Wlb krIA== X-Gm-Message-State: APjAAAWSJeRXK2/kkFJuq2eecuM83kPoaBvW9IuUiXZ6g6z4OkPnrof3 fdnV5LfqlULMC+P6oGArVfkA7LQhnfBQVsb7kZaovw== X-Google-Smtp-Source: APXvYqzO6Rk70D46iSesgZpn05wZQQ/C+oe3B+r9GEncR+x6pd2uLn4f0P8Z0MyOkL+YnncMU9LirdCLMscdpHBGBIo= X-Received: by 2002:a05:6214:11a8:: with SMTP id u8mr591982qvv.16.1579538326012; Mon, 20 Jan 2020 08:38:46 -0800 (PST) MIME-Version: 1.0 References: <87zherlphs.fsf@pobox.com> <875zh6gk72.fsf_-_@gnu.org> In-Reply-To: <875zh6gk72.fsf_-_@gnu.org> From: John Cowan Date: Mon, 20 Jan 2020 11:38:35 -0500 Message-ID: Subject: Re: Segfault while building on 64-bit Cygwin To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Content-Type: multipart/alternative; boundary="000000000000d4dd04059c94ec8d" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 39118 Cc: Andy Wingo , 39118@debbugs.gnu.org, guile-devel@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: -1.0 (-) --000000000000d4dd04059c94ec8d Content-Type: text/plain; charset="UTF-8" Yes, gladly, but I don't know how to get one in this context. Do I need to add some flags to the Makefile, and if so, where? (It's a twisty maze of passages, all different.) . Note that this *is* a build with JIT enabled; when I disable it using the env variable, there are no errors and 3.0.0 works fine. Also, it may take some time, as I have to rebuild my Windows system. --000000000000d4dd04059c94ec8d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Yes, gladly, but I don't know=C2=A0ho= w to get one in this context.=C2=A0 Do I need to add some flags to the Make= file, and if so, where?=C2=A0 (It's a twisty maze of passages, all diff= erent.) . Note that this *is* a build with JIT enabled; when I disable it u= sing the env variable, there are no errors and 3.0.0 works fine.

Also, it may take some time, as I have to rebuil= d my Windows system.
--000000000000d4dd04059c94ec8d-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 20 12:23:17 2020 Received: (at 39118) by debbugs.gnu.org; 20 Jan 2020 17:23:17 +0000 Received: from localhost ([127.0.0.1]:45955 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1itald-0004GA-EG for submit@debbugs.gnu.org; Mon, 20 Jan 2020 12:23:17 -0500 Received: from sonic311-24.consmr.mail.ne1.yahoo.com ([66.163.188.205]:43182) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1italb-0004Fq-5s for 39118@debbugs.gnu.org; Mon, 20 Jan 2020 12:23:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1579540985; bh=mfogZgRaOo5QJNXSRLpp4UQ68KKLw/X/rpoXgQc18fM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject; b=Xw2mtSfmoP6RbzWynvvHcUYRLsi2AnOnEEyuF4D9cnLnxUVA2Lu7062faWOjCV+K6u5hak0xswiT6AAo+3ZPeIyg7yTIMGPEPNKtQEnuHQYkPzh67bJhT1lZBYbM6+Pz6x2ItGiwCbxZPflX9ttF70p3NSIwz6IgrUyCOTLr1/mMUFCsHtlO8fCuAfWnfmmRHiN339eVxErCd8xXaRSzLY+B1SK0qCXFXH1jYtE4unikNow/uyf594lAIctRkWvUo+x0aMfLFEvOAzHeRwMuVFICqyxg9Mp+fBdx7P4vrJNuX/yWg1HVd6ZjjrrAJ2jdB78sUQXIB5cu1YXSn1CWhQ== X-YMail-OSG: iUwXhUgVM1ntE6wUqhZnfa_CIbJu.MYa7_TuU5O9oSS6MP4Gmbd7r9qZEF5glhL EQL2yhoqyg_P1DOjT0AJWS1pJIylRRlHnB8LiDqLpbpAeLV6A6vOyK1M7rCoRUhTfoQ_iKVeSxOH YMnVhFfTBCtZlabxZqFaaZObhub6rLe9zG3g8vTRokM4BOKJh2lz0MYTFVV_p0aV9x_mfOoa8lkY Qju8pkoVX5KjDUilZEb25o4AQXPey_ofimajA_xNDBjd5cAYrwxZGEH5SCjzCmZo9TvkfRfXvK_R pHaZPd1KkU5t9BS1RfFuS2skAcKvY9jRILJQkHt.vAIAMiQblR1_s4j0a0ivy8YxQVCVPbKeBtBt 9RJpba9eoaTs8jAtIdfvVizkwwL6KpP6swfzAmIrywSGfXVfcipCRcVTQBiwqWaMaCI1R2qu7QC_ T_YGkb_JqLPFAyk21N.3gXpEPBMxvy4RPMi4shB6qmeOHtu8zDJCLUEup6Zl.TeSzMFSheM0ljX7 L8jaOgH0CvMYKLVmYCb7CAL9Nobok5P.BBi.xTCjZmiaAg6tgm7Bsja9qI4KrDNmT_KwLp_EvMv_ saKIlddzilD3etGSoqQs.fln0WHZqUQ_X7Wk7p3n9o9HnxUYPXwTAp1_vFkIVu5ekneCC6AWosVm S8z5nwhyyeV4jw0RNt6FGEUCGQZ8Vr0iUu7RBn8t49mOAUhG84bcVuVvYHbbiiHEOrXYYA8RrxVX 7vzSZMdsfQzFt6lds7rc2dIqFYqXACZuTEi7inWgi7rak98l1VhA2m0xOQzzD9.JftZ.HaB7KfvP BWuAhj.w8d4x_pqgW2mZ1cRSSyWj9dPzuOyhKYN2NdFxHWUHO5ommB_jl7RGpMn7XFZ6cVn_Nidx pWr_ETIANBLLtGKqxAcP__DmEknXMzfl5AiRkkQ9oPfHVIWS2sfv5EF8FmuY5glM_t9fCE2QgOH9 CW0FqZUakodRhPLsLW9SKsEji8Ymt9TgZweGtnyuLqV7jLBf8PH9XnB_mcVnwLb0dIYB6b_rYL_P .p6edCf7uThveyhOPr3hOde3VQtVS4fAK7zt5Mlw9OZlna72riSczz4Xm5A3ZjA9JBv0v0miLSAu mKsd67YbCsQOtLcWyToxk7715zrquFHA0x3aHukRckVp5sGB0GPZFqZIq2TLUV59wtyDGUzeiACu TKjVPK4LdYXYWIc6rCCD7xqiz6Z_hb1jj99qu88M1X6Jd09xLnRRi1YV1xxqh1nFWuty4KFe_84_ 7qCC5j_XYl6fo7Fi_l2kVbuhTWfH8hp4xbXmQnaltmzaoxjaJgUMWnBHhaaoBYeVVxlcLf5mHGk9 .AsO6wNwI.lzv2qjkqFzpKMWEc7YUFIlS6na6hN3U1_5e.A9caVwfPLGgM._siX.mQs.nhYUXzOG z.WFbzwrFDawni5g- Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.ne1.yahoo.com with HTTP; Mon, 20 Jan 2020 17:23:05 +0000 Received: by smtp426.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 36e5090f0f2fbfe91084be224ec10e7c; Mon, 20 Jan 2020 17:23:00 +0000 (UTC) Date: Mon, 20 Jan 2020 09:22:53 -0800 From: Mike Gran To: John Cowan Subject: Re: Segfault while building on 64-bit Cygwin Message-ID: <20200120172253.GA1112065@spikycactus.com> References: <87zherlphs.fsf@pobox.com> <875zh6gk72.fsf_-_@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Mailer: WebService/1.1.15077 hermes Apache-HttpAsyncClient/4.1.4 (Java/1.8.0_181) Content-Length: 1017 X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 39118 Cc: Andy Wingo , 39118@debbugs.gnu.org, Ludovic =?iso-8859-1?Q?Court=E8s?= , guile-devel@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.7 (/) On Mon, Jan 20, 2020 at 11:38:35AM -0500, John Cowan wrote: > Yes, gladly, but I don't know how to get one in this context. Do I need to > add some flags to the Makefile, and if so, where? (It's a twisty maze of > passages, all different.) . Note that this *is* a build with JIT enabled; > when I disable it using the env variable, there are no errors and 3.0.0 > works fine. > > Also, it may take some time, as I have to rebuild my Windows system. I also tried building Guile 3.0.0 on Cygwin 3.1.x. The failure comes from trying to parse compiled .go files. The last time that I had this sort of problem, it was because the O_BINARY flag was dropped or missing when writing .go files, leading to CR+LF characters in the compiled files. And I diagnosed it by byte-comparing Linux-compiled .go files with Cygwin-compiled .go files, and by looking for CR+LF combinations in the compiled .go files. I don't know if that is what is happening here, but, I'll check that next time I have a chance. Thanks, Michael From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 21 04:02:17 2020 Received: (at 39118) by debbugs.gnu.org; 21 Jan 2020 09:02:17 +0000 Received: from localhost ([127.0.0.1]:46463 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1itpQL-0003RV-2w for submit@debbugs.gnu.org; Tue, 21 Jan 2020 04:02:17 -0500 Received: from eggs.gnu.org ([209.51.188.92]:46414) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1itpQF-0003RF-F0 for 39118@debbugs.gnu.org; Tue, 21 Jan 2020 04:02:11 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:41516) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1itpQ8-0006KZ-UK; Tue, 21 Jan 2020 04:02:00 -0500 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=33030 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1itpQ8-0003d4-8z; Tue, 21 Jan 2020 04:02:00 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: John Cowan Subject: Re: Segfault while building on 64-bit Cygwin References: <87zherlphs.fsf@pobox.com> <875zh6gk72.fsf_-_@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 2 =?utf-8?Q?Pluvi=C3=B4se?= an 228 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Tue, 21 Jan 2020 10:01:58 +0100 In-Reply-To: (John Cowan's message of "Mon, 20 Jan 2020 11:38:35 -0500") Message-ID: <87sgk9faih.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 39118 Cc: Andy Wingo , 39118@debbugs.gnu.org, guile-devel@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: -3.3 (---) Hello, John Cowan skribis: > Yes, gladly, but I don't know how to get one in this context. You would unpack, configure, and build like you did before (with JIT enabled, so as to reproduce the crash), but before that you=E2=80=99d run =E2=80=9Culimit -c unlimited=E2=80=9D in that shell to make sure there=E2= =80=99s a core dumped when it crashes. Once it has crashed, locate the =E2=80=98core=E2=80=99 file (or =E2=80=98co= re.*=E2=80=99), and run, say: gdb libguile/.libs/guile bootstrap/core Then from the GDB prompt: thread apply all bt TIA, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 21 13:40:29 2020 Received: (at 39118) by debbugs.gnu.org; 21 Jan 2020 18:40:29 +0000 Received: from localhost ([127.0.0.1]:48473 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ityRs-00039n-MV for submit@debbugs.gnu.org; Tue, 21 Jan 2020 13:40:29 -0500 Received: from mx2.mail.elte.hu ([157.181.151.9]:44512) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ityRm-00039Z-FH for 39118@debbugs.gnu.org; Tue, 21 Jan 2020 13:40:23 -0500 Received: from mailbox1.caesar.elte.hu ([157.181.151.157]) by mx2.mail.elte.hu with esmtp (Exim) id 1ityRj-0002m8-6H from ; Tue, 21 Jan 2020 19:40:17 +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 1ityRi-0003bd-F7; Tue, 21 Jan 2020 19:40:14 +0100 Date: Tue, 21 Jan 2020 19:40:12 +0100 From: szgyg To: 39118@debbugs.gnu.org, guile-devel@gnu.org Subject: Re: bug#39118: Segfault while building on 64-bit Cygwin Message-ID: <20200121184011.GA1659@dtk> References: <87zherlphs.fsf@pobox.com> <875zh6gk72.fsf_-_@gnu.org> <87sgk9faih.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87sgk9faih.fsf@gnu.org> User-Agent: Mutt/1.9.0 (2017-09-02) X-ELTE-SpamScore: -6.1 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 3.0 X-ELTE-SpamCheck-Details: score=-6.1 required=5.0 tests=ALL_TRUSTED, BAYES_00, L_AUTH autolearn=ham autolearn_force=no SpamAssassin version=3.4.2 -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -5.0 L_AUTH Caesar auth -0.1 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 39118 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: -1.7 (-) On Tue, Jan 21, 2020 at 10:01:58AM +0100, Ludovic Courtès wrote: > but before that you’d run > “ulimit -c unlimited” in that shell to make sure there’s a core dumped > when it crashes. This won't work on cygwin. If you want a core dump, you should use the dumper tool, as described here https://cygwin.com/cygwin-ug-net/dumper.html Or you can set error_start to gdb to get an interactive gdb session on error. s From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 21 16:37:20 2020 Received: (at 39118) by debbugs.gnu.org; 21 Jan 2020 21:37:20 +0000 Received: from localhost ([127.0.0.1]:48614 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iu1D5-0003AB-Sb for submit@debbugs.gnu.org; Tue, 21 Jan 2020 16:37:20 -0500 Received: from mail-qt1-f172.google.com ([209.85.160.172]:33548) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iu1D3-00039y-R9 for 39118@debbugs.gnu.org; Tue, 21 Jan 2020 16:37:18 -0500 Received: by mail-qt1-f172.google.com with SMTP id d5so3992305qto.0 for <39118@debbugs.gnu.org>; Tue, 21 Jan 2020 13:37:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ccil-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/p9ktg51GPPAxaRkrPD9nI8C/W3Lv/t0GIxJcEfDRmw=; b=Tzzl4Np1xW806q2uDabJy9v2M1zvuyRZB7jW58R0lV09q019defsfcujVFSZHo1f45 57sDBHM86Xrk3xdrcklseulZHajBFB8w8tGd5xE5Og4pho4vgWEUZxQMasb0pWzOmp2W HdH81Mn6GXZ00yLID0hoNbjshgqdqt+IkYBuXGuLyECahDrJOA9WZUfkP+VTMAsm4G3Q DxqDcLWxsccYZOEXVUYYV+5tV4sDpcw3kHDB4sv82jAHTfFDNZA5gFm5v621hswqNhHi 37XKMdPWtchfiAgACSINfYrJRJHz7maaOp2VHQT9SRs72aNc1hSp3/NytorjtR01zfVx z5Sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/p9ktg51GPPAxaRkrPD9nI8C/W3Lv/t0GIxJcEfDRmw=; b=JvHyuMsAzPipdzeIQtkzunewgydUzDze73/eoh25/KsG6HUB/b215hBWUANsVCoroS EkBc8kRnHAEKFdDM0O3fJPuH4vrYLatMf0lLcdKMFjJHjTVOnvOgTHhH2z/wTJCPEI1R WuV4uFlvh3IXzmbYs2qEnTwIG5DxdoKkROd254la7NhUb4I+u6g1xGHK4RZwGaxE+Nw2 ZZg+O7iZVWNd9hgKq/tMVTIHCRBde3AnjUWR2Eaf/fRsbHDnU30xcohpf9W8F6f12Wsm Qe/vVj6EyiYyumk3jIIUizoNVdQWNoBiu1lhxWJQwl2itw9AwpZasiyGmVunLcb+zU4P 5AnA== X-Gm-Message-State: APjAAAVxn3/eMQ9RvinJG9TP4pA4C5mDO1sWWOt+9+rQXg1ATDwEj5V9 mddKVTmR307xSvUaR0UA7fsMvJPf0z1rCMW0fOfjfA== X-Google-Smtp-Source: APXvYqyV8zfuWhF0KUomMwcsNWWY4D58q4niq1EtvcQXptPgigb4SQuYpejWEV7sC3m45AKnBD/pn2+kEOOrADK+iE8= X-Received: by 2002:ac8:454e:: with SMTP id z14mr1511188qtn.83.1579642632257; Tue, 21 Jan 2020 13:37:12 -0800 (PST) MIME-Version: 1.0 References: <87zherlphs.fsf@pobox.com> <875zh6gk72.fsf_-_@gnu.org> <87sgk9faih.fsf@gnu.org> In-Reply-To: <87sgk9faih.fsf@gnu.org> From: John Cowan Date: Tue, 21 Jan 2020 16:37:01 -0500 Message-ID: Subject: Re: Segfault while building on 64-bit Cygwin To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Content-Type: multipart/alternative; boundary="000000000000f7d757059cad35c1" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 39118 Cc: Andy Wingo , 39118@debbugs.gnu.org, guile-devel@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: -1.0 (-) --000000000000f7d757059cad35c1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks. Unfortunately, the standard recipe for making core dumps on Mac (put "limit core unlimited" into /etc/launchd.conf and reboot, make sure /cores is writable, set ulimit -c unlimited) seem to actually enable them on MacOS Catalina (10.15.2). I have tested with SIGQUIT and SIGSEGV on running processes and no dumps appear in /cores. On Tue, Jan 21, 2020 at 4:02 AM Ludovic Court=C3=A8s wrote: > Hello, > > John Cowan skribis: > > > Yes, gladly, but I don't know how to get one in this context. > > You would unpack, configure, and build like you did before (with JIT > enabled, so as to reproduce the crash), but before that you=E2=80=99d run > =E2=80=9Culimit -c unlimited=E2=80=9D in that shell to make sure there=E2= =80=99s a core dumped > when it crashes. > > Once it has crashed, locate the =E2=80=98core=E2=80=99 file (or =E2=80=98= core.*=E2=80=99), and run, say: > > gdb libguile/.libs/guile bootstrap/core > > Then from the GDB prompt: > > thread apply all bt > > TIA, > Ludo=E2=80=99. > --000000000000f7d757059cad35c1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks.=C2=A0 Unfortunately, the standard recipe for makin= g core dumps on Mac (put "limit core unlimited" into /etc/launchd= .conf=C2=A0and reboot, make sure /cores is writable, set ulimit -c unlimite= d) seem to actually enable them on MacOS Catalina (10.15.2).=C2=A0 I have t= ested with SIGQUIT and SIGSEGV on running processes and no dumps appear in = /cores.

On Tue, Jan 21, 2020 at 4:02 AM Ludovic Court=C3=A8s <ludo@gnu.org> wrote:
Hello,

John Cowan <cowan@cc= il.org> skribis:

> Yes, gladly, but I don't know how to get one in this context.

You would unpack, configure, and build like you did before (with JIT
enabled, so as to reproduce the crash), but before that you=E2=80=99d run =E2=80=9Culimit -c unlimited=E2=80=9D in that shell to make sure there=E2= =80=99s a core dumped
when it crashes.

Once it has crashed, locate the =E2=80=98core=E2=80=99 file (or =E2=80=98co= re.*=E2=80=99), and run, say:

=C2=A0 gdb libguile/.libs/guile bootstrap/core

Then from the GDB prompt:

=C2=A0 thread apply all bt

TIA,
Ludo=E2=80=99.
--000000000000f7d757059cad35c1-- From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 21 16:53:49 2020 Received: (at 39118) by debbugs.gnu.org; 21 Jan 2020 21:53:49 +0000 Received: from localhost ([127.0.0.1]:48627 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iu1Sz-0003YC-C1 for submit@debbugs.gnu.org; Tue, 21 Jan 2020 16:53:49 -0500 Received: from mail-qk1-f175.google.com ([209.85.222.175]:39695) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iu1St-0003Xw-Vx for 39118@debbugs.gnu.org; Tue, 21 Jan 2020 16:53:44 -0500 Received: by mail-qk1-f175.google.com with SMTP id c16so4393328qko.6 for <39118@debbugs.gnu.org>; Tue, 21 Jan 2020 13:53:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ccil-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=G+HZDvMrloxDQDAcFoFPZLAehrvH4Dtp5U+bZz1myK0=; b=05dAiTesdcxoJ2DGWufMT9FIlZ9sEli61cqYTdO/i4AAB9/2i8MbW9xI9viuntw3Xq mn37NgXhD1RU40bqgGKBfL6rMJhuLPOkSog4mMgBq0CGW6zg9U9CKftzI3zaccbddiJu J6QCc0nzxM+V8wRGRz0Bcu3ZBKzVYP3BEmmUQTwrizl3RsqGKQpinQ+gejFvnUytcfit 3ityrUGSXu7++xZ5qXcGIiuwHtwDcEJne8Xr2oooKtMig2xKpo7Ss+GPVXDcFjeKDd2d /qqpbiLdutI/sOaT1udIVkbXeclSznVN0KE4Nz2GwUufmkVpxIsTCw2mf4Vb3iU8KqHU 3uiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=G+HZDvMrloxDQDAcFoFPZLAehrvH4Dtp5U+bZz1myK0=; b=DdtVH00R4W1ASLq/JrVQXdYQmAbXA8OENosXXHfmrZLDQ8l9bcgisCg3VwN/BvIZXL rtVf11X4CVd7rCERQ8AA0LLRRVsfuy5Bh8It2XEe/8T6HDJe1SvEmwIqjyDBIj22Ts+D QzmO6fA/l+dIQU7kHuFlBWwjDxqwGbWonFelI1e9a7xpu0ZfoC8oFFJ2FBsKWgdP340u sJQ8eJ+iT+xhavUMGRrvyDOcuoXXrAE0H7CmH8+kZxRF0qUVyDUtQ++d7dtgM+B32+Gt a4S7zyPJPrS3LCMmojcqplpZiV4bza1Gsrv4WMgqI9rdvsWnKBfai4lIvmojTb1K/9Ip rx4g== X-Gm-Message-State: APjAAAUU8rm+u5lpy7NDwNPHnhlguxjFtJUHhIQ/U0TeuSUxG+XPT4Lx 5NfAqvVsD35muMDjQCKJGCXCQkRyEKc3Gpe6mc1DaQ== X-Google-Smtp-Source: APXvYqzxGcBaezfyexk24RixAcnclXIvmuYRiL989kwChxeAuqrmh57A51BIzGJY2j5Gq1oQ4zFCG4T9tWdt6kuKelQ= X-Received: by 2002:a05:620a:12c4:: with SMTP id e4mr6856610qkl.359.1579643614389; Tue, 21 Jan 2020 13:53:34 -0800 (PST) MIME-Version: 1.0 References: <87zherlphs.fsf@pobox.com> <875zh6gk72.fsf_-_@gnu.org> <87sgk9faih.fsf@gnu.org> <20200121184011.GA1659@dtk> In-Reply-To: <20200121184011.GA1659@dtk> From: John Cowan Date: Tue, 21 Jan 2020 16:53:23 -0500 Message-ID: Subject: Re: bug#39118: Segfault while building on 64-bit Cygwin To: szgyg Content-Type: multipart/alternative; boundary="00000000000081fcf0059cad7085" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 39118 Cc: 39118@debbugs.gnu.org, guile-devel@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: -1.0 (-) --00000000000081fcf0059cad7085 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I'm no longer talking about Cygwin (which builds fine without JIT). I'm now talking about MacOS Catalina, which needs a core dump to debug, but on which nobody seems to know how to enable core dumps. On Tue, Jan 21, 2020 at 1:41 PM szgyg wrote: > On Tue, Jan 21, 2020 at 10:01:58AM +0100, Ludovic Court=C3=A8s wrote: > > but before that you=E2=80=99d run > > =E2=80=9Culimit -c unlimited=E2=80=9D in that shell to make sure there= =E2=80=99s a core dumped > > when it crashes. > > This won't work on cygwin. If you want a core dump, you should use the > dumper tool, as described here > https://cygwin.com/cygwin-ug-net/dumper.html > Or you can set error_start to gdb to get an interactive gdb session on > error. > > s > > > > --00000000000081fcf0059cad7085 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I'm no longer talking about Cygwin (which builds fine = without JIT).=C2=A0 I'm now talking about MacOS Catalina, which needs a= core dump to debug, but on which nobody seems to know how to enable core d= umps.

On Tue, Jan 21, 2020 at 1:41 PM szgyg <szgyg@ludens.elte.hu> wrote:
On Tue, Jan 21, 2020 at 10:01:58AM +0100, = Ludovic Court=C3=A8s wrote:
> but before that you=E2=80=99d run
> =E2=80=9Culimit -c unlimited=E2=80=9D in that shell to make sure there= =E2=80=99s a core dumped
> when it crashes.

This won't work on cygwin. If you want a core dump, you should use the<= br> dumper tool, as described here
https://cygwin.com/cygwin-ug-net/dumper.html
Or you can set error_start to gdb to get an interactive gdb session on erro= r.

s



--00000000000081fcf0059cad7085-- From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 23 15:36:04 2020 Received: (at 39118) by debbugs.gnu.org; 23 Jan 2020 20:36:04 +0000 Received: from localhost ([127.0.0.1]:53223 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iujCu-0002EF-Bv for submit@debbugs.gnu.org; Thu, 23 Jan 2020 15:36:04 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39207) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iujCs-0002Dl-30 for 39118@debbugs.gnu.org; Thu, 23 Jan 2020 15:36:03 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:37692) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iujCl-0004eh-Dz; Thu, 23 Jan 2020 15:35:55 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=59204 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iujCe-0001Wl-B9; Thu, 23 Jan 2020 15:35:53 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: John Cowan Subject: Re: Segfault while building on 64-bit Cygwin References: <87zherlphs.fsf@pobox.com> <875zh6gk72.fsf_-_@gnu.org> <87sgk9faih.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 4 =?utf-8?Q?Pluvi=C3=B4se?= an 228 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 23 Jan 2020 21:35:46 +0100 In-Reply-To: (John Cowan's message of "Tue, 21 Jan 2020 16:37:01 -0500") Message-ID: <871rrpoqql.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 39118 Cc: Andy Wingo , 39118@debbugs.gnu.org, guile-devel@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: -1.7 (-) Hi, John Cowan skribis: > Thanks. Unfortunately, the standard recipe for making core dumps on Mac This bug report is about Cygwin, not macOS, right? :-) Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 24 09:37:17 2020 Received: (at 39118) by debbugs.gnu.org; 24 Jan 2020 14:37:17 +0000 Received: from localhost ([127.0.0.1]:53618 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iv05F-0002co-FY for submit@debbugs.gnu.org; Fri, 24 Jan 2020 09:37:17 -0500 Received: from mail-qt1-f179.google.com ([209.85.160.179]:37579) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iv05E-0002cb-Aw for 39118@debbugs.gnu.org; Fri, 24 Jan 2020 09:37:16 -0500 Received: by mail-qt1-f179.google.com with SMTP id w47so1649355qtk.4 for <39118@debbugs.gnu.org>; Fri, 24 Jan 2020 06:37:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ccil-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sfLTDED44kszANRogyIZLZv87XlE0nQZiF4tDx2ceeU=; b=1xpq9m+3xuYDme3WgE0t2XofjrgyE4NsgD5hTumzYTqudLKQYsdmHFbw1v486jKpa9 m5XKdKFux848jurG05LfPow4TVuPbb53lGUUldJYUQMOAnei+WnTZlQJ/kBJQc3W1VCF elPS3Bp0zakAjHbKThNLgkd03EqLj/vnWUWlT2PDcBCgBdgGLKRSkEMJKIigwkW6ouQu hR9kMIUSqald6Rx1kpaHB8ertTnjIJ85xjJAqk9l2YeOmmL04DiFSGlTrxEA+oGjf6RG JCy86kNpczbcEcgp4vMhiQjAoyqrDdtY+6w4oo+CMrW/ImZkTr9QMI7Gtd+2bS7ESEKO xyhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=sfLTDED44kszANRogyIZLZv87XlE0nQZiF4tDx2ceeU=; b=SPCNrmfEOPtA18rTDYxTmXaqBm2R3JGN38pUT/KCClgc0KaOWGADAgiyVxG4bv0GUu ShbGcc798k1jsJR4tF/D3ylngolbSjUyuK4+TsHYa23DxFMmLQUOoo+6xN1pf1csDeUk 0hFcGd404kjHXn/iAYvZ2lkB/Uvzxa8c6hhagr46+Xtsm4P76coDZyPhwW2uPhG4YGFg YWxiMEXZp3h0Ed7rhvXQ+JzwsnIeCJSt+6CaQTIj6T3UVkS4IhSuHmFldpUiyeNIlC0q 42A48HuypmlzAerfIhHrAGxmMqQn9q+d3n7PsV5GKZYjbKj80hZlmuSdtrtarRdcrEpV Z29w== X-Gm-Message-State: APjAAAVV6iGCoG6m6JGbSC/Lbfoc1cy6UVOHYiXu0S84X77u94bfX7Yn vsWh2vDmzV+LrAqiznIiXh/eiwCz+RHf9HwUhepLgA== X-Google-Smtp-Source: APXvYqwtkFQwHFm+hnxx5yKRtRCSuCwylyS9SVuGbI6N1uK+k7djGL/+fgDRyF4dVADTkhsr6zeTopj5vyu3UGAapEk= X-Received: by 2002:ac8:454e:: with SMTP id z14mr2257806qtn.83.1579876630706; Fri, 24 Jan 2020 06:37:10 -0800 (PST) MIME-Version: 1.0 References: <87zherlphs.fsf@pobox.com> <875zh6gk72.fsf_-_@gnu.org> <87sgk9faih.fsf@gnu.org> <871rrpoqql.fsf@gnu.org> In-Reply-To: <871rrpoqql.fsf@gnu.org> From: John Cowan Date: Fri, 24 Jan 2020 09:36:59 -0500 Message-ID: Subject: Re: Segfault while building on 64-bit Cygwin To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Content-Type: multipart/alternative; boundary="0000000000005ce83c059ce3b13d" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 39118 Cc: Andy Wingo , 39118@debbugs.gnu.org, guile-devel@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: -1.0 (-) --0000000000005ce83c059ce3b13d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Both Cygwin and MacOS crash in pretty much the same way. By disabling the JIT, I was able to get the Cygwin build to run to completion. On MacOS with --disable-jit, however, I am now getting an entirely new failure: CC readline.lo readline.c:432:7: warning: implicitly declaring library function 'strncmp' with type 'int (const char *, const char *, unsigned long)' [-Wimplicit-function-declaration] if (strncmp (rl_get_keymap_name (rl_get_keymap ()), "vi", 2)) ^ readline.c:432:7: note: include the header or explicitly provide a declaration for 'strncmp' readline.c:432:16: warning: implicit declaration of function 'rl_get_keymap_name' is invalid in C99 [-Wimplicit-function-declaration] if (strncmp (rl_get_keymap_name (rl_get_keymap ()), "vi", 2)) ^ readline.c:432:16: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'const char *' [-Wint-conversion] if (strncmp (rl_get_keymap_name (rl_get_keymap ()), "vi", 2)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3 warnings generated. CCLD guile-readline.la Undefined symbols for architecture x86_64: "_rl_get_keymap_name", referenced from: _scm_init_readline in readline.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) On Thu, Jan 23, 2020 at 3:35 PM Ludovic Court=C3=A8s wrote: > Hi, > > John Cowan skribis: > > > Thanks. Unfortunately, the standard recipe for making core dumps on Ma= c > > This bug report is about Cygwin, not macOS, right? :-) > > Ludo=E2=80=99. > --0000000000005ce83c059ce3b13d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Both Cygwin and MacOS crash in pretty much the same way.= =C2=A0 By disabling the JIT, I was able to get the Cygwin build to run to c= ompletion.=C2=A0 On MacOS with --disable-jit, however, I am now getting an = entirely new failure:

=C2=A0 CC =C2=A0 =C2=A0 =C2=A0 rea= dline.lo
readline.c:432:7: warning: implicitly declaring library functio= n 'strncmp' with type 'int (const char *, const char *,
=C2= =A0 =C2=A0 =C2=A0 unsigned long)' [-Wimplicit-function-declaration]
= =C2=A0 if (strncmp (rl_get_keymap_name (rl_get_keymap ()), "vi", = 2))
=C2=A0 =C2=A0 =C2=A0 ^
readline.c:432:7: note: include the header= <string.h> or explicitly provide a declaration for 'strncmp'=
readline.c:432:16: warning: implicit declaration of function 'rl_ge= t_keymap_name' is invalid in C99
=C2=A0 =C2=A0 =C2=A0 [-Wimplicit-fu= nction-declaration]
=C2=A0 if (strncmp (rl_get_keymap_name (rl_get_keyma= p ()), "vi", 2))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0^
readline.c:432:16: warning: incompatible integer to pointer = conversion passing 'int' to parameter of type 'const char *'= ;
=C2=A0 =C2=A0 =C2=A0 [-Wint-conversion]
=C2=A0 if (strncmp (rl_get_= keymap_name (rl_get_keymap ()), "vi", 2))
=C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~3 warnings generated.
=C2=A0 CCLD =C2=A0 =C2=A0 guile-readline.la
Undefined symbols for architecture x= 86_64:
=C2=A0 "_rl_get_keymap_name", referenced from:
=C2= =A0 =C2=A0 =C2=A0 _scm_init_readline in readline.o
ld: symbol(s) not fou= nd for architecture x86_64
clang: error: linker command failed with exit= code 1 (use -v to see invocation)

On Thu, Jan 23, 2020 at 3:35 PM= Ludovic Court=C3=A8s <ludo@gnu.org&= gt; wrote:
Hi,
John Cowan <cowan@cc= il.org> skribis:

> Thanks.=C2=A0 Unfortunately, the standard recipe for making core dumps= on Mac

This bug report is about Cygwin, not macOS, right?=C2=A0 :-)

Ludo=E2=80=99.
--0000000000005ce83c059ce3b13d-- From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 24 10:26:51 2020 Received: (at 39118) by debbugs.gnu.org; 24 Jan 2020 15:26:51 +0000 Received: from localhost ([127.0.0.1]:54621 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iv0rD-00046A-DX for submit@debbugs.gnu.org; Fri, 24 Jan 2020 10:26:51 -0500 Received: from p-impout005aa.msg.pkvw.co.charter.net ([47.43.26.136]:54012 helo=p-impout001.msg.pkvw.co.charter.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iv0rB-00045o-5K for 39118@debbugs.gnu.org; Fri, 24 Jan 2020 10:26:49 -0500 Received: from localhost ([54.243.7.172]) by cmsmtp with ESMTP id v0r4ioWE7lLVdv0r5ipFQX; Fri, 24 Jan 2020 15:26:43 +0000 X-Authority-Analysis: v=2.3 cv=bI1o382Z c=1 sm=1 tr=0 a=ZhHbwgLlxfPm5G22ibXkng==:117 a=ZhHbwgLlxfPm5G22ibXkng==:17 a=CWu-ru1EMAMA:10 a=mDV3o1hIAAAA:8 a=PW3MP3VhAAAA:8 a=2tsvuTQuAAAA:8 a=ys4_Yv5E0QSmCxxam1oA:9 a=QEXdDO2ut3YA:10 a=6P6AnMHC3_EEb1QOi_4A:9 a=r64BLdijFQ7gRPfv:21 a=_W_S_7VecoQA:10 a=_FVE-zBwftR9WsbkzFJk:22 a=wGa3ZVs4GtKCUdeekXtI:22 a=w1QI8THEI4iyJQ0oNEIE:22 a=pHzHmUro8NiASowvMSCR:22 a=Ew2E2A-JSTLzCXPT_086:22 Message-Id: <99218b8d8f572c8748963924e82d265652487a09@webmail> From: dsmich@roadrunner.com To: "'John Cowan'" X-Mailer: Atmail X-Originating-IP: [98.103.13.34] X-Priority: 3 Importance: Normal X-MSMail-Priority: Normal Subject: RE: bug#39118: Segfault while building on 64-bit Cygwin Date: Fri, 24 Jan 2020 15:26:42 +0000 Content-Type: multipart/alternative; boundary="=_9fe747825349203c6af510d69f278407" MIME-Version: 1.0 X-CMAE-Envelope: MS4wfHxyCFTcgRkQKD/KIavuF1LfxYAZa0MYwBh47rZZSegRMX747uOB0O9t6of9z5PCMXIKtOTHb7qWU6g+2EuTSQC+RO4CirbN8DglDzJSQhiwbpmEVCXH G0F6h+pHuO+cjQ3APRiQWCiSNs51a9/PQZiTYZfxhdvVeay6xIDiBwitYKAsbWsUS4qndzNS66vRObwcQtNScew/PTfQsMM7w9rqct49z0OkDCFOxBPL9Sgn QiCverVLhwyCWaEq8txoOw== X-Spam-Score: 1.8 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Pretty sure that the missing readline symbol is because the macos readline is being used/found instead of GNU readline. -Dale From: "John Cowan" To: "Ludovic Courtès" Cc: 39118@debbugs.gnu.org, guile-devel@gnu.org Sent: Friday January 24 2020 9:36:59AM Subject: bug#39118: Segfault w [...] Content analysis details: (1.8 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: gnu.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 HTML_MESSAGE BODY: HTML included in message 1.8 MISSING_MIMEOLE Message has X-MSMail-Priority, but no X-MimeOLE X-Debbugs-Envelope-To: 39118 Cc: "'39118@debbugs.gnu.org'" <39118@debbugs.gnu.org>, '=?UTF-8?B?THVkb3ZpYyBDb3VydMOocw==?=' , "'guile-devel@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.8 (/) --=_9fe747825349203c6af510d69f278407 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Pretty sure that the missing readline symbol is because the macos=0Aread= line is being used/found instead of GNU readline.=0A=0A=09-Dale=0A=0A=09= -----------------------------------------From: "John Cowan" =0ATo: "Ludo= vic Court=C3=A8s"=0ACc: 39118@debbugs.gnu.org, guile-devel@gnu.org=0ASen= t: Friday January 24 2020 9:36:59AM=0ASubject: bug#39118: Segfault while= building on 64-bit Cygwin=0A=0ABoth Cygwin and MacOS crash in pretty mu= ch the same way. By disabling=0Athe JIT, I was able to get the Cygwin bu= ild to run to completion. On=0AMacOS with --disable-jit, however, I am n= ow getting an entirely new=0Afailure:=0A CC readline.lo=0Areadline.c:432= :7: warning: implicitly declaring library function=0A'strncmp' with type= 'int (const char *, const char *,=0A unsigned long)' [-Wimplicit-functi= on-declaration]=0A if (strncmp (rl_get_keymap_name (rl_get_keymap ()), "= vi", 2))=0A ^=0Areadline.c:432:7: note: include the header or explicitl= y provide a=0Adeclaration for 'strncmp'=0Areadline.c:432:16: warning: im= plicit declaration of function=0A'rl_get_keymap_name' is invalid in C99= =0A [-Wimplicit-function-declaration]=0A if (strncmp (rl_get_keymap_name= (rl_get_keymap ()), "vi", 2))=0A ^=0Areadline.c:432:16: warning: incomp= atible integer to pointer conversion=0Apassing 'int' to parameter of typ= e 'const char *'=0A [-Wint-conversion]=0A if (strncmp (rl_get_keymap_nam= e (rl_get_keymap ()), "vi", 2))=0A ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= =0A3 warnings generated.=0A CCLD guile-readline.la [1]=0AUndefined symbo= ls for architecture x86_64:=0A "_rl_get_keymap_name", referenced from:= =0A _scm_init_readline in readline.o=0Ald: symbol(s) not found for archi= tecture x86_64=0Aclang: error: linker command failed with exit code 1 (u= se -v to see=0Ainvocation)=0A=0AOn Thu, Jan 23, 2020 at 3:35 PM Ludovic= Court=C3=A8s wrote:=0AHi,=0A=0A John Cowan skribis:=0A=0A > Thanks. U= nfortunately, the standard recipe for making core dumps on=0AMac=0A=0A T= his bug report is about Cygwin, not macOS, right? :-)=0A=0A Ludo=E2=80= =99.=0A =0A=0ALinks:=0A------=0A[1] http://guile-readline.la=0A[2] mail= to:ludo@gnu.org=0A[3] mailto:cowan@ccil.org=0A --=_9fe747825349203c6af510d69f278407 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Pretty sure that the missing readline symbol is because the= macos readline is being used/found instead of GNU readline.


<= p>-Dale


------= -----------------------------------

From: "John Cowan"
To: "Ludovic Court=C3=A8s"
Cc: 39118@debbugs.gnu.org, guile-dev= el@gnu.org
Sent: Friday January 24 2020 9:36:59AM
Subject: bug#391= 18: Segfault while building on 64-bit Cygwin

Bot= h Cygwin and MacOS crash in pretty much the same way.  By disabling= the JIT, I was able to get the Cygwin build to run to completion. = On MacOS with --disable-jit, however, I am now getting an entirely new= failure:

  CC       readline.lo<= br>readline.c:432:7: warning: implicitly declaring library function 'str= ncmp' with type 'int (const char *, const char *,
     = ; unsigned long)' [-Wimplicit-function-declaration]
  if (strncm= p (rl_get_keymap_name (rl_get_keymap ()), "vi", 2))
    &nb= sp; ^
readline.c:432:7: note: include the header <string.h> or= explicitly provide a declaration for 'strncmp'
readline.c:432:16: wa= rning: implicit declaration of function 'rl_get_keymap_name' is invalid= in C99
      [-Wimplicit-function-declaration]
&nb= sp; if (strncmp (rl_get_keymap_name (rl_get_keymap ()), "vi", 2))
&nb= sp;              ^
readline.c:432:= 16: warning: incompatible integer to pointer conversion passing 'int' to= parameter of type 'const char *'
      [-Wint-convers= ion]
  if (strncmp (rl_get_keymap_name (rl_get_keymap ()), "vi",= 2))
               ^~~~~~~~~= ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3 warnings generated.
  CCLD &nb= sp;   guile-readline.laUndefined symbols for architecture x86_64:
  "_rl_get_keymap_na= me", referenced from:
      _scm_init_readline in read= line.o
ld: symbol(s) not found for architecture x86_64
clang: erro= r: linker command failed with exit code 1 (use -v to see invocation)
=

=0A=0A
--=_9fe747825349203c6af510d69f278407-- From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 25 08:51:15 2020 Received: (at 39118) by debbugs.gnu.org; 25 Jan 2020 13:51:15 +0000 Received: from localhost ([127.0.0.1]:55083 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ivLqF-0005Hl-K3 for submit@debbugs.gnu.org; Sat, 25 Jan 2020 08:51:15 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35052) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ivLqE-0005HZ-7K for 39118@debbugs.gnu.org; Sat, 25 Jan 2020 08:51:14 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:57402) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ivLq7-0003AF-5G; Sat, 25 Jan 2020 08:51:08 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=50862 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ivLq6-0002k8-33; Sat, 25 Jan 2020 08:51:06 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: John Cowan Subject: Re: Segfault while building on 64-bit Cygwin References: <87zherlphs.fsf@pobox.com> <875zh6gk72.fsf_-_@gnu.org> <87sgk9faih.fsf@gnu.org> <871rrpoqql.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 6 =?utf-8?Q?Pluvi=C3=B4se?= an 228 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Sat, 25 Jan 2020 14:51:03 +0100 In-Reply-To: (John Cowan's message of "Fri, 24 Jan 2020 09:36:59 -0500") Message-ID: <87wo9fbq60.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 39118 Cc: Andy Wingo , 39118@debbugs.gnu.org, guile-devel@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: -1.7 (-) John Cowan skribis: > Both Cygwin and MacOS crash in pretty much the same way. By disabling the > JIT, I was able to get the Cygwin build to run to completion. That I understand. However, I was asking for the backtrace of the crash on Cygwin when JIT is enabled. Could you grab it? Thanks in advance, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 25 10:54:59 2020 Received: (at 39118) by debbugs.gnu.org; 25 Jan 2020 15:54:59 +0000 Received: from localhost ([127.0.0.1]:56249 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ivNlz-0000Hz-0z for submit@debbugs.gnu.org; Sat, 25 Jan 2020 10:54:59 -0500 Received: from mail-qt1-f182.google.com ([209.85.160.182]:35709) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ivNlx-0000Hl-37 for 39118@debbugs.gnu.org; Sat, 25 Jan 2020 10:54:57 -0500 Received: by mail-qt1-f182.google.com with SMTP id e12so4049937qto.2 for <39118@debbugs.gnu.org>; Sat, 25 Jan 2020 07:54:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ccil-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=IwqODHzBf/Dn9lRq+HMnmPO3LDI27qxjmIy9VsGeGjI=; b=nc5nYuh5tRmhkM0Mw8A/Ydo4J6tWbOHci1NSA4w8aWQ6vd9wweGAwVhLrAPOY6Wae0 cEkbEF7EhJHQdtcnNHaXgsznhZ0g+PFM+tpuSS5SqJ2OqwGXn1Yldk85bOH5Zstjg3k3 JfCWUm7eq3eKa/qewNo+UlPiNZ7KKLHqsl0/lmsupUQtNRQ7a1Uqo36J18s62iIGDTqg j+jQsCTu7qZmM/z9vig3ENgiXhP7m8qNx1RmTICs2V5mgCtgrmgdaAtEbHKCc2JxRjrh jBMZyS0kjkpGPIKgaV4GvCJfsGjqGnU0p9s9COLMJ5eYIYx+pWSNolDtJffcCQJIVHZP Jfag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=IwqODHzBf/Dn9lRq+HMnmPO3LDI27qxjmIy9VsGeGjI=; b=N3Mxtx1F8YgyLUkmu68/LUBUT8i4Ga3Qx4BHwgVdzwaXB2cVjGPvXgWcmvJ+YWUqb8 ODgY9waAyvV0cbJIH1srcWVvdt1Efb1a9w88Vzd4Z3W4/p3mGhRvQKklWvwtnEyCYgM9 XCFxKULTQTyR9cjYr9vTlB91oYtftKf9b7kqpnSEXd9l8itYxc9Zkwp5m9MWzvbOlv+m YvdQgwt2jZoVjZBpcs4Ds02WpgnY4+DSKBhYzAX6wO9Y7PB34R93sg8Yup+oZlgR7IBJ yhbQ+euOO+LSWUT7D4bzxmYeKsYM8X2aM6hb61aRhpuIdwCA2zJ6rFfsnIEbuHgcOu2B H4ig== X-Gm-Message-State: APjAAAVI99VJ/VOcXc9ZCaSa5dUR3rnOnbhRCNkpcVvWX9eMB7hfwPt1 /VaLXwXV1RnWQ3GluwiH1N0AeyP1Aex8SmNPf+SoOQ== X-Google-Smtp-Source: APXvYqy/5uyepEhUBTarqYF8ZOyk+BrJnLeWv2dgMHxVxQrieoJdPibW4+G2SEe4Aq/PFcDwQiWhDah8iLr6K51tgMo= X-Received: by 2002:ac8:5410:: with SMTP id b16mr7675502qtq.45.1579967691396; Sat, 25 Jan 2020 07:54:51 -0800 (PST) MIME-Version: 1.0 References: <87zherlphs.fsf@pobox.com> <875zh6gk72.fsf_-_@gnu.org> <87sgk9faih.fsf@gnu.org> <871rrpoqql.fsf@gnu.org> <87wo9fbq60.fsf@gnu.org> In-Reply-To: <87wo9fbq60.fsf@gnu.org> From: John Cowan Date: Sat, 25 Jan 2020 10:54:40 -0500 Message-ID: Subject: Re: Segfault while building on 64-bit Cygwin To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Content-Type: multipart/alternative; boundary="00000000000000ab42059cf8e535" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 39118 Cc: Andy Wingo , 39118@debbugs.gnu.org, guile-devel@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: -1.0 (-) --00000000000000ab42059cf8e535 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Jan 25, 2020 at 8:51 AM Ludovic Court=C3=A8s wrote: > That I understand. However, I was asking for the backtrace of the crash > on Cygwin when JIT is enabled. Could you grab it? > 1. The wisdom of the Internet has not been able to figure out how to generate a core dump on MacOS 10.15.2 (Catalina). The usual set of enabling steps can be performed without error, but still no core dump. 2. Until today I believed that there was no way to generate a Cygwin core dump. I know now that there is, but I may not be able to test it until Monday. I'll let you know, and hopefully that will provide insight into the MacOS problem as well. 3. I will try to work further on the MacOS libffi problem (which surfaces when you do --disable-jit to bypass the above problem) to convince MacOS to use GNU libffi rather than the native one. It probably has to do with pkg-config, which I barely understand. "All problems are config problems." John Cowan http://vrici.lojban.org/~cowan cowan@ccil.org We are lost, lost. No name, no business, no Precious, nothing. Only empty= . Only hungry: yes, we are hungry. A few little fishes, nassty bony little fishes, for a poor creature, and they say death. So wise they are; so just= , so very just. --Gollum --00000000000000ab42059cf8e535 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
=C2=A0
That I understand.=C2=A0 However, I was asking for the backtrace of t= he crash
on Cygwin when JIT is enabled.=C2=A0 Could you grab it?

1. The wisdom of the Internet has not been able to figure = out how to generate a core dump on MacOS 10.15.2 (Catalina).=C2=A0 The usua= l set of enabling steps can be performed without error, but still no core d= ump.

2. Until today I believed that there was no w= ay to generate a Cygwin core dump.=C2=A0 I know now that there is, but I ma= y not be able to test it until Monday.=C2=A0 I'll let you know, and hop= efully that will provide insight into the MacOS problem as well.
=
3.=C2=A0 I will try to work further on the MacOS libffi prob= lem (which surfaces when you do --disable-jit to bypass the above problem) = to convince MacOS to use GNU libffi rather than the native one.=C2=A0 It pr= obably has to do with pkg-config, which I barely understand.

=
"All problems are config problems."



John Cowan =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0http://vrici.lojban.org/~= cowan =C2=A0 =C2=A0 =C2=A0 =C2=A0cowa= n@ccil.org
We are lost, lost.=C2=A0 No name, no business, no Preciou= s, nothing.=C2=A0 Only empty.
Only hungry: yes, we are hungry.=C2=A0 A f= ew little fishes, nassty bony little
fishes, for a poor creature, and th= ey say death.=C2=A0 So wise they are; so just,
so very just. =C2=A0--Gol= lum
--00000000000000ab42059cf8e535-- From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 31 09:23:39 2020 Received: (at 39118) by debbugs.gnu.org; 31 Jan 2020 14:23:39 +0000 Received: from localhost ([127.0.0.1]:36781 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ixXCt-0001zB-FM for submit@debbugs.gnu.org; Fri, 31 Jan 2020 09:23:39 -0500 Received: from mail-qk1-f193.google.com ([209.85.222.193]:34237) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ixXCr-0001yz-Lb for 39118@debbugs.gnu.org; Fri, 31 Jan 2020 09:23:38 -0500 Received: by mail-qk1-f193.google.com with SMTP id d10so6700243qke.1 for <39118@debbugs.gnu.org>; Fri, 31 Jan 2020 06:23:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ccil-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9GPSmy09mivX+/6ceca9MJHTgLtaVAA0b28/168jkd4=; b=Vs8mB+E8eWqymjlweeuh7jsvEzjxR7bWQF1n6trgieIxHOnq02/lWucer/f99uAM0p wVWAqzHKXVnY1gRu8GrDj5aHtjuDWOHfHR4k9w6vhYWzXCb8MyP5jWh+rTTFkcAIKwmE QTd66SlAZit7sOGp6FI03DbR3DU8opMnl79yiHVugdKTZ/rNIlcnOi/XGxn9QIfAicNq PpApOguipsZf3/p9awncCKYTpQtdqWxFm0V/Rwc3UFYwtOolrSxIAZRaBy7FsePl9s1W Ez8oXaWhhOudCBi5Pgcj0SdmEwDJAK+sMK4Ve0m2+3qYXWaxfXpps4n7bAx2QZiCCbcj 1LsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9GPSmy09mivX+/6ceca9MJHTgLtaVAA0b28/168jkd4=; b=nBEEwSRh+fckB4RVOZ3ppVddujmV4FrewgLvt98/yDUBFanEaomb/F4mm032kuzVJK SsTj1bidLudNlHnRYbAGUhUrl8lShrOX+0Rs/XmiOXDEjbRvoTEbn9EFy3nfR7DL9o/2 gsY9PKra/nTT86FHCBqT/ba4Ow3CkqS8QzeuuoG45Z8heQRY9QC0P0PfcVk/QSTkocrQ tKwSuORqbDP+i5GlDdFtHemY1ntHh/WB7SCYGvN+AUNnRvt9tReVuiiV4ZD9SBxqLaK/ 8j7+fLnTlGPV0wwFfr532kuQXgu0/3/Zn+DwMeGQllE8sBzrM829GS2U3kN1M2QJUlsk rIiQ== X-Gm-Message-State: APjAAAWhxcuGlhr52+tZ+gYIf5DbmIgRMp/Hv/pRI5Dd+0ac/uxq54ZW rBQ15N7YRT/Xk4hP21PxqRWEubT+hSF1m4q4VOlp7g== X-Google-Smtp-Source: APXvYqzMhK9ye37e5RyKQHu1nXRf7/XNMaxKZKKa1BB4BC87Mz1BILLDQRtybi7ZstKuUW4lkaUmkbSJH0is0WOFQGE= X-Received: by 2002:a05:620a:12c4:: with SMTP id e4mr10969573qkl.359.1580480610632; Fri, 31 Jan 2020 06:23:30 -0800 (PST) MIME-Version: 1.0 References: <87zherlphs.fsf@pobox.com> <875zh6gk72.fsf_-_@gnu.org> <87sgk9faih.fsf@gnu.org> <871rrpoqql.fsf@gnu.org> <87wo9fbq60.fsf@gnu.org> In-Reply-To: From: John Cowan Date: Fri, 31 Jan 2020 09:23:19 -0500 Message-ID: Subject: Re: Segfault while building on 64-bit Cygwin To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Content-Type: multipart/mixed; boundary="0000000000005fc43c059d7051a6" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 39118 Cc: Andy Wingo , 39118@debbugs.gnu.org, guile-devel@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: -1.0 (-) --0000000000005fc43c059d7051a6 Content-Type: multipart/alternative; boundary="0000000000005fc43a059d7051a4" --0000000000005fc43a059d7051a4 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Aaaand... Cygwin doesn't do core dumps. Under the skin it's WIndows, after all. This is what I get when I specify ulimit -c unlimited and rebuild: Exception: STATUS_ACCESS_VIOLATION at rip=3D0055A8B1B25 rax=3D0000000000000000 rbx=3DFFFFFFFFFFFFFF90 rcx=3DFFFFFFFFFFFFFF90 rdx=3D000000000034964A rsi=3D000007000084ECC0 rdi=3DFFFFFFFFFFFFFF90 r8 =3D000007000084ECC0 r9 =3D0000000000000002 r10=3D0000000100000000 r11=3D000000055A86B190 r12=3D0000000000000002 r13=3D000000055A931EA0 r14=3D000006FFFFFEF840 r15=3D0000000000000000 rbp=3D000000000034964A rsp=3D00000000FFFFBDA0 program=3DC:\Users\rr828893\Downloads\guile-3.0.0\libguile\.libs\guile.exe, pid 62833, thread main cs=3D0033 ds=3D002B es=3D002B fs=3D0053 gs=3D002B ss=3D002B I can't imagine what you can make of that. On Sat, Jan 25, 2020 at 10:54 AM John Cowan wrote: > > > On Sat, Jan 25, 2020 at 8:51 AM Ludovic Court=C3=A8s wrote= : > > >> That I understand. However, I was asking for the backtrace of the crash >> on Cygwin when JIT is enabled. Could you grab it? >> > > 1. The wisdom of the Internet has not been able to figure out how to > generate a core dump on MacOS 10.15.2 (Catalina). The usual set of > enabling steps can be performed without error, but still no core dump. > > 2. Until today I believed that there was no way to generate a Cygwin core > dump. I know now that there is, but I may not be able to test it until > Monday. I'll let you know, and hopefully that will provide insight into > the MacOS problem as well. > > 3. I will try to work further on the MacOS libffi problem (which surface= s > when you do --disable-jit to bypass the above problem) to convince MacOS = to > use GNU libffi rather than the native one. It probably has to do with > pkg-config, which I barely understand. > > "All problems are config problems." > > > > John Cowan http://vrici.lojban.org/~cowan cowan@ccil.org > We are lost, lost. No name, no business, no Precious, nothing. Only > empty. > Only hungry: yes, we are hungry. A few little fishes, nassty bony little > fishes, for a poor creature, and they say death. So wise they are; so > just, > so very just. --Gollum > --0000000000005fc43a059d7051a4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Aaaand... Cygwin doesn't do core dumps. Under the skin= it's WIndows, after all.=C2=A0 This is what I get when I specify ulimi= t -c unlimited and rebuild:

Exception: STATUS_ACCESS_VIO= LATION at rip=3D0055A8B1B25
rax=3D0000000000000000 rbx=3DFFFFFFFFFFFFFF9= 0 rcx=3DFFFFFFFFFFFFFF90
rdx=3D000000000034964A rsi=3D000007000084ECC0 r= di=3DFFFFFFFFFFFFFF90
r8 =3D000007000084ECC0 r9 =3D0000000000000002 r10= =3D0000000100000000
r11=3D000000055A86B190 r12=3D0000000000000002 r13=3D= 000000055A931EA0
r14=3D000006FFFFFEF840 r15=3D0000000000000000
rbp=3D= 000000000034964A rsp=3D00000000FFFFBDA0
program=3DC:\Users\rr828893\Down= loads\guile-3.0.0\libguile\.libs\guile.exe, pid 62833, thread main
cs=3D= 0033 ds=3D002B es=3D002B fs=3D0053 gs=3D002B ss=3D002B

I can't imagine what you can make of that.

On Sat, Jan 25= , 2020 at 10:54 AM John Cowan <cowan@ccil.org> wrote:


<= div class=3D"gmail_quote">
On Sat, Jan= 25, 2020 at 8:51 AM Ludovic Court=C3=A8s <ludo@gnu.org> wrote:
=C2=A0
=
That I understand.=C2=A0 = However, I was asking for the backtrace of the crash
on Cygwin when JIT is enabled.=C2=A0 Could you grab it?

1. The wisdom of the Internet has not been able to figure = out how to generate a core dump on MacOS 10.15.2 (Catalina).=C2=A0 The usua= l set of enabling steps can be performed without error, but still no core d= ump.

2. Until today I believed that there was no w= ay to generate a Cygwin core dump.=C2=A0 I know now that there is, but I ma= y not be able to test it until Monday.=C2=A0 I'll let you know, and hop= efully that will provide insight into the MacOS problem as well.
=
3.=C2=A0 I will try to work further on the MacOS libffi prob= lem (which surfaces when you do --disable-jit to bypass the above problem) = to convince MacOS to use GNU libffi rather than the native one.=C2=A0 It pr= obably has to do with pkg-config, which I barely understand.

=
"All problems are config problems."



John Cowan =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0http://= vrici.lojban.org/~cowan =C2=A0 =C2=A0 =C2=A0 =C2=A0cowan@ccil.org
We are lost, lost.=C2= =A0 No name, no business, no Precious, nothing.=C2=A0 Only empty.
Only h= ungry: yes, we are hungry.=C2=A0 A few little fishes, nassty bony littlefishes, for a poor creature, and they say death.=C2=A0 So wise they are; s= o just,
so very just. =C2=A0--Gollum
--0000000000005fc43a059d7051a4-- --0000000000005fc43c059d7051a6 Content-Type: application/octet-stream; name="guile.exe.stackdump" Content-Disposition: attachment; filename="guile.exe.stackdump" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_k6299fjf0 RXhjZXB0aW9uOiBTVEFUVVNfQUNDRVNTX1ZJT0xBVElPTiBhdCByaXA9MDA1NUE4QjFCMjUNCnJh eD0wMDAwMDAwMDAwMDAwMDAwIHJieD1GRkZGRkZGRkZGRkZGRjkwIHJjeD1GRkZGRkZGRkZGRkZG RjkwDQpyZHg9MDAwMDAwMDAwMDM0OTY0QSByc2k9MDAwMDA3MDAwMDg0RUNDMCByZGk9RkZGRkZG RkZGRkZGRkY5MA0KcjggPTAwMDAwNzAwMDA4NEVDQzAgcjkgPTAwMDAwMDAwMDAwMDAwMDIgcjEw PTAwMDAwMDAxMDAwMDAwMDANCnIxMT0wMDAwMDAwNTVBODZCMTkwIHIxMj0wMDAwMDAwMDAwMDAw MDAyIHIxMz0wMDAwMDAwNTVBOTMxRUEwDQpyMTQ9MDAwMDA2RkZGRkZFRjg0MCByMTU9MDAwMDAw MDAwMDAwMDAwMA0KcmJwPTAwMDAwMDAwMDAzNDk2NEEgcnNwPTAwMDAwMDAwRkZGRkJEQTANCnBy b2dyYW09QzpcVXNlcnNccnI4Mjg4OTNcRG93bmxvYWRzXGd1aWxlLTMuMC4wXGxpYmd1aWxlXC5s aWJzXGd1aWxlLmV4ZSwgcGlkIDYyODMzLCB0aHJlYWQgbWFpbg0KY3M9MDAzMyBkcz0wMDJCIGVz PTAwMkIgZnM9MDA1MyBncz0wMDJCIHNzPTAwMkINCg== --0000000000005fc43c059d7051a6-- From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 03 17:11:48 2020 Received: (at 39118) by debbugs.gnu.org; 3 Feb 2020 22:11:48 +0000 Received: from localhost ([127.0.0.1]:42291 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iyjwa-0002uZ-Fn for submit@debbugs.gnu.org; Mon, 03 Feb 2020 17:11:48 -0500 Received: from mx3.mail.elte.hu ([157.181.1.138]:36152) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iyjwV-0002uO-MH for 39118@debbugs.gnu.org; Mon, 03 Feb 2020 17:11:47 -0500 Received: from mailbox1.caesar.elte.hu ([157.181.151.157]) by mx3.mail.elte.hu with esmtp (Exim) id 1iyjwT-0007M5-Rx from ; Mon, 03 Feb 2020 23:11:42 +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 1iyjwT-0003yQ-3L; Mon, 03 Feb 2020 23:11:41 +0100 Date: Mon, 3 Feb 2020 23:11:38 +0100 From: szgyg To: John Cowan Subject: Re: bug#39118: Segfault while building on 64-bit Cygwin Message-ID: <20200203221137.GB1659@dtk> References: <875zh6gk72.fsf_-_@gnu.org> <87sgk9faih.fsf@gnu.org> <871rrpoqql.fsf@gnu.org> <87wo9fbq60.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.0 (2017-09-02) X-ELTE-SpamScore: -6.1 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 3.0 X-ELTE-SpamCheck-Details: score=-6.1 required=5.0 tests=ALL_TRUSTED, BAYES_00, L_AUTH autolearn=ham autolearn_force=no SpamAssassin version=3.4.2 -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -5.0 L_AUTH Caesar auth -0.1 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 39118 Cc: 39118@debbugs.gnu.org, Ludovic =?utf-8?Q?Court=C3=A8s?= , guile-devel@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: -1.7 (-) On Fri, Jan 31, 2020 at 09:23:19AM -0500, John Cowan wrote: > Aaaand... Cygwin doesn't do core dumps. Under the skin it's WIndows, after > all. This is what I get when I specify ulimit -c unlimited and rebuild: > [...] Please see my previous mail on how to get a real core dump on cygwin https://debbugs.gnu.org/cgi/bugreport.cgi?bug=39118#28 >> On Sat, Jan 25, 2020 at 8:51 AM Ludovic Courtès wrote: >> >>> That I understand. However, I was asking for the backtrace of the crash >>> on Cygwin when JIT is enabled. Could you grab it? #v+ BOOTSTRAP GUILEC ice-9/eval.go BOOTSTRAP GUILEC ice-9/psyntax-pp.go BOOTSTRAP GUILEC language/cps/intmap.go BOOTSTRAP GUILEC language/cps/intset.go BOOTSTRAP GUILEC language/cps/graphs.go BOOTSTRAP GUILEC ice-9/vlist.go BOOTSTRAP GUILEC srfi/srfi-1.go Thread 1 received signal SIGSEGV, Segmentation fault. [Switching to Thread 7444.0x2640] 0x000000055a8b1b25 in scm_to_uint64 (val=val@entry=0xffffffffffffff90) at ../../guile-3.0.0/libguile/conv-uinteger.i.c:44 44 else if (SCM_BIGP (val)) (gdb) bt #0 0x000000055a8b1b25 in scm_to_uint64 (val=val@entry=0xffffffffffffff90) at ../../guile-3.0.0/libguile/conv-uinteger.i.c:44 #1 0x000000055a86b1ea in scm_bytevector_copy_x (source=0x700000948620, source_start=0x34964a, target=0x700000907600, target_start=0x2, len=0xffffffffffffff90) at ../../guile-3.0.0/libguile/bytevectors.c:604 #2 0x00006ffffe743866 in ?? () Backtrace stopped: previous frame inner to this frame (corrupt stack?) BOOTSTRAP GUILEC language/tree-il.go (gdb) bt #0 0x000000055a8b1b25 in scm_to_uint64 (val=val@entry=0xffffffffffffff90) at ../../guile-3.0.0/libguile/conv-uinteger.i.c:44 #1 0x000000055a86b1ea in scm_bytevector_copy_x (source=0x70000055f160, source_start=0x34964a, target=0x700000808c90, target_start=0x2, len=0xffffffffffffff90) at ../../guile-3.0.0/libguile/bytevectors.c:604 #2 0x00006ffffe73f936 in ?? () Backtrace stopped: previous frame inner to this frame (corrupt stack?) BOOTSTRAP GUILEC language/tree-il/analyze.go (gdb) bt #0 0x000000055a8b1b25 in scm_to_uint64 (val=val@entry=0xffffffffffffff90) at ../../guile-3.0.0/libguile/conv-uinteger.i.c:44 #1 0x000000055a86b1ea in scm_bytevector_copy_x (source=0x700000645160, source_start=0x34964a, target=0x7000008012d0, target_start=0x2, len=0xffffffffffffff90) at ../../guile-3.0.0/libguile/bytevectors.c:604 #2 0x00006ffffe753fc6 in ?? () Backtrace stopped: previous frame inner to this frame (corrupt stack?) ^C #v- s From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 05 16:11:23 2020 Received: (at 39118) by debbugs.gnu.org; 5 Feb 2020 21:11:23 +0000 Received: from localhost ([127.0.0.1]:46867 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1izRxC-0008Px-TS for submit@debbugs.gnu.org; Wed, 05 Feb 2020 16:11:23 -0500 Received: from mail-qk1-f196.google.com ([209.85.222.196]:34197) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1izRxB-0008Pk-7Z for 39118@debbugs.gnu.org; Wed, 05 Feb 2020 16:11:21 -0500 Received: by mail-qk1-f196.google.com with SMTP id g3so3407811qka.1 for <39118@debbugs.gnu.org>; Wed, 05 Feb 2020 13:11:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ccil-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Rn6K5WGefKdCxlAZ5fQuun6tp4pwMBYMI2kKRaMNOOY=; b=Tpma57ChGrTnNb38l/SbcE/Ots7p4Pjzi8L5nV8Mj6lRHFKs4xasENApPriiTJ6dLx /3LvcZcBwNW7XN6/ezYYWXHW670OCnCfinSCWRASsEY9Uh4cOUv8+8oSFDiCeOMOieV+ g5kkJ3xkDcxn1xP3csmBpjFVTp+6+Xgd1RlBMYvMnU6owdLmFR+ACd/ryJtxkX6eAVqQ SXSEPOG0zmFGnkdiRKuI0g9/rSk3aN5dqXXRtiuRjqS/Om4eJu3g8ReEa2ThguoRjE5P W/xtI2dWdAp9faUteFLKRg0gfwqOb7cATBsIvGfSaNr4CBK7LeFDoLMZ2WZDxI23nsPV q/eQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Rn6K5WGefKdCxlAZ5fQuun6tp4pwMBYMI2kKRaMNOOY=; b=mJXhvNUcGhlj6aWqkukK5vgxCVY3+ijOQlGLtdhwl0Dx0HjCj6afa1RwPxPoaOF+Lh 3XPgOj0Yt9iOOcs3jM+S2j6KKa5+ox/M5a3sNjmA6OsdnJtjltvppaugw14gjotNr96F 2WmdGb+hmGEzeiEs1hwZliaVy4ODTQXsfZyBsWKcXi5IcmnSMYfcNTUyTQOCUO01nnlb Y/OO2jgcOOwhLTgKASjkWc89pgv+qqnJp1TdV2CkXdfczWeW6o3HfCXm9ZgCHz/Ec7GK eTP9IoRUwHZNFCyrDGaP6z+1XCJ6KRsGbAt098uubEoB3dZfeJBxzOcsj+28SiErg6Hy iKXA== X-Gm-Message-State: APjAAAWKLr0NJCu07mchvKPVdRn5VkvVvVrZhlBlvOi3Uor08F8Xu2xJ nz0HXv8DejsIez9z1eBRCob+wua2pKuAcUuT3T9gqQ== X-Google-Smtp-Source: APXvYqwgiUKo782C6lC6JsMYN5IemWAUj07jSvRAuSf9RwgLL7Avs3ncHSTSDvUcmNXiympCsIMR5Bo/iKqUFVQMg4A= X-Received: by 2002:a05:620a:23a:: with SMTP id u26mr34287779qkm.426.1580937075808; Wed, 05 Feb 2020 13:11:15 -0800 (PST) MIME-Version: 1.0 References: <875zh6gk72.fsf_-_@gnu.org> <87sgk9faih.fsf@gnu.org> <871rrpoqql.fsf@gnu.org> <87wo9fbq60.fsf@gnu.org> <20200203221137.GB1659@dtk> In-Reply-To: <20200203221137.GB1659@dtk> From: John Cowan Date: Wed, 5 Feb 2020 16:11:04 -0500 Message-ID: Subject: Re: bug#39118: Segfault while building on 64-bit Cygwin To: szgyg Content-Type: multipart/alternative; boundary="000000000000d0efe8059dda985d" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 39118 Cc: 39118@debbugs.gnu.org, =?UTF-8?Q?Ludovic_Court=C3=A8s?= , guile-devel@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: -1.0 (-) --000000000000d0efe8059dda985d Content-Type: text/plain; charset="UTF-8" On Mon, Feb 3, 2020 at 5:11 PM szgyg wrote: On Fri, Jan 31, 2020 at 09:23:19AM -0500, John Cowan wrote: > > Aaaand... Cygwin doesn't do core dumps. Under the skin it's WIndows, > after > > all. This is what I get when I specify ulimit -c unlimited and rebuild: > > [...] > > Please see my previous mail on how to get a real core dump on cygwin > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=39118#28 Okay, I looked at that page. However, Cygwin's dumper requires you to know the Windows PID of the process to dump. Clearly it is intended for a long-running process such as a server process, which you can force to core dump, as if by "/bin/kill -SIGSEGV pid"; it is not suitable for a process that gets a segmentation violation for internal reasons. In any case, when building, I have no idea of the pid of the process which is dumping; it starts up and then dumps immediately. John Cowan http://vrici.lojban.org/~cowan cowan@ccil.org The Penguin shall hunt and devour all that is crufty, gnarly and bogacious; all code which wriggles like spaghetti, or is infested with blighting creatures, or is bound by grave and perilous Licences shall it capture. And in capturing shall it replicate, and in replicating shall it document, and in documentation shall it bring freedom, serenity and most cool froodiness to the earth and all who code therein. --Gospel of Tux --000000000000d0efe8059dda985d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Mon, Feb 3, 2020 at 5:11 PM szgyg = <szgyg@ludens.elte.hu> wr= ote:

On Fri, Jan 31, 2020 at 09:23:19AM -05= 00, John Cowan wrote:
> Aaaand... Cygwin doesn't do core dumps. Under the skin it's WI= ndows, after
> all.=C2=A0 This is what I get when I specify ulimit -c unlimited and r= ebuild:
> [...]

Please see my previous mail on how to get a real core dump on cygwin
https://debbugs.gnu.org/cgi/bugreport.cgi?bu= g=3D39118#28

Okay, I looked at that pag= e.=C2=A0 However, Cygwin's dumper requires you to know the Windows PID = of the process to dump.=C2=A0 Clearly it is intended for a long-running pro= cess such as a server process, which you can force to core dump, as if by &= quot;/bin/kill -SIGSEGV pid"; it is not suitable for a process that ge= ts a segmentation violation for internal reasons.=C2=A0 In any case, when b= uilding, I have no idea of the pid of the process which is dumping; it star= ts up and then dumps immediately.


<= br>
John Cowan =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0http://vrici.lojban.org/~cowan =C2=A0 =C2=A0= =C2=A0 =C2=A0cowan@ccil.org
The P= enguin shall hunt and devour all that is crufty, gnarly and
bogacious; a= ll code which wriggles like spaghetti, or is infested with
blighting cre= atures, or is bound by grave and perilous Licences shall it
capture.=C2= =A0 And in capturing shall it replicate, and in replicating shall
it doc= ument, and in documentation shall it bring freedom, serenity and
most co= ol froodiness to the earth and all who code therein. =C2=A0--Gospel of Tux<= br>

--000000000000d0efe8059dda985d-- From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 05 17:43:03 2020 Received: (at 39118) by debbugs.gnu.org; 5 Feb 2020 22:43:03 +0000 Received: from localhost ([127.0.0.1]:46931 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1izTNv-00028G-5a for submit@debbugs.gnu.org; Wed, 05 Feb 2020 17:43:03 -0500 Received: from mx2.mail.elte.hu ([157.181.151.9]:55313) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1izTNt-00027r-Nw for 39118@debbugs.gnu.org; Wed, 05 Feb 2020 17:43:02 -0500 Received: from mailbox1.caesar.elte.hu ([157.181.151.157]) by mx2.mail.elte.hu with esmtp (Exim) id 1izTNp-0006fX-Q5 from ; Wed, 05 Feb 2020 23:42:59 +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 1izTNp-0005C8-2X; Wed, 05 Feb 2020 23:42:57 +0100 Date: Wed, 5 Feb 2020 23:42:50 +0100 From: szgyg To: John Cowan Subject: Re: bug#39118: Segfault while building on 64-bit Cygwin Message-ID: <20200205224249.GC1659@dtk> References: <87sgk9faih.fsf@gnu.org> <871rrpoqql.fsf@gnu.org> <87wo9fbq60.fsf@gnu.org> <20200203221137.GB1659@dtk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.0 (2017-09-02) X-ELTE-SpamScore: -6.1 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 3.0 X-ELTE-SpamCheck-Details: score=-6.1 required=5.0 tests=ALL_TRUSTED, BAYES_00, L_AUTH autolearn=ham autolearn_force=no SpamAssassin version=3.4.2 -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -5.0 L_AUTH Caesar auth -0.1 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 39118 Cc: 39118@debbugs.gnu.org, guile-devel@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: -1.7 (-) On Wed, Feb 05, 2020 at 04:11:04PM -0500, John Cowan wrote: > On Mon, Feb 3, 2020 at 5:11 PM szgyg wrote: > > On Fri, Jan 31, 2020 at 09:23:19AM -0500, John Cowan wrote: > > > Aaaand... Cygwin doesn't do core dumps. Under the skin it's WIndows, > > after > > > all. This is what I get when I specify ulimit -c unlimited and rebuild: > > > [...] > > > > Please see my previous mail on how to get a real core dump on cygwin > > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=39118#28 > > > Okay, I looked at that page. However, Cygwin's dumper requires you to know > the Windows PID of the process to dump. Clearly it is intended for a > long-running process such as a server process, which you can force to core > dump, as if by "/bin/kill -SIGSEGV pid"; it is not suitable for a process > that gets a segmentation violation for internal reasons. In any case, when > building, I have no idea of the pid of the process which is dumping; it > starts up and then dumps immediately. | One common way to use dumper is to plug it into cygwin's Just-In-Time | debugging facility by adding | error_start=x:\path\to\dumper.exe | to the CYGWIN environment variable. Please note that x:\path\to\dumper.exe | is Windows-style and not cygwin path. If error_start is set this way, then | dumper will be started whenever some program encounters a fatal error. s From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 06 05:53:30 2020 Received: (at 39118) by debbugs.gnu.org; 6 Feb 2020 10:53:30 +0000 Received: from localhost ([127.0.0.1]:47079 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1izemo-0002Tb-FI for submit@debbugs.gnu.org; Thu, 06 Feb 2020 05:53:30 -0500 Received: from fanzine.igalia.com ([178.60.130.6]:37326) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1izeml-0002TN-Pv for 39118@debbugs.gnu.org; Thu, 06 Feb 2020 05:53:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:References:Subject:Cc:To:From; bh=K0rrwZWLyXdXZDWBjNfQK/jWJLMsZUhBCowHie4egYQ=; b=T+spDBthsIrVmarKy1FlteyKcmTqGwUzePdG9v8ntKB8GDJLv7mADiD+QAEBDQl86uOde9SuYs4F69CyLPdajZyNGpLriQ7qVTl8Zj0cUcj81F/Hx+hNZjd01oreCozdgukLjEeJ98kx8/q8zk/adVvgtMLruGLScOBrqly4S1PSrC/yqtJXMq54ru3FGrCSt/LW07mx7LVxTSe+N5+UhYuYL9E8WB0Cfpj4Ht6G1HPtRLd5OIVkgQ4pNue/Yx1QFiStYF2AxTD8/UK22byRioMGFBNUnyMPF6GDlYGyY9EUUyrBbNThbwg1Bx0HKNuTwISGYEAWIyXJhLv3YVo+FA==; Received: from lfbn-ann-1-376-195.w86-200.abo.wanadoo.fr ([86.200.91.195] helo=sparrow) by fanzine.igalia.com with esmtpsa (Cipher TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim) id 1izeme-0005HX-Es; Thu, 06 Feb 2020 11:53:20 +0100 From: Andy Wingo To: Mike Gran Subject: Re: Segfault while building on 64-bit Cygwin References: <87zherlphs.fsf@pobox.com> <875zh6gk72.fsf_-_@gnu.org> <20200120172253.GA1112065@spikycactus.com> Date: Thu, 06 Feb 2020 11:53:10 +0100 In-Reply-To: <20200120172253.GA1112065@spikycactus.com> (Mike Gran's message of "Mon, 20 Jan 2020 09:22:53 -0800") Message-ID: <87wo90kmw9.fsf@pobox.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 39118 Cc: 39118@debbugs.gnu.org, Ludovic =?utf-8?Q?Court=C3=A8s?= , John Cowan , guile-devel@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.3 (/) On Mon 20 Jan 2020 18:22, Mike Gran writes: > On Mon, Jan 20, 2020 at 11:38:35AM -0500, John Cowan wrote: >> Yes, gladly, but I don't know how to get one in this context. Do I need to >> add some flags to the Makefile, and if so, where? (It's a twisty maze of >> passages, all different.) . Note that this *is* a build with JIT enabled; >> when I disable it using the env variable, there are no errors and 3.0.0 >> works fine. >> >> Also, it may take some time, as I have to rebuild my Windows system. > > I also tried building Guile 3.0.0 on Cygwin 3.1.x. The failure comes from > trying to parse compiled .go files. > > The last time that I had this sort of problem, it was because the > O_BINARY flag was dropped or missing when writing .go files, leading > to CR+LF characters in the compiled files. And I diagnosed it by > byte-comparing Linux-compiled .go files with Cygwin-compiled .go > files, and by looking for CR+LF combinations in the compiled .go > files. > > I don't know if that is what is happening here, but, I'll check that > next time I have a chance. Given that John said that compilation went fine with GUILE_JIT_THRESHOLD=-1, I think perhaps this problem may have been fixed in the past. My suspicions are that this issue is an ABI issue with lightening that could perhaps be reproduced by: git co https://gitlab.com/wingo/lightening cd lightening make -C tests test-native Of course any additional confirmation is useful and welcome! Cheers, Andy From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 07 00:15:09 2020 Received: (at 39118) by debbugs.gnu.org; 7 Feb 2020 05:15:09 +0000 Received: from localhost ([127.0.0.1]:48809 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1izvyv-00039H-0j for submit@debbugs.gnu.org; Fri, 07 Feb 2020 00:15:09 -0500 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:47097) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1izvhA-0002he-2H for 39118@debbugs.gnu.org; Thu, 06 Feb 2020 23:56:48 -0500 X-Originating-IP: 209.85.208.176 Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com [209.85.208.176]) (Authenticated sender: charles@stanho.pe) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 7788120005 for <39118@debbugs.gnu.org>; Fri, 7 Feb 2020 04:56:45 +0000 (UTC) Received: by mail-lj1-f176.google.com with SMTP id f25so667375ljg.12 for <39118@debbugs.gnu.org>; Thu, 06 Feb 2020 20:56:45 -0800 (PST) X-Gm-Message-State: APjAAAXW/igaOS3ospNnhfVTM52lRbbGQGTWYxld14FngGrzRlIQxaUI kay3trX9COLsjUEf0n/z7E7z6tGKcuOkpd043YOKag== X-Google-Smtp-Source: APXvYqw+j2zFsdGEHA2eaDqeVQ+9dNoiYAXbJGv8Oz4rAIm2RncQ+GczkacvAmxhg6AHm+H2WDvktfN3Uu4SPOW3oe8= X-Received: by 2002:a2e:9744:: with SMTP id f4mr4275946ljj.267.1581051404983; Thu, 06 Feb 2020 20:56:44 -0800 (PST) MIME-Version: 1.0 Received: by 2002:ab3:6883:0:0:0:0:0 with HTTP; Thu, 6 Feb 2020 20:56:44 -0800 (PST) X-Originating-IP: [50.45.151.166] In-Reply-To: <87wo90kmw9.fsf@pobox.com> References: <87zherlphs.fsf@pobox.com> <875zh6gk72.fsf_-_@gnu.org> <20200120172253.GA1112065@spikycactus.com> <87wo90kmw9.fsf@pobox.com> From: Charles Stanhope Date: Thu, 6 Feb 2020 20:56:44 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Segfault while building on 64-bit Cygwin To: Andy Wingo Content-Type: text/plain; charset="UTF-8" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 39118 X-Mailman-Approved-At: Fri, 07 Feb 2020 00:15:06 -0500 Cc: 39118@debbugs.gnu.org, =?UTF-8?Q?Ludovic_Court=C3=A8s?= , John Cowan , guile-devel@gnu.org, Mike Gran 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: -1.7 (-) On 2/6/20, Andy Wingo wrote: > Given that John said that compilation went fine with > GUILE_JIT_THRESHOLD=-1, I think perhaps this problem may have been fixed > in the past. My suspicions are that this issue is an ABI issue with > lightening that could perhaps be reproduced by: > > git co https://gitlab.com/wingo/lightening > cd lightening > make -C tests test-native > > Of course any additional confirmation is useful and welcome! I haven't been able to get guile to compile under Cygwin (just a compilation error I haven't had time to track down), but I was able to quickly try the above. I get: Testing: test-native-call_10 call_10.c:9: assertion failed: e == 4 /bin/sh: line 1: 7063 Aborted (core dumped) ./$test make: *** [Makefile:31: test-native] Error 134 Despite what it says about a core dump, I find no such thing. Just a file with the same name as the executable suffixed with ".stackdump". (I did attempt to configure the Cygwin dumper before running the tests.) Unless somebody suggests otherwise, I think the error message is more useful. -- Charles From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 14 12:46:10 2020 Received: (at 39118) by debbugs.gnu.org; 14 Feb 2020 17:46:11 +0000 Received: from localhost ([127.0.0.1]:34645 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j2f2Y-0006EH-H5 for submit@debbugs.gnu.org; Fri, 14 Feb 2020 12:46:10 -0500 Received: from relay11.mail.gandi.net ([217.70.178.231]:52603) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j2f2W-0006E9-J5 for 39118@debbugs.gnu.org; Fri, 14 Feb 2020 12:46:09 -0500 Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) (Authenticated sender: charles@stanho.pe) by relay11.mail.gandi.net (Postfix) with ESMTPSA id CD917100004 for <39118@debbugs.gnu.org>; Fri, 14 Feb 2020 17:46:06 +0000 (UTC) Received: by mail-lf1-f43.google.com with SMTP id r14so7302322lfm.5 for <39118@debbugs.gnu.org>; Fri, 14 Feb 2020 09:46:06 -0800 (PST) X-Gm-Message-State: APjAAAUOt09S82tE26s3q9G9Hcrmsg/68peMwG4z7GrntyEYx15NEh1u cCwRNWu0XiEWT5Yq/p1dVVwzWVWNSR4X9j2PW2j8/Q== X-Google-Smtp-Source: APXvYqyLcyhTaW5VEOz02AZCgv1mMwA4m54W6TmECKQzSbh9yUkOl8lM/zGUT2dp8bKdzx14slIHeuAncHKkQeQ1lKQ= X-Received: by 2002:ac2:4a91:: with SMTP id l17mr2216891lfp.75.1581702365898; Fri, 14 Feb 2020 09:46:05 -0800 (PST) MIME-Version: 1.0 Received: by 2002:ab3:6883:0:0:0:0:0 with HTTP; Fri, 14 Feb 2020 09:46:04 -0800 (PST) X-Originating-IP: [50.45.151.166] In-Reply-To: References: <87zherlphs.fsf@pobox.com> <875zh6gk72.fsf_-_@gnu.org> <20200120172253.GA1112065@spikycactus.com> <87wo90kmw9.fsf@pobox.com> From: Charles Stanhope Date: Fri, 14 Feb 2020 09:46:04 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Segfault while building on 64-bit Cygwin To: Andy Wingo Content-Type: multipart/mixed; boundary="000000000000a91504059e8cc7c2" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 39118 Cc: 39118@debbugs.gnu.org, =?UTF-8?Q?Ludovic_Court=C3=A8s?= , John Cowan , guile-devel@gnu.org, Mike Gran 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: -1.7 (-) --000000000000a91504059e8cc7c2 Content-Type: text/plain; charset="UTF-8" On 2/6/20, Charles Stanhope wrote: > On 2/6/20, Andy Wingo wrote: > >> Given that John said that compilation went fine with >> GUILE_JIT_THRESHOLD=-1, I think perhaps this problem may have been fixed >> in the past. My suspicions are that this issue is an ABI issue with >> lightening that could perhaps be reproduced by: >> >> git co https://gitlab.com/wingo/lightening >> cd lightening >> make -C tests test-native >> >> Of course any additional confirmation is useful and welcome! > > I haven't been able to get guile to compile under Cygwin (just a > compilation error I haven't had time to track down), but I was able to > quickly try the above. I get: > > Testing: test-native-call_10 > call_10.c:9: assertion failed: e == 4 > /bin/sh: line 1: 7063 Aborted (core dumped) ./$test > make: *** [Makefile:31: test-native] Error 134 > Andy, I don't know if you'd want to continue this here or on lightening's gitlab page, but I looked into this a little bit a few minutes here and there this past weeek. The x86 "fast-call" calling convention used on Windows x64[0] and shared by Cygwin[1] requires that the caller reserve 32 bytes of memory on the stack for the callee to spill the register parameters (even if the callee takes fewer than four parameters). I think lightening is currently missing that for the x64 case for Cygwin. To test the idea, I made a small modification (patch attached) that is *not* intended as a solution as it doesn't work for the general case, but it does allow the tests to pass on Cygwin 64. [0] https://docs.microsoft.com/en-us/cpp/build/x64-calling-convention?view=vs-2019 [1] https://cygwin.com/cygwin-ug-net/programming.html#gcc-64 -- Charles --000000000000a91504059e8cc7c2 Content-Type: text/x-patch; charset="US-ASCII"; name="x86-fastcall-stack-reservation.patch" Content-Disposition: attachment; filename="x86-fastcall-stack-reservation.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: file1 ZGlmZiAtLWdpdCBhL2xpZ2h0ZW5pbmcveDg2LmMgYi9saWdodGVuaW5nL3g4Ni5jCmluZGV4IDk2 NTE5MWEuLjkxYjNhOTQgMTAwNjQ0Ci0tLSBhL2xpZ2h0ZW5pbmcveDg2LmMKKysrIGIvbGlnaHRl bmluZy94ODYuYwpAQCAtMzM4LDExICszMzgsMTMgQEAgbmV4dF9hYmlfYXJnKHN0cnVjdCBhYmlf YXJnX2l0ZXJhdG9yICppdGVyLCBqaXRfb3BlcmFuZF90ICphcmcpCiAgIGlmIChpc19ncHJfYXJn KGFiaSkgJiYgaXRlci0+Z3ByX2lkeCA8IGFiaV9ncHJfYXJnX2NvdW50KSB7CiAgICAgKmFyZyA9 IGppdF9vcGVyYW5kX2dwciAoYWJpLCBhYmlfZ3ByX2FyZ3NbaXRlci0+Z3ByX2lkeCsrXSk7CiAj aWZkZWYgX19DWUdXSU5fXworICAgIGl0ZXItPnN0YWNrX3NpemUgKz0gODsKICAgICBpdGVyLT5m cHJfaWR4Kys7CiAjZW5kaWYKICAgfSBlbHNlIGlmIChpc19mcHJfYXJnKGFiaSkgJiYgaXRlci0+ ZnByX2lkeCA8IGFiaV9mcHJfYXJnX2NvdW50KSB7CiAgICAgKmFyZyA9IGppdF9vcGVyYW5kX2Zw ciAoYWJpLCBhYmlfZnByX2FyZ3NbaXRlci0+ZnByX2lkeCsrXSk7CiAjaWZkZWYgX19DWUdXSU5f XworICAgIGl0ZXItPnN0YWNrX3NpemUgKz0gODsKICAgICBpdGVyLT5ncHJfaWR4Kys7CiAjZW5k aWYKICAgfSBlbHNlIHsK --000000000000a91504059e8cc7c2-- From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 16 18:23:52 2020 Received: (at 39118) by debbugs.gnu.org; 16 Feb 2020 23:23:52 +0000 Received: from localhost ([127.0.0.1]:37851 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j3TGS-0002Os-Di for submit@debbugs.gnu.org; Sun, 16 Feb 2020 18:23:52 -0500 Received: from sonic310-25.consmr.mail.ne1.yahoo.com ([66.163.186.206]:38830) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j3TGQ-0002OR-O0 for 39118@debbugs.gnu.org; Sun, 16 Feb 2020 18:23:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1581895425; bh=0G9YEI9qiSTMyGBLJu6c/E9K+yjE8EnBpFoqKxbx1B8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject; b=J8xfdnRg4vn2Z+SBSQbO/LSSluq0jowjHqgt5nYFPhu7dUY9aNpblqYFNqP5SogqTjniHm3daKt5NfSF8OP1jING2qRPB2TriniTMTdN8VXcFcwYgQ1EYdNVJCGF3LSAm5ZRxiknJ/b1dR/6LyIsUjQyyNC1OV+DuMJ7Kt1iXcWInO2d/4Ccqpu1MYQ0z20Cahz15Vr+ei1wJa42R147D5GoK+pb1viEGhuYcP5ib2fB0zRTnDWXQw7Ye7p2m5SrfOkxbiPFrYliwhLVD7iIdSik/tNSfkz3DleZf/9fQXLQ1Hs87zqkNLwbNytJ2GDFyw5dFad9uUABSZ1er8gpFA== X-YMail-OSG: ngNv9icVM1meioG9.t8w645vdTDjUZCk.Nx6hJ8QxALzKPZSrXJObN6Rr6uvcMy jBMVloBw3cVXT7buE4GHNUI._niYkphug4qM2NH3Kg_msEfKEhp6OAB.C89sXJng8TtmC68KwPXx 5_12YLoa1ekfZTWY78uV9_mKboYZxONWSUVJ59Cxg70qW.Ez1gjXu6PXGVDJ.b1Hkxsa5RVujIe4 5T_KU8.PZlBC8QuCMv1ER5Kq0p.K8ljILoZZc2m2j9lqdFZB8BboUW5ncB3CEsgU8vJQDDwUcOuy qp90DW77laTlWvgYqVf8eCDo14vPxjfLFlIm9Yu.AIt5daR4oL7wpAi6oGFVUK8GRmt6eHH6axB4 Ivx4daOVo2MNeJorPdLS_I3z_F3CJMyfohairn_ugmtGrdu7_xgXFhUmr7HgvqSn.Nwr.gMKtN4e PCSjXXCYIPvyv9uvQGYlGj1zGkIB9b3DrPrXeNnSXbhi_bljwrUQ5ZJlkt.Gzz2T_59XBKyePfab Q_WxADaMUgzKXv3uiKb5iOXGWfA2zFbWBzEOXBvJVvs7YstsTJl17o2bXvdeQgebgB95gBXM9i98 s7Uvh9tmkZpI707Zas.9TzGxnqz5GNzlmWY_Uayf06defr40YFbdr9SDkpdXQjyihuBCVXiPJOSb ABPNVZNvBK25GBNUQZFE9PVW31.32Y_0tj5oVib6vFBtnjQ.PFZhVWgq9Bn7UgL2fkw3haH_Z_OO x_BUMRFhpUrJRBW99Mng0Ukuqt0ajdYrF_DoJBqEpZhM0hXRhS9B1MKkUZpfQ1.__Xt_9cXMWZ1f 3Dz46qnSdtfcKGehfvgkKuEzxFzm6V_I3neLx3VliYOhGla.bUU5y6NKWA0ChAb.SVzgP7U5xoQf 5c97HCfvjl30ElO9COXMVn3YUlIHOWdX27YJKxVlE_PcFi4dCHQRAFGn0zJkNbiokhiCbab2KQbn izHtOu3.5b6uLV97XFSzYQL2gwiIv1xNOwxgpI4Nd.JHnffvxFNwI5hmufvzNn5fUyYao07n5GxW .o__D71W0XngCjzCD0vrk8i1elzSbj.Dq074XkVOKUv32cU9L5FTU71PQnsaf6oRx9Xsn5hF7o9a gt_YeSjVNsZUsDIzrintoYlFA1wmBunzjYrYt.7vxuPAgFDXCawhkEnUArLIczfn6sJM_2qVpadt 7.ol0SITq_gT.yMW37MNAhubeSIWATeYZspC0PY_IBJ1.afGym19akEDSu7RgCOXQI6TjdKiiHTV L76Ebp44ngopZnygGYc.nyJYmsiXzYw.E_t1yALpq_LJ5LI3CN92onhRh7bzzyKAZxqoobY5OO54 LopbDxHkgrj8gDXZMU6AtJuKY1rVEv.UdTFhso5z7VygFTIqo09HLGKQmwzz3Jz03qGM.izdYJAM 36iXmLYbwm0TroThoZSqh9HQ89RNSVf7teP9HP8qp0wWk Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.ne1.yahoo.com with HTTP; Sun, 16 Feb 2020 23:23:45 +0000 Received: by smtp420.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID da425b0e979e8cb4e9b6cfdccc49845f; Sun, 16 Feb 2020 23:23:40 +0000 (UTC) Date: Sun, 16 Feb 2020 15:23:34 -0800 From: Mike Gran To: Charles Stanhope Subject: Re: Segfault while building on 64-bit Cygwin Message-ID: <20200216232334.GA2448000@spikycactus.com> References: <87zherlphs.fsf@pobox.com> <875zh6gk72.fsf_-_@gnu.org> <20200120172253.GA1112065@spikycactus.com> <87wo90kmw9.fsf@pobox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Mailer: WebService/1.1.15199 hermes Apache-HttpAsyncClient/4.1.4 (Java/1.8.0_181) Content-Length: 1030 X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 39118 Cc: Andy Wingo , 39118@debbugs.gnu.org, Ludovic =?iso-8859-1?Q?Court=E8s?= , John Cowan , guile-devel@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.7 (/) On Fri, Feb 14, 2020 at 09:46:04AM -0800, Charles Stanhope wrote: > Andy, I don't know if you'd want to continue this here or on > lightening's gitlab page, but I looked into this a little bit a few > minutes here and there this past weeek. The x86 "fast-call" calling > convention used on Windows x64[0] and shared by Cygwin[1] requires > that the caller reserve 32 bytes of memory on the stack for the callee > to spill the register parameters (even if the callee takes fewer than > four parameters). I think lightening is currently missing that for the > x64 case for Cygwin. > > To test the idea, I made a small modification (patch attached) that is > *not* intended as a solution as it doesn't work for the general case, > but it does allow the tests to pass on Cygwin 64. I can confirm that Charles's patch, plus another one line patch to define CPU_SETSIZE, is enough to get Guile 3.0.x to build and run on my box. All tests pass except strptime in French, and the absence of crypt. This is a 64-bit build. -Mike Gran From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 16 18:25:12 2020 Received: (at 39118) by debbugs.gnu.org; 16 Feb 2020 23:25:12 +0000 Received: from localhost ([127.0.0.1]:37858 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j3THk-0002RW-2I for submit@debbugs.gnu.org; Sun, 16 Feb 2020 18:25:12 -0500 Received: from mail-qt1-f173.google.com ([209.85.160.173]:41235) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j3THh-0002RC-N0 for 39118@debbugs.gnu.org; Sun, 16 Feb 2020 18:25:10 -0500 Received: by mail-qt1-f173.google.com with SMTP id l21so10866345qtr.8 for <39118@debbugs.gnu.org>; Sun, 16 Feb 2020 15:25:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ccil-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ZdbLz1OK6TN9uWcddVlYH/lh8P4qnNapeo2TLMR8GL4=; b=WUDBSCncrlhfP5UlJ1Qi3HYZiYZ+UhBleRjjOX6yAzkVVnlP+xKfVMuJYLSIDsQcNB OHcJn0wpznYO2979ozLQo7bHtuQgpShsuLn9IL/2dfPPoFf59POHB7NMKTxMxIZHeZ31 AghnF6owuvbO9Oeerfj9i3o7Dg7htQ1E/BCdiBYzCPPoYX8hen2CEmCNJfzyy1FBBtl1 VzWmcKmd5InVPMqf3eE3qroxrlkp2CmtINBtU0TuTADGt4DaQPgV18Mj5reVm5O5YmIN X8LJn4jfVKvNLVY/PlwuaZ/wcsX/NcaINB0eimhaSe30sLETUrE+rCA3hgM5GnHLDDce xKfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ZdbLz1OK6TN9uWcddVlYH/lh8P4qnNapeo2TLMR8GL4=; b=nPHyVAvR9I/hnxfIghh0Qva4xmt2g6qqzJhbKvnKG2QqLsZxMejH11TVJjUjfNNY5w S94N9x3aFmi8ni3kYraWlxzr4FLhAN2U/moo8ZFVweKLavaLFTVepFO3U/TqjePxeZwg sXuEw0j+rR02FjT4IJMgupbhzh37j68PUlMTEubJ0eC9JygxyNBxV1Ay6oS4yjV+kN8n 2ju7VjZ3SCL/ta6W95VPp/6/fk7nzK8tcZudYoiJQ+actBgnzjctI7yn5Ev5NJxgcmk7 8dniNPqyAc2UNpFsZGLnkx8Vgkf3epqGLX4spyOjeFcH6KVUoL+32YBpEj7OkPLvzWf+ ETPw== X-Gm-Message-State: APjAAAXG0UJ3+dhDxzVfeLGkqc8fN/1wzn6wCe2rgPnduLw3EXNRB0vF TEpJvEPUy2xkodDim3w9LZmNvQ99p6QlsDZu4BJBJA== X-Google-Smtp-Source: APXvYqwq5V24KUE87mosgVHvRIzbCmjQATbhk9Yrq670ngtZNLp2i6heaJTGfIRDNop+/rhAZVejxp3qa/EnMwiM3Mk= X-Received: by 2002:ac8:5410:: with SMTP id b16mr10939281qtq.45.1581895504175; Sun, 16 Feb 2020 15:25:04 -0800 (PST) MIME-Version: 1.0 References: <87zherlphs.fsf@pobox.com> <875zh6gk72.fsf_-_@gnu.org> <20200120172253.GA1112065@spikycactus.com> <87wo90kmw9.fsf@pobox.com> <20200216232334.GA2448000@spikycactus.com> In-Reply-To: <20200216232334.GA2448000@spikycactus.com> From: John Cowan Date: Sun, 16 Feb 2020 18:24:52 -0500 Message-ID: Subject: Re: Segfault while building on 64-bit Cygwin To: Mike Gran Content-Type: multipart/alternative; boundary="000000000000994943059eb9bf12" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 39118 Cc: Andy Wingo , 39118@debbugs.gnu.org, =?UTF-8?Q?Ludovic_Court=C3=A8s?= , guile-devel@gnu.org, Charles Stanhope 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: -1.0 (-) --000000000000994943059eb9bf12 Content-Type: text/plain; charset="UTF-8" Excellent, and thank you all! I've been WIndowsless for a few weeks, but that should change again soon. On Sun, Feb 16, 2020 at 6:23 PM Mike Gran wrote: > On Fri, Feb 14, 2020 at 09:46:04AM -0800, Charles Stanhope wrote: > > Andy, I don't know if you'd want to continue this here or on > > lightening's gitlab page, but I looked into this a little bit a few > > minutes here and there this past weeek. The x86 "fast-call" calling > > convention used on Windows x64[0] and shared by Cygwin[1] requires > > that the caller reserve 32 bytes of memory on the stack for the callee > > to spill the register parameters (even if the callee takes fewer than > > four parameters). I think lightening is currently missing that for the > > x64 case for Cygwin. > > > > To test the idea, I made a small modification (patch attached) that is > > *not* intended as a solution as it doesn't work for the general case, > > but it does allow the tests to pass on Cygwin 64. > > I can confirm that Charles's patch, plus another one line patch > to define CPU_SETSIZE, is enough to get Guile 3.0.x to build and run > on my box. All tests pass except strptime in French, and the absence > of crypt. This is a 64-bit build. > > -Mike Gran > --000000000000994943059eb9bf12 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Excellent, and thank you all!=C2=A0 I've been WIndowsl= ess for a few weeks, but that should change again soon.

On Sun, Feb 16, 2020= at 6:23 PM Mike Gran <spk121@yahoo.= com> wrote:
On Fri, Feb 14, 2020 at 09:46:04AM -0800, Charles Stanhope wrote:
> Andy, I don't know if you'd want to continue this here or on > lightening's gitlab page, but I looked into this a little bit a fe= w
> minutes here and there this past weeek. The x86 "fast-call" = calling
> convention used on Windows x64[0] and shared by Cygwin[1] requires
> that the caller reserve 32 bytes of memory on the stack for the callee=
> to spill the register parameters (even if the callee takes fewer than<= br> > four parameters). I think lightening is currently missing that for the=
> x64 case for Cygwin.
>
> To test the idea, I made a small modification (patch attached) that is=
> *not* intended as a solution as it doesn't work for the general ca= se,
> but it does allow the tests to pass on Cygwin 64.

I can confirm that Charles's patch, plus another one line patch
to define CPU_SETSIZE, is enough to get Guile 3.0.x to build and run
on my box.=C2=A0 All tests pass except strptime in French, and the absence<= br> of crypt.=C2=A0 This is a 64-bit build.

-Mike Gran
--000000000000994943059eb9bf12-- From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 16 20:08:30 2020 Received: (at 39118) by debbugs.gnu.org; 17 Feb 2020 01:08:30 +0000 Received: from localhost ([127.0.0.1]:37873 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j3Uti-00057i-Ce for submit@debbugs.gnu.org; Sun, 16 Feb 2020 20:08:30 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:52089) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j3Utg-00057Z-8A for 39118@debbugs.gnu.org; Sun, 16 Feb 2020 20:08:28 -0500 X-Originating-IP: 209.85.167.52 Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) (Authenticated sender: charles@stanho.pe) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 95D3DE0002 for <39118@debbugs.gnu.org>; Mon, 17 Feb 2020 01:08:26 +0000 (UTC) Received: by mail-lf1-f52.google.com with SMTP id z26so10546009lfg.13 for <39118@debbugs.gnu.org>; Sun, 16 Feb 2020 17:08:26 -0800 (PST) X-Gm-Message-State: APjAAAUmgNUrjvuf8abqgMzLmHj8g/2oBg91Ea2dD0MdRkYVqZRk8r0G lJj+3TX0Sc6ewfnR3c90K9LvN/wtPFnbPoQxWHnzPA== X-Google-Smtp-Source: APXvYqyym6fbUOICiTd2QJEirWm8guCPYJ0EOs/Zl5t/gOWTrPaRzf+QQS2c8ELUjDgU9kBVGLFZ5GQzYtVe7tItBxI= X-Received: by 2002:a19:5504:: with SMTP id n4mr6320721lfe.25.1581901705559; Sun, 16 Feb 2020 17:08:25 -0800 (PST) MIME-Version: 1.0 Received: by 2002:ab3:6883:0:0:0:0:0 with HTTP; Sun, 16 Feb 2020 17:08:25 -0800 (PST) X-Originating-IP: [50.45.151.166] In-Reply-To: <20200216232334.GA2448000@spikycactus.com> References: <87zherlphs.fsf@pobox.com> <875zh6gk72.fsf_-_@gnu.org> <20200120172253.GA1112065@spikycactus.com> <87wo90kmw9.fsf@pobox.com> <20200216232334.GA2448000@spikycactus.com> From: Charles Stanhope Date: Sun, 16 Feb 2020 17:08:25 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Segfault while building on 64-bit Cygwin To: Mike Gran Content-Type: text/plain; charset="UTF-8" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 39118 Cc: Andy Wingo , 39118@debbugs.gnu.org, =?UTF-8?Q?Ludovic_Court=C3=A8s?= , John Cowan , guile-devel@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: -1.7 (-) On 2/16/20, Mike Gran wrote: > On Fri, Feb 14, 2020 at 09:46:04AM -0800, Charles Stanhope wrote: >> Andy, I don't know if you'd want to continue this here or on >> lightening's gitlab page, but I looked into this a little bit a few >> minutes here and there this past weeek. The x86 "fast-call" calling >> convention used on Windows x64[0] and shared by Cygwin[1] requires >> that the caller reserve 32 bytes of memory on the stack for the callee >> to spill the register parameters (even if the callee takes fewer than >> four parameters). I think lightening is currently missing that for the >> x64 case for Cygwin. >> >> To test the idea, I made a small modification (patch attached) that is >> *not* intended as a solution as it doesn't work for the general case, >> but it does allow the tests to pass on Cygwin 64. > > I can confirm that Charles's patch, plus another one line patch > to define CPU_SETSIZE, is enough to get Guile 3.0.x to build and run > on my box. All tests pass except strptime in French, and the absence > of crypt. This is a 64-bit build. Mike, thanks for going further with the Guile build. The CPU_SETSIZE issue was what was hanging me up from compiling before Andy's comment got me to look at lightening. I assumed I had some configuration, package, or compiler issue. Good to know there's a simple fix. Just a further warning to anyone watching, that patch I posted is a real hack job just to test my theory of the cause of the segfault. I would expect it to fail when you have fewer than four arguments in a JITed function call. I wouldn't try doing much else with that Guile build besides run the tests. :) -- Charles From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 17 14:27:48 2020 Received: (at 39118) by debbugs.gnu.org; 17 Feb 2020 19:27:49 +0000 Received: from localhost ([127.0.0.1]:39272 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j3m3Y-0002a9-KI for submit@debbugs.gnu.org; Mon, 17 Feb 2020 14:27:48 -0500 Received: from relay11.mail.gandi.net ([217.70.178.231]:45501) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j3m3V-0002a0-Rz for 39118@debbugs.gnu.org; Mon, 17 Feb 2020 14:27:46 -0500 Received: from mail-lj1-f181.google.com (mail-lj1-f181.google.com [209.85.208.181]) (Authenticated sender: charles@stanho.pe) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 3ABD0100006 for <39118@debbugs.gnu.org>; Mon, 17 Feb 2020 19:27:43 +0000 (UTC) Received: by mail-lj1-f181.google.com with SMTP id w1so20131050ljh.5 for <39118@debbugs.gnu.org>; Mon, 17 Feb 2020 11:27:43 -0800 (PST) X-Gm-Message-State: APjAAAUtG+RotAk77V5YqNS30sxgGVXbu0U4Cxp5wkHH3/o2vlkOkmac xMXj6/wgxOawycVShFfsitRalnM36E96f8R7TT3njA== X-Google-Smtp-Source: APXvYqyW3MJTDlHa0kh+wbNc+P0zdj/Ck+HLyA8odgVqzcp37mOdmZF/Kd+57JKB1qBPP/OSPmrleohFQHjQaOeg528= X-Received: by 2002:a2e:95c4:: with SMTP id y4mr10704057ljh.38.1581967663325; Mon, 17 Feb 2020 11:27:43 -0800 (PST) MIME-Version: 1.0 Received: by 2002:ab3:6883:0:0:0:0:0 with HTTP; Mon, 17 Feb 2020 11:27:42 -0800 (PST) X-Originating-IP: [50.45.151.166] In-Reply-To: References: <87zherlphs.fsf@pobox.com> <875zh6gk72.fsf_-_@gnu.org> <20200120172253.GA1112065@spikycactus.com> <87wo90kmw9.fsf@pobox.com> <20200216232334.GA2448000@spikycactus.com> From: Charles Stanhope Date: Mon, 17 Feb 2020 11:27:42 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Segfault while building on 64-bit Cygwin To: Mike Gran Content-Type: multipart/mixed; boundary="0000000000009e8abe059eca8c53" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 39118 Cc: Andy Wingo , 39118@debbugs.gnu.org, =?UTF-8?Q?Ludovic_Court=C3=A8s?= , John Cowan , guile-devel@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: -1.7 (-) --0000000000009e8abe059eca8c53 Content-Type: text/plain; charset="UTF-8" On 2/16/20, Charles Stanhope wrote: > On 2/16/20, Mike Gran wrote: >> >> I can confirm that Charles's patch, plus another one line patch >> to define CPU_SETSIZE, is enough to get Guile 3.0.x to build and run >> on my box. All tests pass except strptime in French, and the absence >> of crypt. This is a 64-bit build. > > Mike, thanks for going further with the Guile build. The CPU_SETSIZE > issue was what was hanging me up from compiling before Andy's comment > got me to look at lightening. I assumed I had some configuration, > package, or compiler issue. Good to know there's a simple fix. > > Just a further warning to anyone watching, that patch I posted is a > real hack job just to test my theory of the cause of the segfault. I > would expect it to fail when you have fewer than four arguments in a > JITed function call. I wouldn't try doing much else with that Guile > build besides run the tests. :) I had a little bit more time to look into the lightening implementation last night. I've attached a patch that is less horrible and more correct than my previous one. It reserves the stack space regardless of the number of parameters and appears to work. But I'm new to the lightening code base, so I'm not convinced it is the correct solution. It's just the solution I was left with after my time ran out. I wanted to post this patch as a replacement to the prior one in case people did want to do more testing with Guile 3.0 on Cygwin x64. With that, I will let more experienced people come up with the appropriate solution. Happy hacking, everybody! -- Charles --0000000000009e8abe059eca8c53 Content-Type: text/x-patch; charset="US-ASCII"; name="x86-fastcall-stack-reservation-2.patch" Content-Disposition: attachment; filename="x86-fastcall-stack-reservation-2.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: file0 ZGlmZiAtLWdpdCBhL2xpZ2h0ZW5pbmcveDg2LmMgYi9saWdodGVuaW5nL3g4Ni5jCmluZGV4IDk2 NTE5MWEuLmJkZDI2ZTEgMTAwNjQ0Ci0tLSBhL2xpZ2h0ZW5pbmcveDg2LmMKKysrIGIvbGlnaHRl bmluZy94ODYuYwpAQCAtMzI4LDYgKzMyOCwxMCBAQCByZXNldF9hYmlfYXJnX2l0ZXJhdG9yKHN0 cnVjdCBhYmlfYXJnX2l0ZXJhdG9yICppdGVyLCBzaXplX3QgYXJnYywKICAgbWVtc2V0KGl0ZXIs IDAsIHNpemVvZiAqaXRlcik7CiAgIGl0ZXItPmFyZ2MgPSBhcmdjOwogICBpdGVyLT5hcmdzID0g YXJnczsKKyNpZiBfX0NZR1dJTl9fICYmIF9fWDY0CisgIC8vIFJlc2VydmUgc2xvdHMgb24gdGhl IHN0YWNrIGZvciA0IHJlZ2lzdGVyIHBhcmFtZXRlcnMgKDggYnl0ZXMgZWFjaCkuCisgIGl0ZXIt PnN0YWNrX3NpemUgPSAzMjsKKyNlbmRpZgogfQogCiBzdGF0aWMgdm9pZAo= --0000000000009e8abe059eca8c53-- From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 17 16:06:08 2020 Received: (at 39118-done) by debbugs.gnu.org; 17 Feb 2020 21:06:08 +0000 Received: from localhost ([127.0.0.1]:39304 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j3nai-0004x8-HY for submit@debbugs.gnu.org; Mon, 17 Feb 2020 16:06:08 -0500 Received: from fanzine.igalia.com ([178.60.130.6]:46581) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j3nad-0004wc-LX for 39118-done@debbugs.gnu.org; Mon, 17 Feb 2020 16:06:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:References:Subject:Cc:To:From; bh=LxGzCQaKkZA5qfUp7QE4jpDPpH/eripHDjTQ14pVPCc=; b=XqHczwpzVo6tZAMIR17tNaykxM4pc+cyzhbXV/eJEZQSznnVWa4imMYHiSVic3i1DfNRjC9Se/f56Rc7U1quZYe80apO/fCBUCAy5KYJ1y2g4ofaKdj4lO9RzKS+jAiHA53GA/M9h2MKa5IwQDTSkYqFH9n3MOc1FBf/O2ma5aygJd74405L0v94iAUvdafQcamiIJHuiKhRyFn7wvNTiuhidYdjL/I9kThwDzGd/hq8k3VSa+/e1CTFkE5E3nuqhM+ZTg8TkxsCafh1Ch7OBJ0aYPBjkKDcuP7Ux9LbZ1nj/uQRTGghGz0Au3wmsnoh+rhsDbDZORL4rfU5FuEaNA==; Received: from [88.123.12.110] (helo=sparrow) by fanzine.igalia.com with esmtpsa (Cipher TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim) id 1j3naV-0002aV-Ku; Mon, 17 Feb 2020 22:05:55 +0100 From: Andy Wingo To: Charles Stanhope Subject: Re: Segfault while building on 64-bit Cygwin References: <87zherlphs.fsf@pobox.com> <875zh6gk72.fsf_-_@gnu.org> <20200120172253.GA1112065@spikycactus.com> <87wo90kmw9.fsf@pobox.com> <20200216232334.GA2448000@spikycactus.com> Date: Mon, 17 Feb 2020 22:05:45 +0100 In-Reply-To: (Charles Stanhope's message of "Mon, 17 Feb 2020 11:27:42 -0800") Message-ID: <87blpwj55i.fsf@pobox.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 39118-done Cc: John Cowan , Ludovic =?utf-8?Q?Court=C3=A8s?= , 39118-done@debbugs.gnu.org, guile-devel@gnu.org, Mike Gran 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.3 (/) Aah, you all are amazing -- thank you!! Applied and merged. Cheers, Andy On Mon 17 Feb 2020 20:27, Charles Stanhope writes: > On 2/16/20, Charles Stanhope wrote: >> On 2/16/20, Mike Gran wrote: >>> >>> I can confirm that Charles's patch, plus another one line patch >>> to define CPU_SETSIZE, is enough to get Guile 3.0.x to build and run >>> on my box. All tests pass except strptime in French, and the absence >>> of crypt. This is a 64-bit build. >> >> Mike, thanks for going further with the Guile build. The CPU_SETSIZE >> issue was what was hanging me up from compiling before Andy's comment >> got me to look at lightening. I assumed I had some configuration, >> package, or compiler issue. Good to know there's a simple fix. >> >> Just a further warning to anyone watching, that patch I posted is a >> real hack job just to test my theory of the cause of the segfault. I >> would expect it to fail when you have fewer than four arguments in a >> JITed function call. I wouldn't try doing much else with that Guile >> build besides run the tests. :) > > I had a little bit more time to look into the lightening > implementation last night. I've attached a patch that is less horrible > and more correct than my previous one. It reserves the stack space > regardless of the number of parameters and appears to work. But I'm > new to the lightening code base, so I'm not convinced it is the > correct solution. It's just the solution I was left with after my time > ran out. I wanted to post this patch as a replacement to the prior one > in case people did want to do more testing with Guile 3.0 on Cygwin > x64. > > With that, I will let more experienced people come up with the > appropriate solution. Happy hacking, everybody! > > -- > Charles > > diff --git a/lightening/x86.c b/lightening/x86.c > index 965191a..bdd26e1 100644 > --- a/lightening/x86.c > +++ b/lightening/x86.c > @@ -328,6 +328,10 @@ reset_abi_arg_iterator(struct abi_arg_iterator *iter, size_t argc, > memset(iter, 0, sizeof *iter); > iter->argc = argc; > iter->args = args; > +#if __CYGWIN__ && __X64 > + // Reserve slots on the stack for 4 register parameters (8 bytes each). > + iter->stack_size = 32; > +#endif > } > > static void From unknown Fri Jun 13 10:32:03 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 17 Mar 2020 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator