Ethereal-dev: Re: [Ethereal-dev] ethereal 0.10.3 hangs on Redhat Linux 9 (glibc 2.3.2)

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Graeme Hewson <ghewson@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 05 Oct 2004 22:17:04 +0100
Guy Harris wrote:

Given that tcpdump got rid of the alarm/longjmp back in late 2001, and I
haven't heard much in the way of complaints, it might be OK for us to do
so as well - although we have a lot more UI to lock up if the resolution
hangs forever, so maybe there's still *some* reason to keep it; I might be
tempted to just forcibly undefine AVOID_DNS_TIMEOUT for the next release,
and see whether we get a lot of "it hangs!" complaints.

The current nightly build also hangs on Redhat Linux 9, using ADNS. It's OK doing a capture with the list of packets updated in real time and with all name resolutions enabled, but if I stop the capture and put "DNS" into the display filter box, it hangs. GDB shows it's hanging in host_name_lookup6(), and as I recall the statement is:

 hostp = gethostbyaddr((char *)addr, sizeof(*addr), AF_INET6);

The problem goes away if I undefine AVOID_DNS_TIMEOUT.