[Bug 1062167] [NEW] Segfault in __libc_res_nquerydomain

Joern Heissler percona at joern.heissler.de
Fri Oct 5 10:16:06 UTC 2012


Public bug reported:

Ubuntu 12.04 contains a bug in the eglibc (libc6) package.
It was introduced here:
http://www.eglibc.org/cgi-bin/viewvc.cgi/trunk/libc/resolv/res_query.c?r1=13759&r2=14662
glibc commit 28b59fca7ae3cfc2d57e0007aaa3793d4b775e97

And fixed here:
http://www.eglibc.org/cgi-bin/viewvc.cgi/trunk/libc/resolv/res_query.c?r1=15869&r2=17385
glibc commit 8fdceb2efda8cf724cfc4444af86b5f135ad3172

Reproduce:
#include <netdb.h>
int main(void)
{
    gethostbyname("." + 1);
}

I believe that the patch is correct.
Can you please apply it to 12.04?

$ lsb_release -rd
Description:	Ubuntu 12.04 LTS
Release:	12.04

$ apt-cache policy libc6
libc6:
  Installed: 2.15-0ubuntu10.2
  Candidate: 2.15-0ubuntu10.2
  Version table:
 *** 2.15-0ubuntu10.2 0
        500 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ precise-security/main amd64 Packages
        100 /var/lib/dpkg/status
     2.15-0ubuntu10 0
        500 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages

> What you expected to happen
Not a segfault but maybe an error code.

> What happened instead
Segfault.

** Affects: eglibc (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to eglibc in Ubuntu.
https://bugs.launchpad.net/bugs/1062167

Title:
  Segfault in __libc_res_nquerydomain

Status in “eglibc” package in Ubuntu:
  New

Bug description:
  Ubuntu 12.04 contains a bug in the eglibc (libc6) package.
  It was introduced here:
  http://www.eglibc.org/cgi-bin/viewvc.cgi/trunk/libc/resolv/res_query.c?r1=13759&r2=14662
  glibc commit 28b59fca7ae3cfc2d57e0007aaa3793d4b775e97

  And fixed here:
  http://www.eglibc.org/cgi-bin/viewvc.cgi/trunk/libc/resolv/res_query.c?r1=15869&r2=17385
  glibc commit 8fdceb2efda8cf724cfc4444af86b5f135ad3172

  Reproduce:
  #include <netdb.h>
  int main(void)
  {
      gethostbyname("." + 1);
  }

  I believe that the patch is correct.
  Can you please apply it to 12.04?

  $ lsb_release -rd
  Description:	Ubuntu 12.04 LTS
  Release:	12.04

  $ apt-cache policy libc6
  libc6:
    Installed: 2.15-0ubuntu10.2
    Candidate: 2.15-0ubuntu10.2
    Version table:
   *** 2.15-0ubuntu10.2 0
          500 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
          500 http://security.ubuntu.com/ubuntu/ precise-security/main amd64 Packages
          100 /var/lib/dpkg/status
       2.15-0ubuntu10 0
          500 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages

  > What you expected to happen
  Not a segfault but maybe an error code.

  > What happened instead
  Segfault.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/1062167/+subscriptions




More information about the foundations-bugs mailing list