delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/04/17/19:34:35

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org C623D385B835
Authentication-Results: sourceware.org;
dmarc=none (p=none dis=none) header.from=bellsouth.net
Authentication-Results: sourceware.org;
spf=none smtp.mailfrom=worsafe AT bellsouth DOT net
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bellsouth.net; s=s2048;
t=1587166428; bh=T0u4jeIRMDJ0Pv4PkbKiJg68x85IPX/xhQDrdYac/qc=;
h=Subject:To:References:From:Date:In-Reply-To:From:Subject;
b=jlbnY5YoNSY1UeZlz5PvE5WlbRAde8sUH72rQdLoA0iYwe4KGkMUjJVX883HYSSsEGx13e50MgI9Mvv1APE58Asy2WwsuLAvUVt5stFezMOKEx3zfUVknctUxcVR5VMPfi7/mRBpufz8gUvkAWrIsR9wdbu7BNz+Gv1pQjrYYz4OqIyeK50/N38GzPsnEL5DMNCWMZaOWrdkOkjJY45pKialshRjQkOeTAtYd45qFfAp+K4kaTfto/AMaPASN78ddgRNERwbeYZNun2WEAGun3ldK4wI89QWODgwIUXMVfPG8XOZGupYKbhuVfYxeC1Um70kVpPX+r7YqrcezhLKVQ==
X-YMail-OSG: KmoSwBsVM1m1p5yT6CPmsCVW.S.y_jzLMAsaFOX785aljBYIFHYBRvyuzoIX.JP
ggmry5EAZHVDKPr9dB_3N2jC9J1DezrVvqDoLxG9vVDmJkgN0939EUnZRjmOB2orHS.jZwnEa9G.
hw49iTHOuaxx62h.4fwYxvtayUBBebK4WvU982sZ5UpAVQI3GygszlgvE5xEhFtbyQr27YGxsvHk
mC6RvRgaoCem2UMXszskmwWShSNCkV8EBb9DZKfj1MFdXkfHPfqFD7UJXRmcPnCaq7w2YgsHLoja
2eXStJd3lqlO2L2Eg9HTu58hboEkzhZGIo3QZtv7g1bn.r1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C
Subject: Re: cygwin gfortran segfaulting on valid write statements
To: cygwin cygwin <cygwin AT cygwin DOT com>
References: <d04d793a-6c8b-7a11-5a9b-5cda1bb86e50 DOT ref AT bellsouth DOT net>
<d04d793a-6c8b-7a11-5a9b-5cda1bb86e50 AT bellsouth DOT net>
<e7cdd735-aa29-b255-e643-eb35e5f6693d AT SystematicSw DOT ab DOT ca>
From: Charles Russell <worsafe AT bellsouth DOT net>
Message-ID: <af654c15-29f0-144c-9d5b-d49e41713c0b@bellsouth.net>
Date: Fri, 17 Apr 2020 18:33:42 -0500
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101
Thunderbird/68.7.0
MIME-Version: 1.0
In-Reply-To: <e7cdd735-aa29-b255-e643-eb35e5f6693d@SystematicSw.ab.ca>
X-Mailer: WebService/1.1.15651 hermes Apache-HttpAsyncClient/4.1.4
(Java/11.0.6)
X-Spam-Status: No, score=-8.5 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_2,
RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE,
TXREP autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <http://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <http://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

On 4/17/2020 2:46 PM, Brian Inglis wrote:

> Try running under strace:
> 
> 	$ strace -o prog.strace prog -options... args...
> 
> or gdb:
> 
> 	$ gdb prog
> 	(gdb) run -options... args...
> 	SEGV diagnostics
> 	(gdb) bt
> 	(gdb) q
> 
> and attach or paste all output.

The following is the case where I got an error message. Not actually a 
segfault. (Sorry, I'm not a programmer.) The executable, gdb, and strace 
all produce the same output:
-----------
At line 889 of file cgcrez.f (unit = 6, file = 'stdout')
Fortran runtime error: Missing initial left parenthesis in format

^

Error termination. Backtrace:
#0  0xffffffffffffffff in ???
#1  0xffffffffffffffff in ???
#2  0xffffffffffffffff in ???
#3  0xffffffffffffffff in ???
#4  0xffffffffffffffff in ???
#5  0xffffffffffffffff in ???
#6  0xffffffffffffffff in ???
#7  0xffffffffffffffff in ???
#8  0xffffffffffffffff in ???
#9  0xffffffffffffffff in ???
#10  0xffffffffffffffff in ???
#11  0xffffffffffffffff in ???
#12  0xffffffffffffffff in ???
#13  0xffffffffffffffff in ???
--------------
Here is the indicated line, using list mode in vim to show that there 
are no unexpected nonprinting characters:

  887           write(6,'(i6,1p3e9.2,x,e9.2,x,0pf6.3,x,1p2e10.2,''@'')')$
  888      &       iter, reldf,reldb,$
  889      &       gnorms, x1min, -cosag, beta(1),beta(np)$
  890 $

This code compiled and ran on cygwin in the past, and checks out now in 
debian stable.

In my other case, which I may or may not be able to find again, the 
program failed with no explicit error message like the one above. 
Stepping through with gdb showed that it was also crashing in a valid 
write statement.




--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019