public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/799] New: Resolver on GNU/kFreeBSD fails with IPv4 nameservers
@ 2005-03-23 17:07 aurelien at aurel32 dot net
2005-03-23 17:08 ` [Bug libc/799] " aurelien at aurel32 dot net
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: aurelien at aurel32 dot net @ 2005-03-23 17:07 UTC (permalink / raw)
To: glibc-bugs
When used on GNU/kFreeBSD (Debian GNU/kFreeBSD), the resolver fails if the
nameserver are IPv4 nameservers, but works if the nameserver are IPv6 nameservers.
The problem is that the socklen argument of connect() is always the length of an
IPv6 socket address, even if the socket address is an IPv4 one. It does not hurt
the Linux kernel, but it does hurt the FreeBSD kernel.
Patch will follow. Please note that this patch doesn't break resolver on GNU/Linux.
--
Summary: Resolver on GNU/kFreeBSD fails with IPv4 nameservers
Product: glibc
Version: 2.3.4
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: gotom at debian dot or dot jp
ReportedBy: aurelien at aurel32 dot net
CC: glibc-bugs at sources dot redhat dot com
GCC build triplet: i386-kfreebsd-gnu
GCC host triplet: i386-kfreebsd-gnu
GCC target triplet: i386-kfreebsd-gnu
http://sources.redhat.com/bugzilla/show_bug.cgi?id=799
------- 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] 5+ messages in thread
* [Bug libc/799] Resolver on GNU/kFreeBSD fails with IPv4 nameservers
2005-03-23 17:07 [Bug libc/799] New: Resolver on GNU/kFreeBSD fails with IPv4 nameservers aurelien at aurel32 dot net
@ 2005-03-23 17:08 ` aurelien at aurel32 dot net
2005-03-23 17:10 ` aurelien at aurel32 dot net
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: aurelien at aurel32 dot net @ 2005-03-23 17:08 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From aurelien at aurel32 dot net 2005-03-23 17:08 -------
Created an attachment (id=443)
--> (http://sources.redhat.com/bugzilla/attachment.cgi?id=443&action=view)
Fix for bug #799
--
http://sources.redhat.com/bugzilla/show_bug.cgi?id=799
------- 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] 5+ messages in thread
* [Bug libc/799] Resolver on GNU/kFreeBSD fails with IPv4 nameservers
2005-03-23 17:07 [Bug libc/799] New: Resolver on GNU/kFreeBSD fails with IPv4 nameservers aurelien at aurel32 dot net
2005-03-23 17:08 ` [Bug libc/799] " aurelien at aurel32 dot net
@ 2005-03-23 17:10 ` aurelien at aurel32 dot net
2005-03-23 17:11 ` aurelien at aurel32 dot net
2005-03-23 23:02 ` aurelien at aurel32 dot net
3 siblings, 0 replies; 5+ messages in thread
From: aurelien at aurel32 dot net @ 2005-03-23 17:10 UTC (permalink / raw)
To: glibc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Attachment #443|glibc_resolver_kfreebsd.patc|/tmp/glibc-
filename|h |2.3.4_resolver_kfreebsd.patc
| |h
http://sources.redhat.com/bugzilla/show_bug.cgi?id=799
------- 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] 5+ messages in thread
* [Bug libc/799] Resolver on GNU/kFreeBSD fails with IPv4 nameservers
2005-03-23 17:07 [Bug libc/799] New: Resolver on GNU/kFreeBSD fails with IPv4 nameservers aurelien at aurel32 dot net
2005-03-23 17:08 ` [Bug libc/799] " aurelien at aurel32 dot net
2005-03-23 17:10 ` aurelien at aurel32 dot net
@ 2005-03-23 17:11 ` aurelien at aurel32 dot net
2005-03-23 23:02 ` aurelien at aurel32 dot net
3 siblings, 0 replies; 5+ messages in thread
From: aurelien at aurel32 dot net @ 2005-03-23 17:11 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From aurelien at aurel32 dot net 2005-03-23 17:11 -------
Created an attachment (id=444)
--> (http://sources.redhat.com/bugzilla/attachment.cgi?id=444&action=view)
Patch for bug #799
Sorry, the previous patch was for glibc 2.3.1, this one is for version 2.3.4
--
What |Removed |Added
----------------------------------------------------------------------------
Attachment #443 is|0 |1
obsolete| |
http://sources.redhat.com/bugzilla/show_bug.cgi?id=799
------- 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] 5+ messages in thread
* [Bug libc/799] Resolver on GNU/kFreeBSD fails with IPv4 nameservers
2005-03-23 17:07 [Bug libc/799] New: Resolver on GNU/kFreeBSD fails with IPv4 nameservers aurelien at aurel32 dot net
` (2 preceding siblings ...)
2005-03-23 17:11 ` aurelien at aurel32 dot net
@ 2005-03-23 23:02 ` aurelien at aurel32 dot net
3 siblings, 0 replies; 5+ messages in thread
From: aurelien at aurel32 dot net @ 2005-03-23 23:02 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From aurelien at aurel32 dot net 2005-03-23 23:02 -------
Actually I only "upported" the patch from glibc 2.3.1, without building and
testing a glibc 2.3.4 on that machine.
After looking the code again, it seems that the code of glibc 2.3.4 is correct
with regard to socklen.
Sorry for bothering you, I am closing the bug.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://sources.redhat.com/bugzilla/show_bug.cgi?id=799
------- 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] 5+ messages in thread
end of thread, other threads:[~2005-03-23 23:02 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-23 17:07 [Bug libc/799] New: Resolver on GNU/kFreeBSD fails with IPv4 nameservers aurelien at aurel32 dot net
2005-03-23 17:08 ` [Bug libc/799] " aurelien at aurel32 dot net
2005-03-23 17:10 ` aurelien at aurel32 dot net
2005-03-23 17:11 ` aurelien at aurel32 dot net
2005-03-23 23:02 ` aurelien at aurel32 dot net
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).