From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.131]) by sourceware.org (Postfix) with ESMTPS id B7B5C3851C29 for ; Mon, 31 Aug 2020 07:33:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org B7B5C3851C29 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 (mreue012 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MDeAZ-1kL8Eb1M3T-00AnGE for ; Mon, 31 Aug 2020 09:33:58 +0200 Received: by calimero.vinschen.de (Postfix, from userid 500) id E56C0A83A7D; Mon, 31 Aug 2020 09:33:57 +0200 (CEST) Date: Mon, 31 Aug 2020 09:33:57 +0200 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: cpp /usr/include/threads.h fails; modfl segfaults Message-ID: <20200831073357.GT3272@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <02b16d2e-9d51-de58-807b-3b31b2565b59.ref@aol.com> <02b16d2e-9d51-de58-807b-3b31b2565b59@aol.com> <20200830130005.GR3272@calimero.vinschen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Provags-ID: V03:K1:VFtti1QioowfLz/H5t0wjubTaaNE/N2udLeFFVmRYyJaBJdnO7q l2pi4uL/Vhxu2Znoq+lh56yfxAQZc9eF+8gl8naKHpuxcAgayYaMv3Owy6cMRmq83TKgW2K YWFJ/tbb1Etk3gDGkEAzhY1BmbHTAvVRNZwQ1voWVtLXBc1SRekzh180AqKZGEuKeGwQ702 l6tJz35zFq/pVFMelMpPQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:Im8Ajwc936g=:9qsqk7W3vuV+241UWIiKS0 aVpA5DL+wiaDgAECyjoL574+12iYhrh9xROYCPsIWwV0WDNKdBcAkBbvoSPDvwb6Bhd3A8YWO EMBFTdSQK8baCZPdVeNUibOulfzhX8DgJ+KC/0SCnlTyvj9Mara+rCg5BzK3DL4LhHfM8NIUe Za1QrcuWR26+a/T0lGWbEPvbgAfW2dh4/5+788qx7O2pj2eQ4rNfXJ/Qm6/gZah7IybI1L1sO LrDQj/6/x3gmB3BGqcx12XwuDIgTyEaUyhvL9V+AJw6VRlUXqjSQu8SzmU1ah4H9Uym4B9GW8 qAPop1cmLMhaco5Z8jIH+yL6kJB9NY00HyR6dOhkgUcDyp/cWNC5PlCULsW45LNdkEAKGrvmw /GRKhN0nxKrqA2Vh4mmQZeZ/8T42zvL+ygFID2LcnkGkk0FoR02h7BwFlHZpGdRINXov4R7Ov 8uP7fFYku/NFObgRyKJing9Sri6vjZ3DmYKgzllVV0b1dLRByPT90kxju8Sk5mqodJcmCaZsS WbZFXMBFCBeuGCOmSDkrxh1TJ61H/jq1g1hs4qnvGel7Qgot8Ig0/CbhnYvALJN51/t124W/P S8jTKc3MdACKsdtD06viYL7gkcrpTCOfYIJ2j3KpS1iEbJ1ij9nNoDMxO7U0I8s/va3OUKNof ALLUaZeXVbqviefMKznyPMOGBhrcZeN0f+S+drcESzCQ5IwJ8fobknfMLbXAjN/oouzuCTgHm IE+0DwkHLiZsg+6DeXAsNoUPwQR2Uy4YQxi1cr0P9iisRx0JwiKshb97Iv3d8EbJzF6uzQWQ5 PvsedLqdOBwZu3PBXVEitx27mvzahbTAw1SwbMm6NndmupzTrdM/ApwklQHF+bGfY5f9nzPMT KMxb/LRg79HzscvM2TOw== X-Spam-Status: No, score=-100.5 required=5.0 tests=BAYES_00, GOOD_FROM_CORINNA_CYGWIN, 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:34:03 -0000 On Aug 30 15:21, airplanemath--- via Cygwin wrote: > Corinna Vinschen writes: > > On Aug 29 08:52, airplanemath via Cygwin wrote: > >> Hello, > >> > >> I have two reports. A brief description of the system: > >> $ uname -a | sed "s/${HOSTNAME}/\${HOSTNAME}/g" > >> CYGWIN_NT-10.0 ${HOSTNAME} 3.1.7(0.340/5/3) 2020-08-22 17:48 x86_64 Cygwin > >> > >> The first report: > >> [...] > > I added [C11 threads] functions as wrappers around pthread functionality, code > > taken from FreeBSD. I ran the glibc testsuite on them, and after fixing > > the bugs in the glibc testsuite (d'oh), the tests ran successfully. > > > The header makes it through the preprocessor for me now. Thank you. > [...] > > This is a bug in the assembler code taken from Mingw-w64. The bug has > > been fixed upstream, so I just pulled in the upstream fixes. > > The test program now finishes without segfaulting, and gives the > expected answer. Thanks again. > > > > Thus, both of the above problems should be fixed now. I created a > > developer snapshot and uploaed it to https://cygwin.com/snapshots/ You > > need to grab the full tar file and install at least the following files > > to your installation after backing up the original files from 3.1.7: > > > > usr/bin/cygwin1.dll (this is pre-release 3.2.0) > > usr/lib/libcygwin.a > > usr/include/limits.h > > usr/include/pthread.h > > usr/include/machine/_threads.h > > > Is it okay to leave these in place to be overwritten by 3.2.0, or should > I move the old versions back? It's ok to leave them in place, just keep in mind that executables built with this version and using the new symbols won't run under 3.1.7 (e. g., on a collegue's machine). > > Thanks for the report. > > > Thanks for the prompt response. You're welcome. And thanks for testing! Corinna -- Corinna Vinschen Cygwin Maintainer