X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=Niz9qjPO17AAHlu1pmrfQ9TP5ASmDu9HGsydJ5UMDhk6ApKO53s+t 6fGZ5KRgvfR/V4dOdTt6ChgSFs7uEzx6lOQFwy9kyXELFMozCY+IIJdkMqp7ah9/ gIJAHeuF+ORmn5YWs6YNEiKbPFcNP/03cMnCEw6lNN4UMAfDfyMQnw= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=5c/ncpjCxX+7jnjhalJwIq3wW/4=; b=jhJubVtV0jWqlTsEkn3xKThNqrsv Y1WU/icHQiqDTWjvEiusc9Quy4eFNaHRV6ShGaqHt/0eaouIWYyjR1AyB907bnnn DKNVGZMdMIIJ1bIZZi+SfSH1NPGJ3+GmYcc27/KayzjV/DRm+X3BVDYnh5NHLqV5 2j1aNPpMsRmjtAg= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 Date: Mon, 29 Oct 2018 16:40:43 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Ping crashes Message-ID: <20181029154043.GS3310@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT 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) --SO98HVl1bnMOfKZd Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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" -----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--