Bug 476505 - regression: Host resolving fails when many aliases are present.
regression: Host resolving fails when many aliases are present.
Product: Fedora
Classification: Fedora
Component: glibc (Show other bugs)
All Linux
low Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2008-12-15 05:30 EST by Emmanuel Thomé
Modified: 2009-04-23 15:34 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2009-04-23 15:34:10 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Emmanuel Thomé 2008-12-15 05:30:16 EST
$ rpm -q glibc

In gaih_inet, a fixed size buffer is allocated for the work within the resolving routines. This buffer is populated in particular from within parse_line, where pointers to all the aliases are placed.

When many aliases are present, resolving fails because this buffer fills up. This happens irrespective of the resolving method used (files or NIS ; does not apply to dns).

Have this for example in /etc/hosts:  a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a16 a17 a18 a19 a20 a21 a22 a23 a24 a25 a26 a27 a28 a29 a30 a31 a32 a33 a34 a35 a36 a37 a38 a39 a40 a41 a42 a43 a44 a45 a46 a47 a48 a49 a50 a51 a52 a53 a54 a55 a56 a57 a58 a59 a60 a61 a62 a63 a64 a65 a66 a67 a68 a69 a70 a71 a72 a73 a74 a75 a76 a77 a78 a79 a80 a81 a82 a83 a84 a85 a86 a87 a88 a89 a90 a91 a92 a93 a94 a95 a96 a97


$ telnet a0
telnet: a0: System error
a0: Resolver internal error

One should get ``trying'' instead.

Package glibc-2.8-8 does not suffer from this problem.

Bug 473073 contains a partial patch for the problem, albeit certainly not satisfactory at a more general level.

I do have a host here which I can't access because of this very bug.

Comment 1 Ulrich Drepper 2008-12-29 18:46:34 EST
Fixed upstream.  The reference to bug 473073 is wrong, this is a completely different issue.
Comment 2 Emmanuel Thomé 2009-04-23 15:34:10 EDT
glibc-2.9.90-19.x86_64 works ok. Thanks.

Note You need to log in before you can comment on or make changes to this bug.