X-Recipient: archive-cygwin@delorie.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:cc:subject:message-id:in-reply-to
	:references:mime-version:content-type:content-transfer-encoding;
	 q=dns; s=default; b=YRD5JsAOFa4i1+PBeJ7+GT2UCodF6UKvK1f3XErpvZ6
	jSQWT2Jku+QY7yzc4Cow2TTRh/hZrlKnL2k+LfHfY2ddRIZ2zP0742m+8G/HHmpW
	SFzo73/m2K77oKAexB+FRs1kxf9AXj5omuymCl40SAXPkEPtVJR97OJISm17lRTE
	=
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:cc:subject:message-id:in-reply-to
	:references:mime-version:content-type:content-transfer-encoding;
	 s=default; bh=qCWODXUluP9yYMsREmRx9Fe8PaU=; b=uuH81+YykPylNmD6s
	3ppYjoTT3sOdwQnePSnUNnPrCP2T1KAuWeCeYOCS2metiumky+x/YGLR5an/9qUA
	Oo/w9X+hqMAnZ7kl0HfcLErj7LSpFSX+1E4s3WDFpAXJhacS2UEcWcRXx2GOfi8G
	nnI36NQVUEcyDLhQN9/Am/UrKE=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=0.3 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=H*F:D*ne.jp, problemshtml, problems.html, unsubscribe-simple
X-HELO: conssluserg-05.nifty.com
DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com w9TCQmnD021672
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.ne.jp;	s=dec2015msa; t=1540816008;	bh=ccjAYlCdio7XghY069nSartKSNAEQ01g50V5TeM/Kl4=;	h=Date:From:To:Cc:Subject:In-Reply-To:References:From;	b=mw5Z/TT2dHPUiKFusOdiqAW3QVU/VacIvEbPjPA1oNktnsqGnqwZimoldkdMr5cnU	 J6Mj0ZkvfhLLG/5CPEGM1wEZcXn3omQfrBE436AEDb0NUsDqn4cY+E0QQ4BXkVfa3s	 7XfgvXLmMGklbARMWoQ9tfHq38GqooiT3wlidPCVwuHVSnYLyQ7ZmmDA20e2Oyhb9s	 svE8Swtb0wV5b9cKurmIrUGUi0giGsPR0s/bdhsI7yMfQHaNCK28gz8X8+RrhFiyha	 IJJn3NDKn3tUG8xhL8ygigSls/IRtVzAMrNM8L5s8HiT4ZJh5MwYK6M0abFJfZZBS+	 U0ka98RTQIzIA==
Date: Mon, 29 Oct 2018 21:26:55 +0900
From: Takashi Yano <takashi.yano@nifty.ne.jp>
To: cygwin@cygwin.com
Cc: "Lavrentiev, Anton (NIH/NLM/NCBI) [C]" <lavr@ncbi.nlm.nih.gov>
Subject: Re: Ping crashes
Message-Id: <20181029212655.3e213ff7b10e584e99dee6ef@nifty.ne.jp>
In-Reply-To: <SN6PR09MB324734F8016EE54FD0DCE436A5F10@SN6PR09MB3247.namprd09.prod.outlook.com>
References: <SN6PR09MB324734F8016EE54FD0DCE436A5F10@SN6PR09MB3247.namprd09.prod.outlook.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

Hello, Anton.

I'm a maintainer of ping package. Thank you for your report.

Ping requires administrator privilege in windows OSs older than Windows 10
build 14926. In such OSs, ping should result in error:
'ping: Lacking privilege for raw socket.'

However, with cygwin 2.11.0 or later, it seems that ping crashes with
segmentation fault in the above case, as you reported.

With cygwin 2.10.0, ping does not cause segmentation fault.

I will look into this problem.

On Sat, 27 Oct 2018 15:25:50 +0000
"Lavrentiev, Anton (NIH/NLM/NCBI)" wrote:
> Hello,
> 
> 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 core)
> are up to date.  What am I missing?  At any rate, I guess it should not
> have crashed ungracefully if it needs something it doesn't have (like
> a permission); instead, if should have said so and bail out with an error
> exit code rather than a stackdump (attached).
> 
> Thanks,
> Anton Lavrentiev
> 
> P.S. ping -h works; ping with any IP address -- crashes
> 
> $ ping 192.168.1.1
> Segmentation fault (core dumped)
> 
> $ cat ping.exe.stackdump
> Exception: STATUS_ACCESS_VIOLATION at rip=001800579D7
> rax=0000000180322500 rbx=000000018031FCF8 rcx=0000000000000000
> rdx=0000000000000003 rsi=0000000000000003 rdi=0000000000000003
> r8 =000000000000001F r9 =00000000000000FE r10=0000000180204E70
> r11=00000000FFFFC892 r12=0000000000000000 r13=0000000000000003
> r14=0000000000000001 r15=0000000000000000
> rbp=0000000000000018 rsp=00000000FFFFCAA0
> program=C:\cygwin64\bin\ping.exe, pid 6496, thread main
> cs=0033 ds=002B es=002B fs=0053 gs=002B ss=002B
> 
> --
> Problem reports:       http://cygwin.com/problems.html
> FAQ:                   http://cygwin.com/faq/
> Documentation:         http://cygwin.com/docs.html
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> 


-- 
Takashi Yano <takashi.yano@nifty.ne.jp>

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

