[Xquartz-dev] Re: xauth bus error

Greg Parker gparker at apple.com
Thu Jan 10 23:53:39 PST 2008


On Jan 10, 2008, at 10:35 PM, Jeremy Huddleston wrote:
> Here's a stripped down app which reveals the problem.  Compile and  
> run './getaddrtest localhost' to see (up to endianness for the ipv4  
> addr):
>
> entry 0:
> 	Family: AF_INET6
> 	sin6_port: 0
> 	sin6_flowinfo: 0
> 	sin6_scope_id: 0
> 	Address: 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.
> entry 1:
> 	Family: AF_INET6
> 	sin6_port: 0
> 	sin6_flowinfo: 0
> 	sin6_scope_id: 0
> 	Address: 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.
> entry 2:
> 	Family: AF_INET
> 	Address: 127.1.1.1
>
> Note that the scope_id is the same... And I think that about covers  
> all the items in sockaddr_in6 that we could match:

Yep, I see the same thing. Interestingly, `getaddrtest localhost.`  
(note dot) only reports one copy of ::1. (The trailing dot means  
"don't search the default DNS suffixes". A lookup for "hamster" would  
find "hamster.apple.com" on my machine here, but "hamster." would not.)

So there's definitely something fishy with getaddrinfo() here. File a  
bug report, and sanity-check the list in xauth.


-- 
Greg Parker     gparker at apple.com     Runtime Wrangler




More information about the Xquartz-dev mailing list