Description of problem: many applications stop resolving ipv4 addresses after upgrade from glibc-2.11.1-1.i686 to glibc-2.11.1-4.i686. Apparently applications that make use of getaddrinfo are those affected, I tried konqueror, wget (wget -4 works fine), firefox, yum and ssh. The "host" command works fine, instead. This happens on my laptop, while on my desktop with identical configuration the problem is not present. Downgrading glibc, glibc-common, glibc-devel, glibc-headers back to version 2.11.1-1 makes the problem disappear again. Version-Release number of selected component (if applicable): Fedora 12, glibc-2.11.1-4.i686 How reproducible: Unfortunately this problem is present on only one of three machines that where updated to glibc-2.11.1-4: my laptop (Dell latitude E6500). However it is rather annoying and I hope to find someone else that can confirm such problem in order to find a fix. I could find a way to avoid ipv6 dns resolution (together with ipv4) as a default behaviour. A "tcpdump" correctly show the two queries (A? and AAAA?) and both answers, which seem good, however the application says that thare is no address associated to the name.
Oops, I meant: "I could NOT find a way to avoid ipv6 dns resolution (together with ipv4) as a default behaviour"
Please provide the output of dig aaaa bugzilla.redhat.com.
The output of "dig aaaa bugzilla.redhat.com" is probably fine: ------------------- using glibc-2.11.1-4.i686 --------------------------- ; <<>> DiG 9.6.2-P1-RedHat-9.6.2-3.P1.fc12 <<>> aaaa bugzilla.redhat.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 16754 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;bugzilla.redhat.com. IN AAAA ;; AUTHORITY SECTION: redhat.com. 257 IN SOA ns1.redhat.com. noc.redhat.com. 2010041002 3600 1800 604800 86400 ;; Query time: 4 msec ;; SERVER: 10.93.16.82#53(10.93.16.82) ;; WHEN: Tue Apr 13 16:54:56 2010 ;; MSG SIZE rcvd: 81 ------------------------------------------------------------------------- It is essentially the same as with glibc-2.11.1-1.i686 On the contrary, if I try "wget bugzilla.redhat.com" I get the following: -------- glibc-2.11.1-4.i686 ----------- --2010-04-13 16:55:17-- http://bugzilla.redhat.com/ Resolving bugzilla.redhat.com... failed: No address associated with hostname. wget: unable to resolve host address “bugzilla.redhat.com” ---------------------------------------- while: -------- glibc-2.11.1-1.i686 ----------- --2010-04-13 16:56:27-- http://bugzilla.redhat.com/ Resolving bugzilla.redhat.com... 209.132.183.69 Connecting to bugzilla.redhat.com|209.132.183.69|:80... connected. HTTP request sent, awaiting response... 301 Moved Permanently Location: https://bugzilla.redhat.com/ [following] --2010-04-13 16:56:27-- https://bugzilla.redhat.com/ Connecting to bugzilla.redhat.com|209.132.183.69|:443... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/html] Saving to: “index.html” 0K .......... ..... 1.26M=0.01s 2010-04-13 16:56:28 (1.26 MB/s) - “index.html” saved [16289] -------------------------------------------------- [wget works fine with the new glibc if I force ipv4 only with '-4'] In the above results I always use the same pc and switch back and forth between glibc-2.11.1-1 and glibc-2.11.1-4 with "rpm -vUh glibc* [--oldpackage]" giving the appropriate rpm packages (glibc, glibc-common, glibc-devel, glibc-headers). Thank you for spending your time on this problem!
Please attach the output of "strace -s1024 getent ahosts bugzilla.redhat.com".
Created attachment 406505 [details] output of strace -s1024 getent ahosts bugzilla.redhat.com with glibc-2.11.1-4 Strace output as requested by Andreas Schwab
Created attachment 406506 [details] strace output with glibc-2.11.1-1 (no update to glibc-2.11.1-4) The same command as before (strace output) but given with glibc-2.11.1-1 installed instead of glibc-2.11.1-4
(In reply to comment #4) > Please attach the output of "strace -s1024 getent ahosts bugzilla.redhat.com". the command "getent ahosts bugzilla.redhat.com" produced no output if given after update to glibc-2.11.1-4, whereas it gives the expected output if I go back to glibc-2.11.1-1. As noted above I attached the strace output in both cases.
Try adding "options single-request" to /etc/resolv.conf.
(In reply to comment #8) > Try adding "options single-request" to /etc/resolv.conf. Tried... That does not change anything (the result of getent ahosts bugzilla.redhat.com is still empty) :-(
Then try single-request-reopen.
(In reply to comment #10) > Then try single-request-reopen. nope... still no response to getent ahosts bugzilla.redhat.com are those options to resolv.conf documented somewhere? The man page does not mention them.
Please try glibc-2.11.1-5.2 from <http://koji.fedoraproject.org/koji/taskinfo?taskID=2116859> with "options debug" and report the output of "getent ahosts bugzilla.redhat.com".
(In reply to comment #12) > Please try glibc-2.11.1-5.2 from > <http://koji.fedoraproject.org/koji/taskinfo?taskID=2116859> with "options > debug" and report the output of "getent ahosts bugzilla.redhat.com". Allright, here it is: $ rpm -q glibc glibc-2.11.1-5.2.i686 $ getent ahosts bugzilla.redhat.com ;; res_setoptions(" debug ", "conf").. ;; debug dots=2, statp->ndots=1, trailing_dot=0, name=bugzilla.redhat.com ;; res_nquerydomain(bugzilla.redhat.com, <Nil>, 1, 62321) ;; res_query(bugzilla.redhat.com, 1, 62321) ;; res_nmkquery(QUERY, bugzilla.redhat.com, IN, A) ;; res_nmkquery(QUERY, bugzilla.redhat.com, IN, AAAA) ;; res_send() ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 24227 ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; bugzilla.redhat.com, type = A, class = IN ;; Querying server (# 1) address = 193.12.150.2 ;; got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 24227 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 3, ADDITIONAL: 0 ;; bugzilla.redhat.com, type = A, class = IN bugzilla.redhat.com. 4m33s IN A 209.132.183.69 redhat.com. 2m49s IN NS ns1.redhat.com. redhat.com. 2m49s IN NS ns3.redhat.com. redhat.com. 2m49s IN NS ns2.redhat.com. ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 55866 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; bugzilla.redhat.com, type = AAAA, class = IN redhat.com. 2m49s IN SOA ns1.redhat.com. noc.redhat.com. ( 2010041301 ; serial 1H ; refresh 30M ; retry 1W ; expiry 1D ) ; minimum 209.132.183.69 STREAM bugzilla.redhat.com 209.132.183.69 DGRAM 209.132.183.69 RAW =========================================================================== This looks promising...
glibc-2.11.1-6 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/glibc-2.11.1-6
Mmmh, now I realize that my laptop has "kernel-PAE"; could this explain something?
glibc-2.11.1-6 has been pushed to the Fedora 12 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update glibc'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/glibc-2.11.1-6
Works for me.
Works for me also.
glibc-2.11.1-6 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report.