From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lucy.dinwoodie.org (77.116.2.81.in-addr.arpa [81.2.116.77]) by sourceware.org (Postfix) with ESMTPS id D1ED43858C83 for ; Mon, 7 Feb 2022 22:37:22 +0000 (GMT) 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 Received: from adam by lucy.dinwoodie.org with local (Exim 4.94.2) (envelope-from ) id 1nHCdN-0005WP-CM for cygwin@cygwin.com; Mon, 07 Feb 2022 22:37:21 +0000 Date: Mon, 7 Feb 2022 22:37:21 +0000 From: Adam Dinwoodie 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-Type: text/plain; charset=us-ascii 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Feb 2022 22:37:24 -0000 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= 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?