Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 82439 - /bin/ping ignores SIGINT while doing DNS queries
/bin/ping ignores SIGINT while doing DNS queries
Product: Red Hat Public Beta
Classification: Retired
Component: iputils (Show other bugs)
i386 Linux
high Severity medium
: ---
: ---
Assigned To: Phil Knirsch
Mike McLean
Depends On:
  Show dependency treegraph
Reported: 2003-01-21 23:59 EST by Dax Kelson
Modified: 2015-03-04 20:11 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-02-23 02:21:53 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Dax Kelson 2003-01-21 23:59:58 EST
Description of problem:

On a fresh install of phoebe (Jan 16th release), I notice that /bin/ping is very
hard to stop via CONTROL-C when pinging a hostname that resolves to an IP
address with no PTR record.

Version-Release number of selected component (if applicable):
Red Hat Linux release 8.0.93 (Phoebe)

How reproducible:


Steps to Reproduce:
1. ping fw.gurulabs.com
Actual results:

# ping fw.gurulabs.com
PING fw.gurulabs.com ( 56(84) bytes of data.
(VERY LONG PAUSE that doesn't immediately interrupt with CONTROL-C)
 64 bytes from icmp_seq=1 ttl=47 time=64.4 ms
--- fw.gurulabs.com ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 64.480/64.480/64.480/0.000 ms

when I strace it, I see DNS queries happening during the hang.

open("/var/nis/NIS_COLD_START", O_RDONLY) = -1 ENOENT (No such file or directory)
connect(4, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("")}, 28) = 0
send(4, "F\212\1\0\0\1\0\0\0\0\0\0\0012\00277\00262\00266\7in-a"..., 41, 0) =
41gettimeofday({1043211317, 869204}, NULL) = 0
poll( <unfinished ...>

Expected results:

Should be able to interrupt ping at any time.

Additional info:

When I ping the IP address (ping doesn't do DNS lookups when pinging IP
addresses), I can interrupt the ping at any time with control-C.
Comment 1 Dax Kelson 2003-02-23 02:21:53 EST
I tested in phoebe3, and problem is gone.

Note You need to log in before you can comment on or make changes to this bug.