From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by sourceware.org (Postfix) with ESMTPS id 7F3223858405; Tue, 23 Nov 2021 08:27:29 +0000 (GMT) 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 Received: by mail-pf1-x435.google.com with SMTP id 8so18729067pfo.4; Tue, 23 Nov 2021 00:27:29 -0800 (PST) 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) Received: from slk1.local.net (n110-23-108-30.sun3.vic.optusnet.com.au. [110.23.108.30]) by smtp.gmail.com with ESMTPSA id b23sm8196433pgg.73.2021.11.23.00.27.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Nov 2021 00:27:27 -0800 (PST) Sender: Duncan Roe From: Duncan Roe X-Google-Original-From: Duncan Roe Date: Tue, 23 Nov 2021 19:27:23 +1100 To: Corinna Vinschen via Cygwin Cc: Corinna Vinschen Subject: Re: raise(-1) has stopped returning an error recently Message-ID: Mail-Followup-To: Corinna Vinschen via Cygwin , Corinna Vinschen References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Nov 2021 08:27:31 -0000 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 > > > #include > > > > > > 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.