pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/40297: pkgsrc-built mplayer on Solaris does strange DNS resolving



>Number:         40297
>Category:       pkg
>Synopsis:       pkgsrc-built mplayer on Solaris does strange DNS resolving
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 30 16:45:00 +0000 2008
>Originator:     Ignatios Souvatzis
>Release:        NetBSD 4.0.1
>Organization:
seal your e-mail: http://www.gnupg.org/
>Environment:
> uname -a
SunOS einstein.cs.uni-bonn.de 5.10 Generic_138888-01 sun4u sparc SUNW,A70

pkgsrc is 2008Q3, bootstrapped with gcc3.4 from sfw
>Description:
There are two cases, depending on available addresses:

a) annoying but harmless case, mplayer connection to legacy-only
servers is delayed because the first name resolving is broken:

Playing http://theora.ccctu.be:8000/saal1-small.ogm.
Resolving theora.ccctu.be for AF_INET6...
Connecting to server theora.ccctu.be[863c:2864::]: 8000...
connection timeout
Resolving theora.ccctu.be for AF_INET...
Connecting to server theora.ccctu.be[134.60.40.100]: 8000...
Cache size set to 320 KBytes
Cache fill: 10.00% (32768 bytes)   
[Ogg] stream 0: video (Theora v3.2.1), -vid 0

Note that the "IPv6" address tried is the left-aligned Ipv4 address,
which is NOT how an IPv4 address is represented to an IPv6-only
API. According to RFC 4291, "IPv6 addressing architecture", section
2.5.5.2. IPv4-Mapped IPv6 Address, the address should have been
[::ffff:863c:2864].

b) IPv6 streams don't resolve at all without intervention. If you resolve
manually and rewrite the URL with a numerical address, it works:

> mplayer mms://tv6.ustc.edu.cn/tv3
MPlayer 1.0rc2-3.4.6 (C) 2000-2007 MPlayer Team
CPU: Sun Sparc
115 audio & 237 video codecs

Playing mms://tv6.ustc.edu.cn/tv3.
STREAM_ASF, URL: mms://tv6.ustc.edu.cn/tv3
Resolving tv6.ustc.edu.cn for AF_INET6...
Couldn't resolve name for AF_INET6: tv6.ustc.edu.cn
Resolving tv6.ustc.edu.cn for AF_INET...
Couldn't resolve name for AF_INET: tv6.ustc.edu.cn
Failed, exiting.
Resolving tv6.ustc.edu.cn for AF_INET6...
Couldn't resolve name for AF_INET6: tv6.ustc.edu.cn
Resolving tv6.ustc.edu.cn for AF_INET...
Couldn't resolve name for AF_INET: tv6.ustc.edu.cn
No stream found to handle url mms://tv6.ustc.edu.cn/tv3


Exiting... (End of file)

> host tv6.ustc.edu.cn
tv6.ustc.edu.cn has IPv6 address 2001:da8:d800::88
> mplayer 'mms://[2001:da8:d800::88]/tv3'
MPlayer 1.0rc2-3.4.6 (C) 2000-2007 MPlayer Team
CPU: Sun Sparc
115 audio & 237 video codecs

Playing mms://[2001:da8:d800::88]/tv3.
STREAM_ASF, URL: mms://[2001:da8:d800::88]/tv3
Connecting to server 2001:da8:d800::88[2001:da8:d800::88]: 1755...
Connected
...



>How-To-Repeat:
        Build mplayer. Test it.
>Fix:
        Not known. 

It looks to me like the resolving  is done wrong, or like there
are alignment problems, but as I won't be able to dive into the code
and test this year, I want at least to document the problem.



Home | Main Index | Thread Index | Old Index