X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 07D51385841F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1637586472; bh=RCUfNwFaLTEdxJAlOih4Q1y/GdBY05Hh5VNnXuCjWQQ=; h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=BkfDA4NZ9EYlPe1HUpIDddkcft98yJCo9G2tpPnQ64rBAmTUMInZJYcoW7rjgsxn3 TFwxGb+cUYMMI8t/o7PugeuHx2Nv5XqZxaAcFERgSutSPb5dWXlMxyVz4Pb7ZGgu5L MwdDjS09GCwCsJMZnMEmu37fvUCbIJosYLL00H1E= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 94589385841F Date: Mon, 22 Nov 2021 14:06:19 +0100 To: cygwin AT cygwin DOT com Subject: Re: raise(-1) has stopped returning an error recently Message-ID: Mail-Followup-To: cygwin AT cygwin DOT com References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Provags-ID: V03:K1:eP63dL4IRga6v3Zqc4BJ4rAcQh8XoKDP/V76xTj/VlI7MIC+rcN 6T2Y3o0okiOZxWCWV6p/ktF0a0YlV/DJxxYLSdKIkp/Ev1x8/LHW/l7wwFlOGGLrriqxEt0 ORqohMS1Py5cHMMliTXQfikPUbY0DECFaVypJpBVWrLV+BkXRAuqPDdI6SeVF1Hu4kxKZQ4 40lAtp/DzpjhKE14reOdg== X-UI-Out-Filterresults: notjunk:1;V03:K0:8rjHeegh2TI=:6k5W1UZLo7cCe/WezayRfV Idb1f3/1v6J6Z39w7YXIpWpvPDYxPBQWcM20BN06yCyADU701xmZcAOmD13lbgVsSaSlVllt3 uDlNG8ePzgZLzuSfwSV1HzU20Z8iVi/JOYf21dggkxNnJIFRCHUTw2Otz9RQJiO5xKUcJxXN+ Q0H/SBvnJKsr4fuB8tnBYQGd6dedryk0CZgAdfCD00iiZ+fw+jcO5HyOw8J9E/I9MolUXpvGV 6fPiG53aH0bAkQFXLa291F6eSbEs6c8LbWATK5lqnICtjEmvs/ZLVLJuVT8Ajfb09QUQbafXQ EtC5XdxCWqAj2FAXACf+N2S524qNMKEigWjSOwRPgwhHxklzvHm3O1cWa6qQhdXiy07KbOoNN 5YFYM/CK9QRfOxnvYv1vBXfVtv8uxSkwpcvX/H1RejnBTY+jf1acafQqZPWqeP2UFZMKJ60Me sNlz6afBzRzKeRqrMJkylnDs29U98gXSOxA8MwlB7ag6j2p3JugyuDTPx1eSxMTYUVKXGLVrg jtIAksmxiR9LMLeTMQ2dRdHe5gGu0QuZCDbG20B4UqyLQHTUmyBrt3cA1TzNsnmiSTnIzR0VS UdkcsMrsVckwS8e4QH3H6hHhpfXZAox2yQsF8VdV0CF43NChaD0tJ9ph2MzmT5eNDpJ3r5q+4 oQwIiG+qMX0LZ9u7A60su4VmFDwm3HrTK3F/vxom3rd5ahPykDgRXynp/3ksxLKUqOpNPCxg8 yQ5xYsTv+PxDdnUW X-Spam-Status: No, score=-99.4 required=5.0 tests=BAYES_00, GOOD_FROM_CORINNA_CYGWIN, KAM_DMARC_NONE, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NEUTRAL, TXREP autolearn=ham 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 AT cygwin DOT 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: , From: Corinna Vinschen via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Corinna Vinschen Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" 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 -- 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