From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7838 invoked by alias); 6 Nov 2012 11:49:37 -0000 Received: (qmail 7791 invoked by uid 48); 6 Nov 2012 11:49:22 -0000 From: "karme at karme dot de" To: glibc-bugs@sources.redhat.com Subject: [Bug network/12994] getaddrinfo fails if response records returned in wrong order and one of them is server failure Date: Tue, 06 Nov 2012 11:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: network X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: karme at karme dot de X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2012-11/txt/msg00063.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=12994 --- Comment #5 from karme at karme dot de 2012-11-06 11:49:19 UTC --- I now believe packet re-ordering is not enough to reproduce the problem. I have written a small dns proxy for better testing. The simplest scenario to reproduce the problem is to drop all a record requests and just answer the aaaa request. Answer for getaddrinfo with hints.ai_family = AF_UNSPEC is then error: r=-2 Name or service not known. Traffic is like: 12.786202 127.0.0.1 -> 127.0.0.1 DNS 68 Standard query 0x9f5f A karme.de 12.786962 127.0.0.1 -> 127.0.0.1 DNS 68 Standard query 0x77c8 AAAA karme.de 14.896700 127.0.0.1 -> 127.0.0.1 DNS 119 Standard query response 0x77c8 17.788941 127.0.0.1 -> 127.0.0.1 DNS 68 Standard query 0x9f5f A karme.de 22.794223 127.0.0.1 -> 127.0.0.1 DNS 68 Standard query 0x9f5f A karme.de -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.