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 7F3223858405
Authentication-Results: sourceware.org; dmarc=none (p=none dis=none)
 header.from=optusnet.com.au
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=sender:from:date:to:cc:subject:message-id:mail-followup-to
 :references:mime-version:content-disposition:in-reply-to;
 bh=ZTGKpykAPevjcndyYChz6dc5tzBru9+u6ckkng4lVO8=;
 b=KV9o6qEIJVTInrP46ePQXkpk3uVhThO9/zVS+YtESwy2OJ0lk2S4JqcZ8VHQin053U
 BRGZkx2vRG+3xXc4SWy2aycRNyIYh3MB1X7Do2hdVtwjHJdRwYxziJ7sqWB+Plm8phkq
 0Y+rkWyHPWgBunxJrfmvhLfVb1Ws/7EsTyizfcDNXtl7rwzQn/gaI7fsnoDIWaHfrpNe
 dkjQEDGWPp1Xq2F/ifAaNqIV89saqjNfui/ke0ZahMm4hJLSWJ4IMXQDY52IKivnlwea
 1Ibkygq0DSpd9haOARJTS4oIi2l6foOVFGsctRRn9UuASWcTzaLAOPmkuz15zmxFQHSF
 Qs6A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:sender:from:date:to:cc:subject:message-id
 :mail-followup-to:references:mime-version:content-disposition
 :in-reply-to;
 bh=ZTGKpykAPevjcndyYChz6dc5tzBru9+u6ckkng4lVO8=;
 b=feaA1MiHeWV2NwophX+G9v0H6bCDtQq95eoNdU5b2QEuFDbPk9JxOToHQPSW1/zwJi
 lKn1ibUg73/EhNn1Gh3eihzzF/g3EFOddn36FkWWmVkqXKfbY1IH++CdpZxWR0HI1Xgy
 mUNp0x1jieZkbixL+g9MyUWSNZ40Wy9pquFfktReRID1bhv9Rqs7NS2W6cb3SM0wkACw
 otoGOjaXkRLZXuQKU3DnAEk0tEA7TtcmqSZMbgrczrdlr/DMNJYYj++t3s2LjKtyiZ1k
 iTxmtS8dolPXeJr0p4dqOP0CPktKc32iFj8BfUjiP9IDshTIfSSTQTdvP2saXymG9Pla
 IMew==
X-Gm-Message-State: AOAM531eJF56E1/NMPwm5UYUfSw5OTVCf35xgCUVcUXySUiB4NYGoQBp
 yQ6J+Dpu8dppbVeeNOe49n4NiMaDrLo=
X-Google-Smtp-Source: ABdhPJwnlhgwHqOUrrD9GWcKa1Izm+f0Cj1gmfnFejbvcQ6jrxnZ+6Z9/31dvV4mrjJSzfu5oXFVvQ==
X-Received: by 2002:a63:6c49:: with SMTP id h70mr2582278pgc.368.1637656048250; 
 Tue, 23 Nov 2021 00:27:28 -0800 (PST)
From: Duncan Roe <duncan_roe@optusnet.com.au>
X-Google-Original-From: Duncan Roe <dunc@slk1.local.net>
Date: Tue, 23 Nov 2021 19:27:23 +1100
To: Corinna Vinschen via Cygwin <cygwin@cygwin.com>
Subject: Re: raise(-1) has stopped returning an error recently
Message-ID: <YZyl69ODRcBVnMed@slk1.local.net>
Mail-Followup-To: Corinna Vinschen via Cygwin <cygwin@cygwin.com>,
 Corinna Vinschen <corinna-cygwin@cygwin.com>
References: <YZsoj6UvpF6pcbtt@slk1.local.net>
 <YZtwMZ1LUbx+b5+s@calimero.vinschen.de>
 <YZuVy5+nbzPtiqdw@calimero.vinschen.de>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <YZuVy5+nbzPtiqdw@calimero.vinschen.de>
X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT,
 FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,
 RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS,
 TXREP 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>
Cc: Corinna Vinschen <corinna-cygwin@cygwin.com>
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, Nov 22, 2021 at 02:06:19PM +0100, cygwin wrote:
> On Nov 22 11:25, Corinna Vinschen via Cygwin wrote:
> > On Nov 22 16:20, Duncan Roe wrote:
> > > Hi,
> > >
> > > I stumbled across this when running 'make check' in the grep source directory.
> > >
> > > test-raise failed when it didn't a few weeks ago.
> >
> > Pretty unlikely.  This code didn;'t change for ages.  I just checked
> > against Cygwin 3.2.0 and it also returns success.
> >
> > > #include <stdio.h>
> > > #include <signal.h>
> > >
> > > int
> > > main (void)
> > > {
> > >   int retcod;
> > >
> > >   retcod = raise (-1);
> > >   printf("raise(-1) returned %d\n", retcod);
> > > }
> >
> > Thanks for the STC.  There are actually two long-standing problems,
> > one in raise, calling pthread_kill even for non-threaded processes,
> > one in pthread_kill, not checking the signal number.
> >
> > I'll patch them right away.
>
> I created a patchset:
> https://sourceware.org/git?p=newlib-cygwin.git;a=commitdiff;h=d54d8f173d66
> https://sourceware.org/git?p=newlib-cygwin.git;a=commitdiff;h=24bffff63eb7
> https://sourceware.org/git?p=newlib-cygwin.git;a=commitdiff;h=afb7c557d2af
>
> Please test the latest developer snapshot from http://cygwin.com/snapshots/
>
>
> Thanks,
> Corinna

Thanks, that fixed it.

Btw to whoever maintains grep for cygwin: 'make check' should pass on
next release (I patched out the surrogate-pair failre).

Cheers ... Duncan.

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