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.devel Subject: Re: Segfault while building on 64-bit Cygwin Date: Tue, 21 Jan 2020 16:37:01 -0500 Message-ID: References: <87zherlphs.fsf@pobox.com> <875zh6gk72.fsf_-_@gnu.org> <87sgk9faih.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000f7d757059cad35c1" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="57761"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Andy Wingo , 39118@debbugs.gnu.org, guile-devel@gnu.org To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Tue Jan 21 22:37:27 2020 Return-path: Envelope-to: guile-devel@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 1iu1DC-000Ezf-Tq for guile-devel@m.gmane-mx.org; Tue, 21 Jan 2020 22:37:26 +0100 Original-Received: from localhost ([::1]:33054 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iu1DB-00043L-JU for guile-devel@m.gmane-mx.org; Tue, 21 Jan 2020 16:37:25 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48107) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iu1D0-00043B-RI for guile-devel@gnu.org; Tue, 21 Jan 2020 16:37:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iu1Cz-0006bA-D6 for guile-devel@gnu.org; Tue, 21 Jan 2020 16:37:14 -0500 Original-Received: from mail-qt1-x830.google.com ([2607:f8b0:4864:20::830]:37534) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iu1Cz-0006aq-3z for guile-devel@gnu.org; Tue, 21 Jan 2020 16:37:13 -0500 Original-Received: by mail-qt1-x830.google.com with SMTP id w47so3975326qtk.4 for ; Tue, 21 Jan 2020 13:37:12 -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=ewKFJ/D5JTQBsW+oRsjY+7mf8M04KGmmTRWoG2K6bEPSvIQME8DIwa31tJUQLVYMFR z7cHu8yT4UIZv72TsiChFcIpxRKTdCp0zaKVd9SD3I8dH05zQOklOXcmsnGMnqf1QVqo 6cFuS+OAoXwxUB93Un9Yp8/JwrdkEHihosvG2qTF7gOysfX3bfaFgI0tDZ0ev2FJnPGg KwZXzUopKWGnblBblS/T2WabvHo8pNwc3qc4JRsI5T0PEzv6MC0qFXVzZep6FFFFmp/U RQDLMpwMJvv5b367KRPYW1MIkiVA10r+aDQN/BqNC3nsgSLfDhPh2JM+BMNfcoQgusSG M9KQ== X-Gm-Message-State: APjAAAXurKYOApokw8jc3drmezVtDETZ2GZffkd8u1eQ/K385466rP9j E5NQ5B62rLQfE3Zn8YBmIWrJY9xyiPoGvbGDJU6gIw== 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) In-Reply-To: <87sgk9faih.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::830 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.io gmane.lisp.guile.devel:20320 Archived-At: --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--