Bug 82439

Summary: /bin/ping ignores SIGINT while doing DNS queries
Product: [Retired] Red Hat Public Beta Reporter: Dax Kelson <dkelson>
Component: iputilsAssignee: Phil Knirsch <pknirsch>
Status: CLOSED RAWHIDE QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: high    
Version: phoebeCC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-02-23 07:21:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dax Kelson 2003-01-22 04:59:58 UTC
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)
iputils-20020927-1

How reproducible:

everytime

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


# ping fw.gurulabs.com
PING fw.gurulabs.com (66.62.77.2) 56(84) bytes of data.
(VERY LONG PAUSE that doesn't immediately interrupt with CONTROL-C)
 64 bytes from 66.62.77.2: 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.

[snip]
open("/var/nis/NIS_COLD_START", O_RDONLY) = -1 ENOENT (No such file or directory)
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("10.24.238.5")}, 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 07:21:53 UTC
I tested in phoebe3, and problem is gone.