public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/6843] New: getaddrinfo_a segfaults
@ 2008-08-14 20:45 aurelien at aurel32 dot net
  2008-08-14 20:46 ` [Bug libc/6843] " aurelien at aurel32 dot net
  2008-11-01  0:21 ` drepper at redhat dot com
  0 siblings, 2 replies; 4+ messages in thread
From: aurelien at aurel32 dot net @ 2008-08-14 20:45 UTC (permalink / raw)
  To: glibc-bugs

The following code segfaults with at least glibc >= 2.7 (and CVS). It works 
correctly with versions 2.3.X. I have tested versions in between.

#define _GNU_SOURCE

#include <string.h>
#include <netdb.h>
#include <signal.h>
#include <stdio.h>

int
main (void)
{
#define N 10
  struct gaicb reqmem[N];
  struct gaicb *req[N];
  int n;

  for (n = 0; n < N; ++n)
    {
      asprintf (&reqmem[n].ar_name, "test%d.test.redhat.com", 140 + n);
      reqmem[n].ar_service = NULL;
      reqmem[n].ar_request = NULL;
      reqmem[n].ar_result = NULL;
      req[n] = &reqmem[n];
    }

  getaddrinfo_a (GAI_NOWAIT, req, N, NULL);
  
  return 0;
}

-- 
           Summary: getaddrinfo_a segfaults
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: aurelien at aurel32 dot net
                CC: glibc-bugs at sources dot redhat dot com
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


http://sourceware.org/bugzilla/show_bug.cgi?id=6843

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug libc/6843] getaddrinfo_a segfaults
  2008-08-14 20:45 [Bug libc/6843] New: getaddrinfo_a segfaults aurelien at aurel32 dot net
@ 2008-08-14 20:46 ` aurelien at aurel32 dot net
  2008-11-01  0:21 ` drepper at redhat dot com
  1 sibling, 0 replies; 4+ messages in thread
From: aurelien at aurel32 dot net @ 2008-08-14 20:46 UTC (permalink / raw)
  To: glibc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |debian-glibc at lists dot
                   |                            |debian dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=6843

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug libc/6843] getaddrinfo_a segfaults
  2008-08-14 20:45 [Bug libc/6843] New: getaddrinfo_a segfaults aurelien at aurel32 dot net
  2008-08-14 20:46 ` [Bug libc/6843] " aurelien at aurel32 dot net
@ 2008-11-01  0:21 ` drepper at redhat dot com
  1 sibling, 0 replies; 4+ messages in thread
From: drepper at redhat dot com @ 2008-11-01  0:21 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2008-11-01 00:19 -------
Fixed in cvs.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


http://sourceware.org/bugzilla/show_bug.cgi?id=6843

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug libc/6843] getaddrinfo_a segfaults
       [not found] <bug-6843-131@http.sourceware.org/bugzilla/>
@ 2014-07-02  7:52 ` fweimer at redhat dot com
  0 siblings, 0 replies; 4+ messages in thread
From: fweimer at redhat dot com @ 2014-07-02  7:52 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=6843

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-07-02  7:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-14 20:45 [Bug libc/6843] New: getaddrinfo_a segfaults aurelien at aurel32 dot net
2008-08-14 20:46 ` [Bug libc/6843] " aurelien at aurel32 dot net
2008-11-01  0:21 ` drepper at redhat dot com
     [not found] <bug-6843-131@http.sourceware.org/bugzilla/>
2014-07-02  7:52 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).