2010-05-18 23:53:17 |
Matthias Andree |
bug |
|
|
added bug |
2010-05-18 23:53:17 |
Matthias Andree |
attachment added |
|
demo code that shows the problem, see problem report for instructions http://launchpadlibrarian.net/48687080/libcbug-demo.c |
|
2010-05-18 23:53:17 |
Matthias Andree |
attachment added |
|
Dependencies.txt http://launchpadlibrarian.net/48686102/Dependencies.txt |
|
2010-05-18 23:54:26 |
Matthias Andree |
attachment removed |
Dependencies.txt http://launchpadlibrarian.net/48686102/Dependencies.txt |
|
|
2010-05-18 23:56:31 |
Matthias Andree |
description |
Presume I have a computer that has no global IPv6 addresses, but a few IPv4 addresses.
Applications using getaddrinfo() with hints.ai_flags = AI_ADDRCONFIG set will properly omit IPv6 addresses, HOWEVER they will return duplicate IPv4 addresses.
Demonstration code attached.
Without IPv6 addresses:
$ gcc -Wall -Wextra -pedantic -O -o libcbug-demo libcbug-demo.c
$ ip a s | grep inet
inet 127.0.0.1/8 brd 127.255.255.255 scope host lo
inet 127.0.0.2/8 brd 127.255.255.255 scope host secondary lo
inet6 ::1/128 scope host
inet 192.168.0.1/24 brd 192.168.0.255 scope global eth0
$ ./libcbug-demo localhost echo
Address 1: 127.0.0.1
Address 2: 127.0.0.1
(127.0.0.1 should be listed only once, Solaris 10 for instance achieves that)
Now configure a fake IPv6 address (don't do this on hosts with real IPv6 connectivity, it suffices to use your real IPv6 address) and re-run the application:
$ ip a a 2001::2001 dev eth0 # set up IPv6
$ ./libcbug-demo localhost echo
Address 1: ::1
Address 2: 127.0.0.1
$ ip a d 2001::2001 dev eth0 # deconfigure bogus address
(This is fine)
Practical consequence: excessive connection retries by applications that possibly take a long time.
This isn't Ubuntu specific.
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: libc6 2.11.1-0ubuntu7
ProcVersionSignature: Ubuntu 2.6.32-22.33-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-22-generic x86_64
NonfreeKernelModules: fglrx
Architecture: amd64
Date: Wed May 19 01:13:51 2010
ProcEnviron:
PATH=(custom, no user)
LANG=de_DE.UTF-8
SHELL=/bin/bash
SourcePackage: eglibc |
Presume I have a computer that has no global IPv6 addresses, but a few IPv4 addresses.
Applications using getaddrinfo() with hints.ai_flags = AI_ADDRCONFIG set will properly omit IPv6 addresses, HOWEVER they will return duplicate IPv4 addresses.
Demonstration code attached.
Without IPv6 addresses:
# show setup
$ grep -w localhost /etc/hosts
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
$ ip a s | grep inet
inet 127.0.0.1/8 brd 127.255.255.255 scope host lo
inet 127.0.0.2/8 brd 127.255.255.255 scope host secondary lo
inet6 ::1/128 scope host
inet 192.168.0.1/24 brd 192.168.0.255 scope global eth0
# compile test case
$ gcc -Wall -Wextra -pedantic -O -o libcbug-demo libcbug-demo.c
# run test case
$ ./libcbug-demo localhost echo
Address 1: 127.0.0.1
Address 2: 127.0.0.1
(127.0.0.1 should be listed only once, Solaris 10 for instance achieves that)
Now configure a fake IPv6 address (don't do this on hosts with real IPv6 connectivity, it suffices to use your real IPv6 address) and re-run the application:
$ ip a a 2001::2001 dev eth0 # set up IPv6
$ ./libcbug-demo localhost echo
Address 1: ::1
Address 2: 127.0.0.1
$ ip a d 2001::2001 dev eth0 # deconfigure bogus address
(This is fine)
Practical consequence: excessive connection retries by applications that possibly take a long time.
This isn't Ubuntu specific.
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: libc6 2.11.1-0ubuntu7
ProcVersionSignature: Ubuntu 2.6.32-22.33-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-22-generic x86_64
NonfreeKernelModules: fglrx
Architecture: amd64
Date: Wed May 19 01:13:51 2010
ProcEnviron:
PATH=(custom, no user)
LANG=de_DE.UTF-8
SHELL=/bin/bash
SourcePackage: eglibc
|
|
2010-05-18 23:56:38 |
Matthias Andree |
eglibc (Ubuntu): status |
New |
Confirmed |
|
2010-05-18 23:56:49 |
Matthias Andree |
nominated for series |
|
Ubuntu Maverick |
|
2010-05-18 23:56:57 |
Matthias Andree |
nominated for series |
|
Ubuntu Karmic |
|
2010-05-18 23:57:10 |
Matthias Andree |
nominated for series |
|
Ubuntu Lucid |
|
2010-05-19 00:04:26 |
Matthias Andree |
description |
Presume I have a computer that has no global IPv6 addresses, but a few IPv4 addresses.
Applications using getaddrinfo() with hints.ai_flags = AI_ADDRCONFIG set will properly omit IPv6 addresses, HOWEVER they will return duplicate IPv4 addresses.
Demonstration code attached.
Without IPv6 addresses:
# show setup
$ grep -w localhost /etc/hosts
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
$ ip a s | grep inet
inet 127.0.0.1/8 brd 127.255.255.255 scope host lo
inet 127.0.0.2/8 brd 127.255.255.255 scope host secondary lo
inet6 ::1/128 scope host
inet 192.168.0.1/24 brd 192.168.0.255 scope global eth0
# compile test case
$ gcc -Wall -Wextra -pedantic -O -o libcbug-demo libcbug-demo.c
# run test case
$ ./libcbug-demo localhost echo
Address 1: 127.0.0.1
Address 2: 127.0.0.1
(127.0.0.1 should be listed only once, Solaris 10 for instance achieves that)
Now configure a fake IPv6 address (don't do this on hosts with real IPv6 connectivity, it suffices to use your real IPv6 address) and re-run the application:
$ ip a a 2001::2001 dev eth0 # set up IPv6
$ ./libcbug-demo localhost echo
Address 1: ::1
Address 2: 127.0.0.1
$ ip a d 2001::2001 dev eth0 # deconfigure bogus address
(This is fine)
Practical consequence: excessive connection retries by applications that possibly take a long time.
This isn't Ubuntu specific.
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: libc6 2.11.1-0ubuntu7
ProcVersionSignature: Ubuntu 2.6.32-22.33-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-22-generic x86_64
NonfreeKernelModules: fglrx
Architecture: amd64
Date: Wed May 19 01:13:51 2010
ProcEnviron:
PATH=(custom, no user)
LANG=de_DE.UTF-8
SHELL=/bin/bash
SourcePackage: eglibc
|
Presume I have a computer that has no global IPv6 addresses, but a few IPv4 addresses.
Applications using getaddrinfo() with hints.ai_flags = AI_ADDRCONFIG set will properly omit IPv6 addresses, HOWEVER they will return duplicate IPv4 addresses.
Demonstration code attached.
Without IPv6 addresses:
# show setup
$ grep -w localhost /etc/hosts
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
$ ip a s | grep inet
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
inet 192.168.0.4/24 brd 192.168.0.255 scope global eth0
inet6 fe80::226:XXXX:XXXX:XXXX/64 scope link # masked for privacy
# compile test case
$ gcc -Wall -Wextra -pedantic -O -o libcbug-demo libcbug-demo.c
# run test case
$ ./libcbug-demo localhost echo
Address 1: 127.0.0.1
Address 2: 127.0.0.1
(127.0.0.1 should be listed only once, Solaris 10 for instance achieves that)
Now configure a fake IPv6 address (don't do this on hosts with real IPv6 connectivity, it suffices to use your real IPv6 address) and re-run the application:
$ ip a a 2001::2001 dev eth0 # set up IPv6
$ ./libcbug-demo localhost echo
Address 1: ::1
Address 2: 127.0.0.1
$ ip a d 2001::2001 dev eth0 # deconfigure bogus address
(This is fine)
Practical consequence: excessive connection retries by applications that possibly take a long time.
This isn't Ubuntu specific.
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: libc6 2.11.1-0ubuntu7
ProcVersionSignature: Ubuntu 2.6.32-22.33-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-22-generic x86_64
NonfreeKernelModules: fglrx
Architecture: amd64
Date: Wed May 19 01:13:51 2010
ProcEnviron:
PATH=(custom, no user)
LANG=de_DE.UTF-8
SHELL=/bin/bash
SourcePackage: eglibc
|
|
2015-05-01 09:49:01 |
dino99 |
eglibc (Ubuntu): status |
Confirmed |
Invalid |
|
2015-05-02 11:29:53 |
Matthias Andree |
eglibc (Ubuntu): status |
Invalid |
Confirmed |
|
2015-05-02 13:13:25 |
dino99 |
eglibc (Ubuntu): status |
Confirmed |
Invalid |
|
2015-05-02 16:57:17 |
Matthias Andree |
eglibc (Ubuntu): status |
Invalid |
Confirmed |
|
2015-05-03 06:47:52 |
dino99 |
eglibc (Ubuntu): status |
Confirmed |
Invalid |
|
2015-05-03 06:47:52 |
dino99 |
converted to question |
|
266330 |
|
2015-05-03 10:03:01 |
Matthias Andree |
eglibc (Ubuntu): status |
Invalid |
Confirmed |
|
2015-05-03 10:03:38 |
Matthias Andree |
removed subscriber Matthias Andree |
|
|
|
2015-05-03 10:07:41 |
Matthias Andree |
tags |
amd64 apport-bug lucid |
amd64 apport-bug trusty |
|
2015-05-03 10:22:41 |
dino99 |
bug watch added |
|
http://sourceware.org/bugzilla/show_bug.cgi?id=14969 |
|
2015-05-03 10:43:41 |
dino99 |
bug watch added |
|
http://sourceware.org/bugzilla/show_bug.cgi?id=14965 |
|
2015-10-08 03:35:58 |
Björn Lindqvist |
bug task added |
|
eglibc |
|
2017-03-10 02:49:36 |
Bug Watch Updater |
eglibc: status |
Unknown |
Confirmed |
|
2017-03-10 02:49:36 |
Bug Watch Updater |
eglibc: importance |
Unknown |
Medium |
|