From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by sourceware.org (Postfix) with ESMTPS id 23D413858D28 for ; Tue, 23 Nov 2021 22:36:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 23D413858D28 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-x429.google.com with SMTP id 8so698278pfo.4 for ; Tue, 23 Nov 2021 14:36:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:date:to:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to; bh=4+snORdK47V/BSLn+2CuHIksgBXc64qoNvj9pROsA6w=; b=napEyCGKhkqg/m0ym5CQEsYsjeQ224P3QeArVAi2o60rCeKwoTJYVg6GZFBxWs03z3 W/G07xqy3qxGw4j9vgPRFOPRtgZOKs7yZcJE/JBXI05zWfLTE+X6/mI1s1aBiLPHwSkP URJtnm5u3CiY1KbNxrDtJdP9eBcBBFmLQEfaN5O7L6KootBMpFCmfZ0JmHHvUe8D2MWU 7+D6p1PXLj0vGKFPv5NL3agEYWuT21KA1/nXP6gkwSfKGmPxASCV7llSpV4Q+UDaYD34 iGJR3qAbhoUO87pXuIC3/0V6I5bI2KdHHPDMht6m5eWxiU6fxIdFuK+q5BvqDXmdn7Wc SQ7g== 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:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to; bh=4+snORdK47V/BSLn+2CuHIksgBXc64qoNvj9pROsA6w=; b=Ef/aRw10hAbG8y3dRvQC0xnVP38ez6SbCBVsAkhKudnNOl+jf039w53auGpE0WSdGO okFRWBxtl9WYPLstU75YFRyLVl+Je0IQ1N8GbwHpyXrDMt1IqnjZak2fsMeGeQRNHotP 9vCgU3xajxO9ctJ6GC5f6fGxeckMQrcU8LuQMXI7JltvJu8/nErCFON69BnuTSv1Kmcz rHCfK4s/oFmE9u/6ZHO8s8fKgXEaoDIH7x95eFnwz+CdwDxcpot1mQ3uLc/vjDTv8gX2 j/T6QyCcwf94LfDAoIFea4kpJjxiuHRVWn0Mw3ImXW0bfVcQG6QjZplm3f+DBhxViP4B UxRQ== X-Gm-Message-State: AOAM531lw8hkKU5AnopxGbQp0Qdzsu6SvOw5wVgdjbY8F0wHJOXppqfc gGWVlcXO2VabWnzoD1WuEwyLwFLCwTg= X-Google-Smtp-Source: ABdhPJy48qUc+746CS4JiC8JDmxw9IgnIC8ngCnsN9LQtZ1jOd9zdWIv+Ba3rY6koSL2Ihf/TAd5zw== X-Received: by 2002:a63:8ac8:: with SMTP id y191mr615631pgd.438.1637707014857; Tue, 23 Nov 2021 14:36:54 -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 t135sm9572118pgc.51.2021.11.23.14.36.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Nov 2021 14:36:54 -0800 (PST) Sender: Duncan Roe From: Duncan Roe X-Google-Original-From: Duncan Roe Date: Wed, 24 Nov 2021 09:36:49 +1100 To: cygwin@cygwin.com Subject: Re: raise(-1) has stopped returning an error recently Message-ID: Mail-Followup-To: cygwin@cygwin.com References: <42c9bb90-dd78-edfa-99ff-f65f7e000956@SystematicSw.ab.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42c9bb90-dd78-edfa-99ff-f65f7e000956@SystematicSw.ab.ca> 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 22:36:58 -0000 On Tue, Nov 23, 2021 at 11:18:25AM -0700, Brian Inglis wrote: > On 2021-11-23 02:50, Corinna Vinschen via Cygwin wrote: > > On Nov 23 19:27, Duncan Roe wrote: > > > 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: > > > > > > #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, that fixed it. > > > > Thanks for testing. > > > > > Btw to whoever maintains grep for cygwin: 'make check' should pass on > > > next release (I patched out the surrogate-pair failre). > > I had no problems with test-raise last release. I don't remember having a problem with it even a few weeks ago. > I did with surrogate pairs but after spending too much time on all the test > infrastructure around that, decided it was a low probability event, and wait > until anyone complains to refer it upstream. I wasted time on that too. That's why I patched surrogate-pair to not do its 3rd test if 'uname -s' indicates Cygwin. For the full story, see https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27555#5 > Do Cygwin and/or Windows support surrogate pairs in UTF-8? There are 3 tests in surrogate-pair and only the 3rd one failed. So I guess surrogate pairs in UTF-8 "mostly work". Cheers ... Duncan.