X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 15AD73861003 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1598706866; bh=fb/tDufV8OHWkaEeJxoZ07BkJb7GgRy5+OFfvu9MWlI=; h=To:Subject:Date:References:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=NhuOkVp32pLxzttI4NS/jBbOSOtj8duU/6B0tlc1RZif/OjZo1UYZcCRWOocAmXWZ E18+h8g5/kAOlVZGHoDNR6n6d5S4kVybYNdUWMtCQjuLhR8NBMWfmzgjk/n11dChep kGBal/di+CTTKFAOkgOOFeb/M9hCCvcArBFszZtw= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org D15333861003 X-YMail-OSG: sYe7ZMwVM1nAH2VaPOhXowcXckCzrCUxSMrHNdzaZAc6.txmADfbXT5nQIw84x7 ikGF35D3Y8ynk_vanzt6t7lrE3N8OqlQwYTbG_bmeiUSEPw7b0O7SrOT8D.FgmUFH5s_GNum3rKX OudXPNKxB.2FiyIzwtoCg7nFRN60rvX2nvzwqGrL.PBkEMJMVga4BT5u6AVDoUHg3_k6xR1O7p0i iif8lPWtf3Eh1_x4mz1vU5nWVFciFCEW6XI2qQ6HRGVREX2O0.7JmIQddko09oIPCSsRcOMNWvl3 0vQIZyuz475SSNHAfvtmaYqIFSzTS54K42iNbZfPyQn327pJ.RoVg3DaWH8TpK5JrKq6Yt.DD5Nd NrpI2PyH9KIoP5jpxgsG4z6I8XJG.BDgUFd1ycW8sMTLCg5lZabchD8GzDs7.mdTRfZvyi859jtj unXskhHfwhaGMsIy1CKwTxyxgwROkCx4SLWaP2Uxb4tCJr.0_WmU_1st.qZhR4PIN2Y7KN3u4qF5 MbAQH49RRQM2SFVr94dwnusDrIW.xxlXu9wIj1T.nAIX313hfGys2c9pJKjyfClct04If2h2ZlQf 3jX.lsmBsU4fvJZTRPLea.5RC7BTkfFwzJzD30b7p7zpHDWepbV.MOSdksMsscjkd1HOF.hh90vd jwr0BDxbWjRUtiO.6Z6LL_cuZoMmwXPnH8dvs4B3NLEiJMmnkE9GsWcpd85jhp5IUxKLTUPa_4Sy MSfLwYWdVCPC_wOdaO1QGA5yyet9Ivqzw.v8AZ6ZXxWunnDmfxuKGAP54vLThmLrR9An2DwCGZrk c9lgGp.3JBZdCtWP_CQU0guOiTJhQXMJlN6wcc7c6HapYVBxDaTpdFEPo5HjomNcvO9wForhV9x4 lrCEe1Ip4m3x_unB517s1s2_rPG6qjIcRwXB7uytEXRdVOD34X.YsNtfHgoGXP.O1IpsZFOfKN6b i7uFreoDZ2zDMF1QveIXecYcYmWlT4D_4bkzt__nJaepFw5kW8oY6RItYyqPnPRTRKVu9I2U2.5x BVQL3s1QPCiyV2emaDiAW5BRChdbdoYOc.USQAd3zrfwUn.kAaNotnd0z6rpqFRZC8N3jMvppIUk eaHIZA0I62ES71ujbVP6aeBCWtwx_0c28.2XZGrRID2s4Cz9UozUxxPjZjTFNtCJcB2i0QOBIy.B BuHUtd1zEcoWiRG.c_W_DcgfBI0LIvvQslww_2pSGBTfmy4LRPpr.SulhvP0t1Wm3YfYZLtd2_57 L5TAxp_ZwTgg5Py7OOaKvCpBsrzRQyaHgG7LyzXG0MpcSmc1xOVNa9Be0FYcpWZ_XymITxV3RgMX aUp.nGH45mK0of8NHdx9GoNLDk7l4SEYBW05BVBNu.AQgKzQXaw_9_P_bty7YdfH.pJxMt8mxjE6 y6ucHtN4D.VhoLby_RqjsF6EE5XKXhIkvYNFrIe0kH_2XuK0Xk.cNftg4cMSm3HHUAD2tEwtWWMB a7Q-- To: cygwin AT cygwin DOT com Subject: cpp /usr/include/threads.h fails; modfl segfaults Autocrypt: addr=airplanemath AT aol DOT com; keydata= mQENBFtoYKMBCADCZv4MAdlySVILN4X9ugsWKmOKC80Q1RFF5gxNhbhIorAY52J2IgIeMIgK CMogCY41C4KjNl4shSfkCJQQR8kDE4TNKhno4hmE4k8d0B4vbAZsr2qkRK11YikH/9ocyOh/ 9TtNSFH6nZjSbIY8a4uViMX9MNyoZmv30B6B/OWWwUz9Yd5psVFHIolrB3H4L835GlGO6CzC j4xEemlKTkQeJ+c2H5T1JrzKE0H06CXoKVy+VABd2I3BVyCs8cmTH50KGLj6gIk7mjLQ5Lio L6gAzaPjJA21IG7QVR1bF7vX7/VyeS/CLEnh6k83toHlBi5QOwCA+Y22oDZ604JHA5B5ABEB AAG0I2FpcnBsYW5lbWF0aCA8YWlycGxhbmVtYXRoQGFvbC5jb20+iQFUBBMBCAA+FiEEgfIC b6IPSG5I5cJLx/Fa3MIKz3UFAltoYKYCGwMFCQHhM4AFCwkIBwIGFQoJCAsCBBYCAwECHgEC F4AACgkQx/Fa3MIKz3X9JAgAvj1eQQK7i+fkPNMrtL70EXDBhg/n45xumOTom6c0m3AxmLzw yQV0yGUWvJ9dMw7BKZTfDWx4FKfprZC+53uPbj6GIsidsVNBFdwT8NSnSxyA77y7NFvns0Sg CDCFa9dRtA1UVuX3wx++0eBVaZUJ2D15RcMrPtJ3JgsKyyT5piSc6Y7OZ3EMyc0QbP4mhmjq sbpUD1SDF6iD4kKj8zbkhXOAZGJigDeI1Ffim0k8q8ZURqwPOqLhanwSyyIZ2P1pC3G55TBM 5oBH1SOB4n6iGApRymE7b2NwvTECPpCBDCjwKbnFWfIt8olUuV6MnMrChCGjc6eP/zSIAFPC kl7NtQ== Message-ID: <02b16d2e-9d51-de58-807b-3b31b2565b59@aol.com> Date: Sat, 29 Aug 2020 08:52:48 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 Content-Language: en-US References: <02b16d2e-9d51-de58-807b-3b31b2565b59 DOT ref AT aol DOT com> X-Mailer: WebService/1.1.16565 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Apache-HttpAsyncClient/4.1.4 (Java/11.0.7) X-Spam-Status: No, score=1.6 required=5.0 tests=BAYES_00, BODY_8BITS, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_GOODAOL, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: airplanemath via Cygwin Reply-To: airplanemath Content-Type: text/plain; charset="utf-8" Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 07TDErBJ022413 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: $ cpp /usr/include/threads.h # 1 "/usr/include/threads.h" # 1 "" # 1 "" # 1 "/usr/include/threads.h" /usr/include/threads.h:30:10: fatal error: machine/_threads.h: No such file or directory    30 | #include       |          ^~~~~~~~~~~~~~~~~~~~ compilation terminated. $ cygcheck -p machine/_threads.h Found 0 matches for machine/_threads.h $ cygcheck -f /usr/include/threads.h cygwin-devel-3.1.7-1 $ cygcheck -c cygwin-devel Cygwin Package Information Package              Version        Status cygwin-devel         3.1.7-1        OK I'm not sure what to do from here.  I don't remember where I ran into this, but this feels like something that shouldn't happen The second report: $ cat test.c #include #include #include int main(int argc, char *argv[]) {   long double a, b, c;   char *num_end = NULL;   a = b = c = 0.0L;   if (argc != 2) {     fprintf(stderr, "Usage: %s NUMBER\n", argv[0]);     exit(1);   }   a = strtold(argv[1], &num_end);   b = modfl(a, &c);   printf("%Lf %Lf %Lf\n", a, b, c);   return 0; } $ gcc -Og -ggdb -g3 -Wall -Wextra -std=c99 -pedantic test.c -o test.exe $ ./test.exe 123.456 Segmentation fault (core dumped) $ gdb --args ./test.exe 123.456 GNU gdb (GDB) (Cygwin 8.3.1-1) 8.3.1 ... Reading symbols from ./test.exe... (gdb) break modfl (gdb) run Starting program: /home/Daniel/test.exe 123.456 [New Thread 13960.0x3cf4] [New Thread 13960.0xbdc] [New Thread 13960.0x4028] [New Thread 13960.0x3224] [New Thread 13960.0x3810] [New Thread 13960.0x1ae4] [New Thread 13960.0x3714] [Thread 13960.0x4028 exited with code 3697672192] [Thread 13960.0x3714 exited with code 0] Thread 1 "test" hit Breakpoint 1, modfl (value=, iptr=iptr AT entry=0xffffcbd0) at /usr/src/debug/cygwin-3.1.7-1/winsup/cygwin/math/modfl.c:16 16        asm ("subq $8, %%rsp\n" (gdb) step 38        if (iptr) (gdb) step 39          *iptr = int_part; (gdb) step 40        return (isinf (value) ?  0.0L : value - int_part); (gdb) step       0 [main] test 28439 cygwin_exception::open_stackdumpfile: Dumping stack trace to test.exe.stackdump [Thread 13960.0x3b5c exited with code 35584] [Thread 13960.0x1ae4 exited with code 35584] [Thread 13960.0x3810 exited with code 35584] [Thread 13960.0xbdc exited with code 35584] [Thread 13960.0x3cf4 exited with code 35584] [Inferior 1 (process 13960) exited with code 0105400] (gdb) isinf and isinfl both work just fine, so I'm not sure what's going on there. Please let me know if you need more information. -- 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