<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>23173</bug_id>
          
          <creation_ts>2010-03-17 11:14:30 +0300</creation_ts>
          <short_desc>getaddrinfo(AF_UNSPEC) regression</short_desc>
          <delta_ts>2010-03-19 16:16:27 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>glibc-core</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Valery Inozemtsev">shrek</reporter>
          <assigned_to name="Gleb F-Malinovskiy">glebfm</assigned_to>
          <cc>evg</cc>
    
    <cc>glebfm</cc>
    
    <cc>lav</cc>
    
    <cc>ldv</cc>
    
    <cc>stalker</cc>
    
    <cc>thresh</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>107871</commentid>
    <comment_count>0</comment_count>
    <who name="Valery Inozemtsev">shrek</who>
    <bug_when>2010-03-17 11:14:30 +0300</bug_when>
    <thetext>после обновления с 2.11.1-alt2 до 2.11.1-alt3

$ ssh armor
ssh: Could not resolve hostname varmor.altlinux.org: No address associated with hostname

$ wget http://ftp.altlinux.org/pub/distributions/archive/Sisyphus/2010/03/01/files/i586/RPMS/glibc-pthread-2.11.1-alt3.i586.rpm
--2010-03-17 11:08:03--  http://ftp.altlinux.org/pub/distributions/archive/Sisyphus/2010/03/01/files/i586/RPMS/glibc-pthread-2.11.1-alt3.i586.rpm
Распознаётся ftp.altlinux.org... сбой: С именем хоста не связано ни одного адреса.
wget: unable to resolve host address «ftp.altlinux.org»

почтовый клиент тоже не работает</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107872</commentid>
    <comment_count>1</comment_count>
    <who name="Valery Inozemtsev">shrek</who>
    <bug_when>2010-03-17 11:16:20 +0300</bug_when>
    <thetext>лечится откатом на 2.11.1-alt2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107876</commentid>
    <comment_count>2</comment_count>
    <who name="Konstantin Pavlov">thresh</who>
    <bug_when>2010-03-17 11:41:53 +0300</bug_when>
    <thetext>подтверждаю, только у меня резолвинг ломается совсем</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107882</commentid>
    <comment_count>3</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2010-03-17 13:36:20 +0300</bug_when>
    <thetext>$ ltrace -e gethostbyname,getaddrinfo ssh ftp.altlinux.org
getaddrinfo(&quot;ftp.altlinux.org&quot;, &quot;22&quot;, 0x7fffbb176800, 0x7fffbb176850)          = -5
ssh: Could not resolve hostname ftp.altlinux.org: No address associated with hostname
+++ exited (status 255) +++
$ ltrace -e gethostbyname,getaddrinfo hostinfo ftp.altlinux.org
gethostbyname(&quot;ftp.altlinux.org&quot;)                                              = 0x2ab121957920
 address: 194.107.17.7
hostname: ftp.altlinux.org
 aliases: 

+++ exited (status 0) +++</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107886</commentid>
    <comment_count>4</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2010-03-17 15:07:04 +0300</bug_when>
    <thetext>This regression is result of upstream commit:
a682a1bf553b1efe4dbb03207fece5b719cec482 Fix a few error cases in *name4_r lookup handling.

Quick workaround: disable nis in /etc/nsswitch.conf:
-hosts:      files nisplus nis dns
+hosts:      files nisplus dns</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107887</commentid>
    <comment_count>5</comment_count>
      <attachid>4309</attachid>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2010-03-17 15:09:16 +0300</bug_when>
    <thetext>Created attachment 4309
Simple test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107888</commentid>
    <comment_count>6</comment_count>
    <who name="Andrey Rahmatullin">wrar</who>
    <bug_when>2010-03-17 15:19:43 +0300</bug_when>
    <thetext>(В ответ на комментарий №4)
&gt; -hosts:      files nisplus nis dns
&gt; +hosts:      files nisplus dns
А этот антиквариат ещё не пора вычеркнуть из дефолтов?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107893</commentid>
    <comment_count>7</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2010-03-17 22:12:43 +0300</bug_when>
    <thetext>(In reply to comment #6)
&gt; (В ответ на комментарий №4)
&gt; &gt; -hosts:      files nisplus nis dns
&gt; &gt; +hosts:      files nisplus dns
&gt; А этот антиквариат ещё не пора вычеркнуть из дефолтов?

Типа nis/nis+ RIP?  Может быть и пора.  Не попробуешь -- не узнаешь.

С другой стороны, в 2.11.1-alt3 сломался именно nss_nis, и если бы не дефолты, то никто бы этого даже не заметил.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107894</commentid>
    <comment_count>8</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2010-03-17 23:37:36 +0300</bug_when>
    <thetext>glibc-6:2.11.1-alt4 -&gt; sisyphus:

* Wed Mar 17 2010 Dmitry V. Levin &lt;ldv@altlinux&gt; 6:2.11.1-alt4

- nss_nis: Reverted part of commit glibc-2.11-64-ga682a1b
  to fix regression (closes: #23173).
- nsswitch.conf: Disabled nis/nis+ by default.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>4309</attachid>
            <date>2010-03-17 15:09:16 +0300</date>
            <delta_ts>2010-03-17 15:09:16 +0300</delta_ts>
            <desc>Simple test case</desc>
            <filename>tst-gai.c</filename>
            <type>text/plain</type>
            <size>346</size>
            <attacher name="Dmitry V. Levin">ldv</attacher>
            
              <data encoding="base64">I2luY2x1ZGUgPHN0cmluZy5oPgojaW5jbHVkZSA8ZXJyb3IuaD4KI2luY2x1ZGUgPG5ldGRiLmg+
CgppbnQKbWFpbih2b2lkKQp7CglpbnQgICAgIGVycjsKCXN0cnVjdCBhZGRyaW5mbyBoaW50cywg
KnJlczsKCgltZW1zZXQoJmhpbnRzLCAwLCBzaXplb2YoaGludHMpKTsKCWhpbnRzLmFpX2ZhbWls
eSA9IEFGX1VOU1BFQzsKCWhpbnRzLmFpX3NvY2t0eXBlID0gU09DS19TVFJFQU07CglpZiAoKGVy
ciA9IGdldGFkZHJpbmZvKCJsb2NhbGhvc3QuIiwgIjgwIiwgJmhpbnRzLCAmcmVzKSkpCgkJZXJy
b3IoMSwgMCwgImdldGFkZHJpbmZvOiAlcyIsIGdhaV9zdHJlcnJvcihlcnIpKTsKCXJldHVybiAw
Owp9Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>