From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.134]) by sourceware.org (Postfix) with ESMTPS id EC317385ED4A for ; Mon, 31 Aug 2020 07:31:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org EC317385ED4A Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=cygwin.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=corinna-cygwin@cygwin.com Received: from calimero.vinschen.de ([217.91.18.234]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MeToK-1kkbaM2Hx6-00aYi4; Mon, 31 Aug 2020 09:31:02 +0200 Received: by calimero.vinschen.de (Postfix, from userid 500) id BCD75A83A7D; Mon, 31 Aug 2020 09:31:01 +0200 (CEST) Date: Mon, 31 Aug 2020 09:31:01 +0200 From: Corinna Vinschen To: Kurt-Karen Carlson-Lougheed Cc: cygwin@cygwin.com Subject: Re: cygwin qsort erratic Message-ID: <20200831073101.GS3272@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: Kurt-Karen Carlson-Lougheed , cygwin@cygwin.com References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Provags-ID: V03:K1:IfXlJVnxHS5UAgci2TyD7bZY0MEXC3qokQeoR0tjm8EF+whBzvp s/hiqO4u41TX9GFKOy2oIcMSGRIPaUu0bu7HiB1NfOVYgRor8e5TjJwosBocImRtQGw2OnJ dTGz1aPtZ1y/TJQXIDJn1fFnI8JTk+zamWK5BkeNCE1lEPQKYvo5or5EGTEEc5r1dUimRwF tMpOH5j6gqc2f8svkX7EQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:dAztQwI8joI=:3lekQ5kMkn5tUSZtv/9gKv s986uWfnVTlRbqgYK0y3J2qO5sJOgArZSr5TVo5IIbAwczvsgqBYx2leQeet6/5/HPwKYvG79 KRlSjFSpPGnPqsvNEKzIbin7YC4EpZFdYaGsvjghR2vovZUYwtHyJDtBvHVGlUercWLc47sGH VYm4obiTQXtHHPlMCCzFPYnKxftyKMf8EnnWA8EFj6U+UhfjCAiUzDFbEjoEKP+1sRG/Bm9Ct kBlBrrwyG32RsrYtUCHU/LD4u9MbC8mC70S4XujjZUriu0XVUHpNAh1H88cN6GJjN0ApWFJ7s LKEYef3cbI2XOhCmKoR8HU8S1s/C3wMNXFNY2iQNEaZwn9BcOFXDmgNsT5MnSCeFqHEmB5wwd Y8ZxtY1AXzxSVM8kzufPoP3GdAKjUQRHxcVJ4gDdzfqjVRwybulbW10aUfHubsnG64WbGhX+c dowxezeK2qJyKeKLIJ3+P30wysN/qqzL0AvQN8eufVBqDvUWJ4ISSprr+otcCEtiNrdxlWuBo rgz/UEGo8bZ3aIby171/Pxd9twS19sRNC6OWWxZDIQ5pL81GEvTFyBuObM7b15lXN276AuXqa XNZT0Ck+JHw2wVeXltUjBOm5nYRW/c/mUwZWQtuNMURogDbGj7TKZlzeF11cyjYnPWzEzbiHY h4D3QzbMlqk0dyNYIN2XvytGmP2gt0pQbk0OVIKkr1P05OFh5xeeUI5aq8WtZ8H4VrM/YggOF NKhrFtU2e0cOiI2oFPPsC6ONmVzIhvcddAU4qdKD0Q1lPdubFY6hUkz0HAnCiRyH3ClxrUFZu Z1uM5t9mjVzCFeMcVR+XnFO2E7wPo0clvn8Px+kFHN6onVKmFZ7ONOkFUOj+kcSvEFPV/H32i NpTiRVn83HK8GqLMdsKw== X-Spam-Status: No, score=-100.3 required=5.0 tests=BAYES_00, GOOD_FROM_CORINNA_CYGWIN, JMQ_SPF_NEUTRAL, 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.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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, 31 Aug 2020 07:31:08 -0000 On Aug 30 14:27, Kurt-Karen Carlson-Lougheed via Cygwin wrote: > In a small percentage of qsort requests, the results are erratic. Running > the same code under Linux (RHEL7) does NOT have this problem. I updated my > cygwin to current and the problem persists. I copied the latest netbsd.org > qsort.c and compiled into my code, the problem is resolved with that > version of qsort. > > In researching this issue, there was a post to this list 2015-01-11 > reporting a > 'damaged' qsort. This may still be the same issue. The netbsd version I am > now using is dated 2017-05-19. > > My code experiencing this is SourceForge uac19, I'll be posting the > corrected version (v3.2) with the netbsd qsort tomorrow after completing > validation tests. I would ultimately like to see cygwin's qsort fixed. qsort is implemented in newlib, so patches should go to the newlib AT sourceware DOT org mailing list (in `git format-patch' layout). Thanks, Corinna -- Corinna Vinschen Cygwin Maintainer