[issue4884] Work around gethostbyaddr_r bug

2009-01-10 Thread Jeffrey Yasskin
Jeffrey Yasskin added the comment: socket_gethostbyname_ex() calls gethostbyname_r() rather than gethostbyaddr_r(), and that appears not to have the bug. ___ Python tracker ___ __

[issue4884] Work around gethostbyaddr_r bug

2009-01-10 Thread Roumen Petrov
Roumen Petrov added the comment: What about socket_gethostbyname_ex() ? -- nosy: +rpetrov ___ Python tracker ___ ___ Python-bugs-list

[issue4884] Work around gethostbyaddr_r bug

2009-01-09 Thread Jeffrey Yasskin
Jeffrey Yasskin added the comment: Committed as r68450. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue4884] Work around gethostbyaddr_r bug

2009-01-08 Thread Jeffrey Yasskin
New submission from Jeffrey Yasskin : glibc until 2.10 has a bug in gethostbyaddr_r that assumes the buffer argument is 8-byte aligned (http://sources.redhat.com/ml/libc-alpha/2009-01/msg0.html). gcc seems to always provide such alignment for the call in socketmodule.c:socket_gethostbyaddr(),