This is the mail archive of the mailing list for the glibc project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug network/20626] New: Unable to resolve host name on MIPS (MIPS-II, o32)

            Bug ID: 20626
           Summary: Unable to resolve host name on MIPS (MIPS-II, o32)
           Product: glibc
           Version: 2.24
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: network
          Assignee: unassigned at sourceware dot org
          Reporter: jeffbai at aosc dot xyz
  Target Milestone: ---

After updating to Glibc 2.24, some programs, for example, wget, curl, and apt
are no longer able to resolve a host name. As shown follows:

root [ autobuild3@master ] # apt update
Err:1  InRelease
  Could not resolve host:
Err:2  InRelease
  Could not resolve host:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
W: Failed to fetch  Could
not resolve host:
W: Failed to fetch  Could
not resolve host:
W: Some index files failed to download. They have been ignored, or old ones
used instead.

root [ autobuild3@master ] # wget
--2016-09-21 01:13:18--
Resolving ( failed: Temporary failure in name
wget: unable to resolve host address ''

The weird part is that ping google actually works normally:

root [ autobuild3@master ] ! ping
PING ( 56 data bytes
64 bytes from icmp_seq=0 ttl=57 time=9.494 ms
64 bytes from icmp_seq=1 ttl=57 time=9.088 ms
64 bytes from icmp_seq=2 ttl=57 time=9.432 ms

In case you are wondering, here is my resolv.conf:

root [ autobuild3@master ] # cat /etc/resolv.conf 

In addition to that, using wget with -4 parameter can work around this issue:

root [ autobuild3@master ] # wget -4
--2016-09-21 01:14:43--
Resolving (,,, ...
Connecting to (||:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: [following]
--2016-09-21 01:14:43--
Resolving (,,, ...
Reusing existing connection to
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: 'index.html'

index.html                        [ <=>                                        
  ]   9.94K  --.-KB/s    in 0.001s  

2016-09-21 01:14:43 (13.9 MB/s) - 'index.html' saved [10179]

P.S.: Everything worked as expected when Glibc 2.23 was installed, no system
configurations were changed before and after the update. I did not encounter
the same issue with other architectures: ARMv7, ARMv8, PowerPC, PPC64, AMD64.

P.P.S.: Glibc 2.24 was built with -O3.

You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]