[issue21216] getaddrinfo is wrongly considered thread safe on linux

2014-06-25 Thread Gregory P. Smith
Gregory P. Smith added the comment: The upstream Debian issue contains a fix for the bug in eglibc. Python should not attempt to work around this. Distros need to fix their libc if they shipped a broken one. -- components: +Extension Modules resolution: - not a bug stage: - resolved

[issue21216] getaddrinfo is wrongly considered thread safe on linux

2014-04-26 Thread STINNER Victor
STINNER Victor added the comment: @Julien.Palard: Ping? Without more information, I would suggest to close the issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21216 ___

[issue21216] getaddrinfo is wrongly considered thread safe on linux

2014-04-16 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21216 ___ ___ Python-bugs-list

[issue21216] getaddrinfo is wrongly considered thread safe on linux

2014-04-16 Thread STINNER Victor
STINNER Victor added the comment: It may only be reproductible when your getaddrinfo use a NETLINK to get informations about your interfaces before doing the DNS query. What is your operation system? Name and version. What is your version of the C library? What is your Python version? Can

[issue21216] getaddrinfo is wrongly considered thread safe on linux

2014-04-16 Thread STINNER Victor
STINNER Victor added the comment: test_getaddrinfo.c: C program to run getaddrinfo() concurrently in different threads, it comes from the Debian issue. I ran this program with 10 threads, I stopped it after between 3000 and 5000 tries (depending on the thread). I'm running Fedora 20: Linux

[issue21216] getaddrinfo is wrongly considered thread safe on linux

2014-04-16 Thread STINNER Victor
STINNER Victor added the comment: Can you provide the C and Python backtrace of all threads of your program? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21216 ___

[issue21216] getaddrinfo is wrongly considered thread safe on linux

2014-04-14 Thread Julien Palard
New submission from Julien Palard: I just found that python consider linux implementation of getaddrinfo thread safe : ./python2.6-2.6.8/Modules/socketmodule.c:180 /* On systems on which getaddrinfo() is believed to not be thread-safe,

[issue21216] getaddrinfo is wrongly considered thread safe on linux

2014-04-14 Thread Gregory P. Smith
Changes by Gregory P. Smith g...@krypto.org: -- assignee: - gregory.p.smith nosy: +gregory.p.smith versions: +Python 2.7, Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21216

[issue21216] getaddrinfo is wrongly considered thread safe on linux

2014-04-14 Thread Gregory P. Smith
Gregory P. Smith added the comment: Can you attach some python code that reproduces this for you? According to both of the references below it doesn't sound like this is supposed to be a problem. http://pubs.opengroup.org/onlinepubs/9699919799/functions/freeaddrinfo.html claims The