From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: szgyg Newsgroups: gmane.lisp.guile.devel Subject: Re: bug#39118: Segfault while building on 64-bit Cygwin Date: Wed, 5 Feb 2020 23:42:50 +0100 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 Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="67437"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/1.9.0 (2017-09-02) Cc: 39118@debbugs.gnu.org, guile-devel@gnu.org To: John Cowan Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Wed Feb 05 23:43:22 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 1izTOD-000HQ0-PT for guile-devel@m.gmane-mx.org; Wed, 05 Feb 2020 23:43:21 +0100 Original-Received: from localhost ([::1]:57870 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1izTOC-00086I-Qw for guile-devel@m.gmane-mx.org; Wed, 05 Feb 2020 17:43:20 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57101) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1izTNy-00081X-JO for guile-devel@gnu.org; Wed, 05 Feb 2020 17:43:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1izTNx-0003IH-8L for guile-devel@gnu.org; Wed, 05 Feb 2020 17:43:06 -0500 Original-Received: from mx2.mail.elte.hu ([157.181.151.9]:50499) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1izTNx-0002tM-0Z for guile-devel@gnu.org; Wed, 05 Feb 2020 17:43:05 -0500 Original-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 Original-Received: (Authenticated sender: szgyg) by mailbox1.caesar.elte.hu with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1izTNp-0005C8-2X; Wed, 05 Feb 2020 23:42:57 +0100 Content-Disposition: inline In-Reply-To: X-ELTE-SpamScore: -6.1 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-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 157.181.151.9 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:20393 Archived-At: 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