public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Ping crashes
@ 2018-10-27 15:26 Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin
  2018-10-27 16:07 ` Houder
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin @ 2018-10-27 15:26 UTC (permalink / raw)
  To: 'cygwin@cygwin.com'

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Ping crashes
  2018-10-27 15:26 Ping crashes Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin
@ 2018-10-27 16:07 ` Houder
  2018-10-27 16:21 ` Houder
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 9+ messages in thread
From: Houder @ 2018-10-27 16:07 UTC (permalink / raw)
  To: cygwin

On Sat, 27 Oct 2018 15:25:50, XXXXX wrote:
> Hello,
> 
> I have a problem with the ping utility on Cygwin: it keeps crashing with se=
> gmentation fault.  I've checked that all my packages (including Cygwin core)
[snip]

> $ ping 192.168.1.1
> Segmentation fault (core dumped)

Confirmed ... That is ..

64-@@ ping 192.168.178.1
Segmentation fault (core dumped)
64-@@

64-@@# ping 192.168.178.1 <==== using an elevated shell:
PING 192.168.178.1 (192.168.178.1): 56 data bytes
64 bytes from 192.168.178.1: icmp_seq=0 ttl=64 time=0.000 ms
64 bytes from 192.168.178.1: icmp_seq=1 ttl=64 time=0.000 ms
64 bytes from 192.168.178.1: icmp_seq=2 ttl=64 time=0.000 ms
64 bytes from 192.168.178.1: icmp_seq=3 ttl=64 time=0.000 ms
64 bytes from 192.168.178.1: icmp_seq=4 ttl=64 time=0.000 ms
64 bytes from 192.168.178.1: icmp_seq=5 ttl=64 time=0.000 ms
64 bytes from 192.168.178.1: icmp_seq=6 ttl=64 time=0.000 ms
--- 192.168.178.1 ping statistics ---
7 packets transmitted, 7 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.000/0.000/0.000/0.000 ms
64-@@#

Regards,
Henri


--
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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Ping crashes
  2018-10-27 15:26 Ping crashes Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin
  2018-10-27 16:07 ` Houder
@ 2018-10-27 16:21 ` Houder
  2018-10-29 12:27 ` Takashi Yano
  2018-10-29 15:40 ` Corinna Vinschen
  3 siblings, 0 replies; 9+ messages in thread
From: Houder @ 2018-10-27 16:21 UTC (permalink / raw)
  To: cygwin

On Sat, 27 Oct 2018 15:25:50, XXXXX wrote:
> Hello,
> 
> I have a problem with the ping utility on Cygwin: it keeps crashing with se=
> gmentation fault.  I've checked that all my packages (including Cygwin core)
[snip]

> $ ping 192.168.1.1
> Segmentation fault (core dumped)

Related?

    https://sourceware.org/ml/cygwin/2018-08/msg00124.html
    ( Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.11.0-0.1 )

Regards,
Henri


--
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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Ping crashes
  2018-10-27 15:26 Ping crashes Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin
  2018-10-27 16:07 ` Houder
  2018-10-27 16:21 ` Houder
@ 2018-10-29 12:27 ` Takashi Yano
  2018-10-29 15:40 ` Corinna Vinschen
  3 siblings, 0 replies; 9+ messages in thread
From: Takashi Yano @ 2018-10-29 12:27 UTC (permalink / raw)
  To: cygwin; +Cc: Lavrentiev, Anton (NIH/NLM/NCBI) [C]

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Ping crashes
  2018-10-27 15:26 Ping crashes Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin
                   ` (2 preceding siblings ...)
  2018-10-29 12:27 ` Takashi Yano
@ 2018-10-29 15:40 ` Corinna Vinschen
  2018-10-29 16:39   ` Houder
  2018-10-29 21:05   ` Andrey Repin
  3 siblings, 2 replies; 9+ messages in thread
From: Corinna Vinschen @ 2018-10-29 15:40 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 1787 bytes --]

On Oct 27 15:25, Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin 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

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

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Ping crashes
  2018-10-29 15:40 ` Corinna Vinschen
@ 2018-10-29 16:39   ` Houder
  2018-10-30  9:09     ` Corinna Vinschen
  2018-10-29 21:05   ` Andrey Repin
  1 sibling, 1 reply; 9+ messages in thread
From: Houder @ 2018-10-29 16:39 UTC (permalink / raw)
  To: cygwin

On Mon, 29 Oct 2018 16:40:43, Corinna Vinschen  wrote:
> 
> On Oct 27 15:25, Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin 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 co=
[snip]

> 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,

Tested for ping on both x86_64 and x86. Solved.

Regards,
Henri


--
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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Ping crashes
  2018-10-29 15:40 ` Corinna Vinschen
  2018-10-29 16:39   ` Houder
@ 2018-10-29 21:05   ` Andrey Repin
  2018-10-30  9:09     ` Corinna Vinschen
  1 sibling, 1 reply; 9+ messages in thread
From: Andrey Repin @ 2018-10-29 21:05 UTC (permalink / raw)
  To: Corinna Vinschen, cygwin

Greetings, Corinna Vinschen!

> 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 wonder if that explains occasional curl coredumps?

> 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...

Thank you.


-- 
With best regards,
Andrey Repin
Monday, October 29, 2018 23:56:55

Sorry for my terrible english...


--
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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Ping crashes
  2018-10-29 16:39   ` Houder
@ 2018-10-30  9:09     ` Corinna Vinschen
  0 siblings, 0 replies; 9+ messages in thread
From: Corinna Vinschen @ 2018-10-30  9:09 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 892 bytes --]

On Oct 29 17:39, Houder wrote:
> On Mon, 29 Oct 2018 16:40:43, Corinna Vinschen  wrote:
> > 
> > On Oct 27 15:25, Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin 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 co=
> [snip]
> 
> > 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,
> 
> Tested for ping on both x86_64 and x86. Solved.

Thanks for testing, but we need more testing for normal network
operations, too.  I'm going to push out a test release in a few
mins.


Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Ping crashes
  2018-10-29 21:05   ` Andrey Repin
@ 2018-10-30  9:09     ` Corinna Vinschen
  0 siblings, 0 replies; 9+ messages in thread
From: Corinna Vinschen @ 2018-10-30  9:09 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 810 bytes --]

On Oct 29 23:59, Andrey Repin wrote:
> Greetings, Corinna Vinschen!
> 
> > 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 wonder if that explains occasional curl coredumps?

Maybe, yeah.

> 
> > 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...
> 
> Thank you.

Pushing a test release in a few mins...


Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-10-30  9:09 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-27 15:26 Ping crashes Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin
2018-10-27 16:07 ` Houder
2018-10-27 16:21 ` Houder
2018-10-29 12:27 ` Takashi Yano
2018-10-29 15:40 ` Corinna Vinschen
2018-10-29 16:39   ` Houder
2018-10-30  9:09     ` Corinna Vinschen
2018-10-29 21:05   ` Andrey Repin
2018-10-30  9:09     ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).