X-Recipient: archive-cygwin@delorie.com
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D1ED43858C83
Authentication-Results: sourceware.org;
 dmarc=none (p=none dis=none) header.from=dinwoodie.org
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=dinwoodie.org
Date: Mon, 7 Feb 2022 22:37:21 +0000
From: Adam Dinwoodie <adam@dinwoodie.org>
To: cygwin@cygwin.com
Subject: Re: Cygwin latest: grep and other self-compiled Cygwin-programs are
 crashing
Message-ID: <20220207223721.iem3u6tsye5i5ajf@lucy.dinwoodie.org>
References: <0a45073e2ce940309b82d74f3baa667a@frims060.wamas.com>
 <97de4ae40364445d92e8b8ed682890d6@frims060.wamas.com>
 <172810776.1509902.1644265991761@webmail.mymagenta.at>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <172810776.1509902.1644265991761@webmail.mymagenta.at>
X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS,
 PDS_RDNS_DYNAMIC_FP, RDNS_DYNAMIC, SPF_HELO_PASS, SPF_PASS, TXREP,
 T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cygwin-bounces+archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>

On Mon, Feb 07, 2022 at 09:33:11PM +0100, Mario wrote:
> Hello,
>  
> With the latest Cygwin-DLL and C/C++ developer packages I am experiencing issues to run self-compiled programs.

Can you give a bit more detail about the issues you're experiencing, and
what the self-compiled programs are that you're experiencing them with?

It'd also be useful to know whether you've been able to compile these
programs previously, and if so, what (if you can tell) has changed about
your environment since they were working.

> I prepared an example using the grep-Package
>  
> grep-3.7-2 from your GIT-repo
> and compiled using "cygport"
>  
> The linked binary grep.exe crashes

I have been able to reproduce a failure compiling the latest grep;
running the below with `v=3.7-2` has the final command fail with a
SIGABRT and the output "grep: program error // Aborted (core dumped)".

```
v=<version>
curl https://www.mirrorservice.org/sites/sourceware.org/pub/cygwin/x86_64/release/grep/grep-"$v"-src.tar.xz | tar -xJ &&
cd grep-"$v".src &&
cygport grep.cygport prep compile install &&
grep-"$v".x86_64/inst/usr/bin/grep.exe grep grep.cygport
```

However, I don't see this with either `v=3.6-1` or `v=3.0-2`, so while
there's clearly something odd going on -- which I expect we'll need Eric
Blake and/or Brian Inglis to weigh in on, as grep co-maintainers -- this
sounds like a different issue, given you seem to be saying what you're
seeing affects anything that you compile yourself.

> It appears to me that there is an issue with threading. Building grep without thread-usage makes it runnable.
>  
> Unfortunately, I didn't get any usable stack-trace.
>  
> Maybe the newer binutils require additional compiler flags, those haven't been provided yet?

-- 
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
