From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32365 invoked by alias); 29 Oct 2018 15:40:48 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 32356 invoked by uid 89); 29 Oct 2018 15:40:48 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-101.2 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=boy X-HELO: mout.kundenserver.de Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (212.227.126.135) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 29 Oct 2018 15:40:46 +0000 Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MRmsE-1gA25Z3miQ-00TEsY for ; Mon, 29 Oct 2018 16:40:43 +0100 Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MRmsE-1gA25Z3miQ-00TEsY for ; Mon, 29 Oct 2018 16:40:43 +0100 Received: by calimero.vinschen.de (Postfix, from userid 500) id 90429A819B9; Mon, 29 Oct 2018 16:40:43 +0100 (CET) Date: Mon, 29 Oct 2018 15:40:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Ping crashes Message-ID: <20181029154043.GS3310@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="SO98HVl1bnMOfKZd" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) X-SW-Source: 2018-10/txt/msg00241.txt.bz2 --SO98HVl1bnMOfKZd Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1814 On Oct 27 15:25, Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin wrote: > Hello, >=20 > I have a problem with the ping utility on Cygwin: it keeps crashing with = segmentation fault. I've checked that all my packages (including Cygwin co= re) > are up to date. What am I missing? At any rate, I guess it should not h= ave crashed ungracefully if it needs something it doesn't have (like a perm= ission); instead, if should have said so and bail out with an error exit co= de rather than a stackdump (attached). >=20 > Thanks, > Anton Lavrentiev >=20 > P.S. ping -h works; ping with any IP address -- crashes >=20 > $ ping 192.168.1.1 > Segmentation fault (core dumped) >=20 > $ cat ping.exe.stackdump > Exception: STATUS_ACCESS_VIOLATION at rip=3D001800579D7 > rax=3D0000000180322500 rbx=3D000000018031FCF8 rcx=3D0000000000000000 > rdx=3D0000000000000003 rsi=3D0000000000000003 rdi=3D0000000000000003 > r8 =3D000000000000001F r9 =3D00000000000000FE r10=3D0000000180204E70 > r11=3D00000000FFFFC892 r12=3D0000000000000000 r13=3D0000000000000003 > r14=3D0000000000000001 r15=3D0000000000000000 > rbp=3D0000000000000018 rsp=3D00000000FFFFCAA0 > program=3DC:\cygwin64\bin\ping.exe, pid 6496, thread main > cs=3D0033 ds=3D002B es=3D002B fs=3D0053 gs=3D002B ss=3D002B I just pushed a patch supposed to fix this issue. The bug is actually worse and potentially affects more than just ping. Every time a socket, socketpair, or accept call fails for some reason, there's a potential SEGV. Oh, boy, oh boy. I've just uploaded developer snapshots to https://cygwin.com/snapshots/ Please test. I think this qualifies for a 2.11.2 release pretty soon... Thanks, Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --SO98HVl1bnMOfKZd Content-Type: application/pgp-signature; name="signature.asc" Content-length: 833 -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlvXKfsACgkQ9TYGna5E T6DA3g//UuylTGOKR8TGgnOQ/9sVBbNNGLG9NA9mq63cIt7EfEtyImoYXqqqNAqD SJXg+zaasuKGL2SvxEfFxOkwwK2u6T08beohdtddsGFIExdSPcTAcTGCPpVZYzgo VpXX6xUzGzJnlwED9fJdR24qLQVKG5F2n5M+vaDveXfFU+6LnlrMDFoN9T5hlHBM pSsXNcUKL8AarfSmuQl73ICkqBLVxySHxOxYkXY0+EgQAQmBmAAesAAL7vJpRaVK CcfmvJSKyTP0O3MRGFW//MeqLUX9mfl/yjpFiE0icIm6Vpft+Fzx9qoS1pBbvAGe +1DHR/yOkMyLwkZ6EbVEtct8+1KYYhfq8/mSeRr5Qy9N04T9D1NPGC3XkYNxkI/e iJFYBw+5jZSnsKl/a27vXUSvn1Cw5/Vx2tDi55eKARr4+Qd8vHuEtpsmelmxEhqj 16CTvETrVh6LN93XbbbzFzNuWHbwzGOyZz9Z1tKf6uRT/5a1Dt4gqqPSiKGcvxKi UH4T35EqPNtZRrr9BaPIBTmK0VcCpTpYP4/IcAfphXhWrGpOE+GT1+oKu6u+VWsA sIk11H1Ehub4ezzDroLkS5WGMfBwXJOhEHyhvV8eURlAKi8pbn0z8NKhI8wEvoWl Ko+5UITnodVq92ABhnaTO6Xh9I7KsokAn6kY6lOEjQx/SWjPoUw= =1Q50 -----END PGP SIGNATURE----- --SO98HVl1bnMOfKZd--