[uClibc]getaddrinfo bug

Ronald Wahl rwa at peppercon.com
Tue Jun 17 10:48:39 UTC 2003


On Tue, 17 Jun 2003 11:51:19 +0200, Ronald Wahl wrote:

> On Fri, 6 Jun 2003 14:36:44 -0600, Erik Andersen wrote:
>> On Wed Jun 04, 2003 at 03:57:26PM +0200, Ronald Wahl wrote:
>>> Hi,
>>> 
>>> I found a bug in getaddrinfo (uClibc 0.9.19):
>>> 
>>> The following little test program fails with "System Error". Removing
>>> AI_CANONNAME from hints.ai_flags works. But getaddrinfo should work in
>>> both cases AFAIK. Glibc even works if only AI_CANONNAME is specified but
>>> I dont know if this is the right behavior. Any fix for this?

>> I just tried this, but I'm not seeing any errors...

> It works only if the requested IP is registered in /etc/hosts. If not
> then a "System error" occurs. Glibc has not this limitation.

Some additional info:

  - uClibc is compiled with IPv6 support

  - host_name_ lookup via getaddrinfo results in the same
    "System error".

- ron


More information about the uClibc mailing list