public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/5491] Valgrind detects invalid read during getaddrinfo w/o nscd running
2007-12-17 4:28 [Bug libc/5491] New: Valgrind detects invalid read during getaddrinfo w/o nscd running harningt at gmail dot com
@ 2007-12-17 4:28 ` harningt at gmail dot com
2007-12-17 4:29 ` harningt at gmail dot com
` (9 subsequent siblings)
10 siblings, 0 replies; 14+ messages in thread
From: harningt at gmail dot com @ 2007-12-17 4:28 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From harningt at gmail dot com 2007-12-17 04:28 -------
Created an attachment (id=2141)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=2141&action=view)
64-bit valgrind output
--
http://sourceware.org/bugzilla/show_bug.cgi?id=5491
------- 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] 14+ messages in thread
* [Bug libc/5491] New: Valgrind detects invalid read during getaddrinfo w/o nscd running
@ 2007-12-17 4:28 harningt at gmail dot com
2007-12-17 4:28 ` [Bug libc/5491] " harningt at gmail dot com
` (10 more replies)
0 siblings, 11 replies; 14+ messages in thread
From: harningt at gmail dot com @ 2007-12-17 4:28 UTC (permalink / raw)
To: glibc-bugs
This is using glibc 2.7 (the entry box needs to be fixed...)
When I use getaddrinfo, valgrind detects a read of size 8 when 'nscd' is not
running. When 'nscd' is running, it does not...
(In 32-bit mode it is an invalid read of size 4 ... so I bet its a ptr or size_t...)
Attached is a source file which demonstrates this problem.
Also attached is the 2 valgrind outputs (32 and 64-bit versions).
Details:
I'm running Gentoo Linux w/ `uname -a`:
Linux shiva 2.6.22-ck1 #6 SMP Tue Sep 25 04:53:20 EDT 2007 x86_64 AMD Athlon(tm)
64 X2 Dual Core Processor 6000+ AuthenticAMD GNU/Linux
--
Summary: Valgrind detects invalid read during getaddrinfo w/o
nscd running
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: harningt at gmail dot com
CC: glibc-bugs at sources dot redhat dot com
GCC build triplet: x86_64-pc-linux-gnu
GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: x86_64-pc-linux-gnu
http://sourceware.org/bugzilla/show_bug.cgi?id=5491
------- 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] 14+ messages in thread
* [Bug libc/5491] Valgrind detects invalid read during getaddrinfo w/o nscd running
2007-12-17 4:28 [Bug libc/5491] New: Valgrind detects invalid read during getaddrinfo w/o nscd running harningt at gmail dot com
2007-12-17 4:28 ` [Bug libc/5491] " harningt at gmail dot com
@ 2007-12-17 4:29 ` harningt at gmail dot com
2007-12-17 4:29 ` harningt at gmail dot com
` (8 subsequent siblings)
10 siblings, 0 replies; 14+ messages in thread
From: harningt at gmail dot com @ 2007-12-17 4:29 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From harningt at gmail dot com 2007-12-17 04:28 -------
Created an attachment (id=2142)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=2142&action=view)
32-bit valgrind output
--
http://sourceware.org/bugzilla/show_bug.cgi?id=5491
------- 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] 14+ messages in thread
* [Bug libc/5491] Valgrind detects invalid read during getaddrinfo w/o nscd running
2007-12-17 4:28 [Bug libc/5491] New: Valgrind detects invalid read during getaddrinfo w/o nscd running harningt at gmail dot com
2007-12-17 4:28 ` [Bug libc/5491] " harningt at gmail dot com
2007-12-17 4:29 ` harningt at gmail dot com
@ 2007-12-17 4:29 ` harningt at gmail dot com
2007-12-17 4:31 ` harningt at gmail dot com
` (7 subsequent siblings)
10 siblings, 0 replies; 14+ messages in thread
From: harningt at gmail dot com @ 2007-12-17 4:29 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From harningt at gmail dot com 2007-12-17 04:29 -------
Created an attachment (id=2143)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=2143&action=view)
src sample which demonstrates the problem
--
http://sourceware.org/bugzilla/show_bug.cgi?id=5491
------- 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] 14+ messages in thread
* [Bug libc/5491] Valgrind detects invalid read during getaddrinfo w/o nscd running
2007-12-17 4:28 [Bug libc/5491] New: Valgrind detects invalid read during getaddrinfo w/o nscd running harningt at gmail dot com
` (3 preceding siblings ...)
2007-12-17 4:31 ` harningt at gmail dot com
@ 2007-12-17 4:31 ` harningt at gmail dot com
2007-12-18 15:49 ` ismail at pardus dot org dot tr
` (5 subsequent siblings)
10 siblings, 0 replies; 14+ messages in thread
From: harningt at gmail dot com @ 2007-12-17 4:31 UTC (permalink / raw)
To: glibc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Attachment #2143|application/octet-stream |text/x-csrc
mime type| |
http://sourceware.org/bugzilla/show_bug.cgi?id=5491
------- 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] 14+ messages in thread
* [Bug libc/5491] Valgrind detects invalid read during getaddrinfo w/o nscd running
2007-12-17 4:28 [Bug libc/5491] New: Valgrind detects invalid read during getaddrinfo w/o nscd running harningt at gmail dot com
` (2 preceding siblings ...)
2007-12-17 4:29 ` harningt at gmail dot com
@ 2007-12-17 4:31 ` harningt at gmail dot com
2007-12-17 4:31 ` harningt at gmail dot com
` (6 subsequent siblings)
10 siblings, 0 replies; 14+ messages in thread
From: harningt at gmail dot com @ 2007-12-17 4:31 UTC (permalink / raw)
To: glibc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Attachment #2143|text/x-csrc |text/plain
mime type| |
http://sourceware.org/bugzilla/show_bug.cgi?id=5491
------- 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] 14+ messages in thread
* [Bug libc/5491] Valgrind detects invalid read during getaddrinfo w/o nscd running
2007-12-17 4:28 [Bug libc/5491] New: Valgrind detects invalid read during getaddrinfo w/o nscd running harningt at gmail dot com
` (4 preceding siblings ...)
2007-12-17 4:31 ` harningt at gmail dot com
@ 2007-12-18 15:49 ` ismail at pardus dot org dot tr
2008-01-11 0:32 ` drepper at redhat dot com
` (4 subsequent siblings)
10 siblings, 0 replies; 14+ messages in thread
From: ismail at pardus dot org dot tr @ 2007-12-18 15:49 UTC (permalink / raw)
To: glibc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |ismail at pardus dot org dot
| |tr
GCC target triplet|x86_64-pc-linux-gnu |x86_64-pc-linux-gnu
http://sourceware.org/bugzilla/show_bug.cgi?id=5491
------- 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] 14+ messages in thread
* [Bug libc/5491] Valgrind detects invalid read during getaddrinfo w/o nscd running
2007-12-17 4:28 [Bug libc/5491] New: Valgrind detects invalid read during getaddrinfo w/o nscd running harningt at gmail dot com
` (5 preceding siblings ...)
2007-12-18 15:49 ` ismail at pardus dot org dot tr
@ 2008-01-11 0:32 ` drepper at redhat dot com
2008-04-07 18:22 ` drepper at redhat dot com
` (3 subsequent siblings)
10 siblings, 0 replies; 14+ messages in thread
From: drepper at redhat dot com @ 2008-01-11 0:32 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From drepper at redhat dot com 2008-01-11 00:31 -------
I cannot reproduce any problem, neither in the 2.7 in F8 nor the current
mainline glibc. You'll have to debug this yourself. E.g., run with debug
information for glibc installed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |WAITING
http://sourceware.org/bugzilla/show_bug.cgi?id=5491
------- 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] 14+ messages in thread
* [Bug libc/5491] Valgrind detects invalid read during getaddrinfo w/o nscd running
2007-12-17 4:28 [Bug libc/5491] New: Valgrind detects invalid read during getaddrinfo w/o nscd running harningt at gmail dot com
` (6 preceding siblings ...)
2008-01-11 0:32 ` drepper at redhat dot com
@ 2008-04-07 18:22 ` drepper at redhat dot com
2009-06-10 14:12 ` ry at tinyclouds dot org
` (2 subsequent siblings)
10 siblings, 0 replies; 14+ messages in thread
From: drepper at redhat dot com @ 2008-04-07 18:22 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From drepper at redhat dot com 2008-04-07 18:21 -------
No reply in 3 months. If you have the requested information attach it and
reopen the bug.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |WORKSFORME
http://sourceware.org/bugzilla/show_bug.cgi?id=5491
------- 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] 14+ messages in thread
* [Bug libc/5491] Valgrind detects invalid read during getaddrinfo w/o nscd running
2007-12-17 4:28 [Bug libc/5491] New: Valgrind detects invalid read during getaddrinfo w/o nscd running harningt at gmail dot com
` (7 preceding siblings ...)
2008-04-07 18:22 ` drepper at redhat dot com
@ 2009-06-10 14:12 ` ry at tinyclouds dot org
2009-06-10 17:52 ` pasky at suse dot cz
2010-06-01 3:34 ` pasky at suse dot cz
10 siblings, 0 replies; 14+ messages in thread
From: ry at tinyclouds dot org @ 2009-06-10 14:12 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From ry at tinyclouds dot org 2009-06-10 14:12 -------
I am also experiencing this with libc 2.7-10ubuntu4 and gcc version 4.2.4 (Ubuntu
4.2.4-1ubuntu3).
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|WORKSFORME |
http://sourceware.org/bugzilla/show_bug.cgi?id=5491
------- 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] 14+ messages in thread
* [Bug libc/5491] Valgrind detects invalid read during getaddrinfo w/o nscd running
2007-12-17 4:28 [Bug libc/5491] New: Valgrind detects invalid read during getaddrinfo w/o nscd running harningt at gmail dot com
` (8 preceding siblings ...)
2009-06-10 14:12 ` ry at tinyclouds dot org
@ 2009-06-10 17:52 ` pasky at suse dot cz
2010-06-01 3:34 ` pasky at suse dot cz
10 siblings, 0 replies; 14+ messages in thread
From: pasky at suse dot cz @ 2009-06-10 17:52 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From pasky at suse dot cz 2009-06-10 17:52 -------
I can't reproduce this either.
If you can, can you try to reproduce this on glibc-2.10 or the latest glibc
mainline? If not, the best course of action I think is to file the bug with your
distribution instead.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |WAITING
http://sourceware.org/bugzilla/show_bug.cgi?id=5491
------- 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] 14+ messages in thread
* [Bug libc/5491] Valgrind detects invalid read during getaddrinfo w/o nscd running
2007-12-17 4:28 [Bug libc/5491] New: Valgrind detects invalid read during getaddrinfo w/o nscd running harningt at gmail dot com
` (9 preceding siblings ...)
2009-06-10 17:52 ` pasky at suse dot cz
@ 2010-06-01 3:34 ` pasky at suse dot cz
10 siblings, 0 replies; 14+ messages in thread
From: pasky at suse dot cz @ 2010-06-01 3:34 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From pasky at suse dot cz 2010-06-01 03:33 -------
no further response
--
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |WORKSFORME
http://sourceware.org/bugzilla/show_bug.cgi?id=5491
------- 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] 14+ messages in thread
* [Bug libc/5491] Valgrind detects invalid read during getaddrinfo w/o nscd running
[not found] <bug-5491-131@http.sourceware.org/bugzilla/>
2013-05-18 10:05 ` gglater62 at gmail dot com
@ 2013-05-18 10:28 ` schwab@linux-m68k.org
1 sibling, 0 replies; 14+ messages in thread
From: schwab@linux-m68k.org @ 2013-05-18 10:28 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=5491
--- Comment #10 from Andreas Schwab <schwab@linux-m68k.org> 2013-05-18 10:28:05 UTC ---
msg_hdr.msg_flags is not used by sendmmsg.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libc/5491] Valgrind detects invalid read during getaddrinfo w/o nscd running
[not found] <bug-5491-131@http.sourceware.org/bugzilla/>
@ 2013-05-18 10:05 ` gglater62 at gmail dot com
2013-05-18 10:28 ` schwab@linux-m68k.org
1 sibling, 0 replies; 14+ messages in thread
From: gglater62 at gmail dot com @ 2013-05-18 10:05 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=5491
--- Comment #9 from gglater62 at gmail dot com 2013-05-18 10:05:40 UTC ---
Created attachment 7034
--> http://sourceware.org/bugzilla/attachment.cgi?id=7034
Sample code
With this sample code valgrind shows errors:
==2394== Syscall param sendmsg(mmsg[0].msg_hdr) points to uninitialised byte(s)
==2394== at 0x41435B6: sendmmsg (in /lib/libc-2.17.so)
==2394== by 0x4625254: __libc_res_nsend (in /lib/libresolv-2.17.so)
==2394== by 0x462292B: __libc_res_nquery (in /lib/libresolv-2.17.so)
==2394== by 0x4622F4C: __libc_res_nquerydomain (in /lib/libresolv-2.17.so)
==2394== by 0x462357B: __libc_res_nsearch (in /lib/libresolv-2.17.so)
==2394== by 0x4617605: _nss_dns_gethostbyname4_r (in
/lib/libnss_dns-2.17.so)
==2394== by 0x412631E: gaih_inet (in /lib/libc-2.17.so)
==2394== by 0x41292F2: getaddrinfo (in /lib/libc-2.17.so)
==2394== by 0x8048514: do_real_lookup (in /home/users/pld/C/a.out)
==2394== by 0x804853B: main (in /home/users/pld/C/a.out)
I looked at the code and in resolv/res_send.c around line 1115
reqs[0].msg_hdr.msg_flags and reqs[1].msg_hdr.msg_flags are not initialised.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2013-05-18 10:28 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-17 4:28 [Bug libc/5491] New: Valgrind detects invalid read during getaddrinfo w/o nscd running harningt at gmail dot com
2007-12-17 4:28 ` [Bug libc/5491] " harningt at gmail dot com
2007-12-17 4:29 ` harningt at gmail dot com
2007-12-17 4:29 ` harningt at gmail dot com
2007-12-17 4:31 ` harningt at gmail dot com
2007-12-17 4:31 ` harningt at gmail dot com
2007-12-18 15:49 ` ismail at pardus dot org dot tr
2008-01-11 0:32 ` drepper at redhat dot com
2008-04-07 18:22 ` drepper at redhat dot com
2009-06-10 14:12 ` ry at tinyclouds dot org
2009-06-10 17:52 ` pasky at suse dot cz
2010-06-01 3:34 ` pasky at suse dot cz
[not found] <bug-5491-131@http.sourceware.org/bugzilla/>
2013-05-18 10:05 ` gglater62 at gmail dot com
2013-05-18 10:28 ` schwab@linux-m68k.org
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).