vol...@vwsoft.com wrote: > On 09/13/09 06:27, Eugene Grosbein wrote: >> Hi! >> >> For 8.0-BETA3: >> >> % host -l grosbein.pp.ru. ns2.rucable.net. >> ; Transfer failed. >> /usr/local/src/lib/bind/isc/../../../contrib/bind9/lib/isc/unix/socket.c:2486: >> REQUIRE((((sock) != ((void *)0)) && (((const isc__magic_t *)(sock))->magic >> == ((('I') << 24 | ('O') << 16 | ('i') << 8 | ('o')))))) failed. >> zsh: abort (core dumped) host -l grosbein.pp.ru. ns2.rucable.net. >> >> Shoud I send PR? >> >> Eugene Grosbein > > Eugene, > > the attached patch works around the error for me. As this is contributed > code, it should be fixed upstream (no need to file a PR).
Can Eugene, Volker, and anyone else affected by this please try this very-lightly-modified version of the patch and confirm that it works? If so, I will get this in ASAP. Doug -- Improve the effectiveness of your Internet presence with a domain name makeover! http://SupersetSolutions.com/
Index: dighost.c =================================================================== --- dighost.c (revision 198000) +++ dighost.c (working copy) @@ -2604,10 +2604,12 @@ if (sevent->result == ISC_R_CANCELED) { debug("in cancel handler"); - isc_socket_detach(&query->sock); - sockcount--; - INSIST(sockcount >= 0); - debug("sockcount=%d", sockcount); + if (query->sock != NULL) { + isc_socket_detach(&query->sock); + sockcount--; + INSIST(sockcount >= 0); + debug("sockcount=%d", sockcount); + } query->waiting_connect = ISC_FALSE; isc_event_free(&event); l = query->lookup;
signature.asc
Description: OpenPGP digital signature