From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: John Cowan Newsgroups: gmane.lisp.guile.bugs,gmane.lisp.guile.devel Subject: bug#39118: Segfault while building on 64-bit Cygwin Date: Fri, 31 Jan 2020 09:23:19 -0500 Message-ID: References: <87zherlphs.fsf@pobox.com> <875zh6gk72.fsf_-_@gnu.org> <87sgk9faih.fsf@gnu.org> <871rrpoqql.fsf@gnu.org> <87wo9fbq60.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="0000000000005fc43c059d7051a6" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="61481"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 39118@debbugs.gnu.org, guile-devel@gnu.org To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Fri Jan 31 15:24:10 2020 Return-path: Envelope-to: guile-bugs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ixXDN-000Fvi-TA for guile-bugs@m.gmane-mx.org; Fri, 31 Jan 2020 15:24:10 +0100 Original-Received: from localhost ([::1]:53744 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ixXDM-0001AO-VT for guile-bugs@m.gmane-mx.org; Fri, 31 Jan 2020 09:24:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46453) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ixXDH-00016p-HO for bug-guile@gnu.org; Fri, 31 Jan 2020 09:24:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ixXDF-0001gf-Qd for bug-guile@gnu.org; Fri, 31 Jan 2020 09:24:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59041) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ixXDF-0001gZ-N4 for bug-guile@gnu.org; Fri, 31 Jan 2020 09:24:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ixXDF-0001zp-JK for bug-guile@gnu.org; Fri, 31 Jan 2020 09:24:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: John Cowan Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Fri, 31 Jan 2020 14:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39118 X-GNU-PR-Package: guile Original-Received: via spool by 39118-submit@debbugs.gnu.org id=B39118.15804806197641 (code B ref 39118); Fri, 31 Jan 2020 14:24:01 +0000 Original-Received: (at 39118) by debbugs.gnu.org; 31 Jan 2020 14:23:39 +0000 Original-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 Original-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 Original-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) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.io gmane.lisp.guile.bugs:9554 gmane.lisp.guile.devel:20356 Archived-At: --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--