[issue5154] OSX broken poll testing doesn't work
Changes by Ronald Oussoren ronaldousso...@mac.com: -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5154 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5154] OSX broken poll testing doesn't work
Ronald Oussoren ronaldousso...@mac.com added the comment: I propose to close this as won't fix. The reason: poll on OSX does work, but fairly limited in the kinds of file descriptors it works with. The HAVE_BROKEN_POLL test is meant to detect poll implementation that don't even manage to implement the API correctly. The attached patch adds notes to the documentation to warn users about the limitations of poll and kqueue on MacOSX. -- keywords: +patch Added file: http://bugs.python.org/file21239/issue5154.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5154 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5154] OSX broken poll testing doesn't work
Ronald Oussoren ronaldousso...@mac.com added the comment: Florent: I don't understand why the traceback you show is related to this issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5154 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5154] OSX broken poll testing doesn't work
Florent Xicluna florent.xicl...@gmail.com added the comment: Same issue, probably, on buildbot PPC Tiger == ERROR: test_main (test.test_signal.InterProcessSignalTests) -- Traceback (most recent call last): File /Users/buildbot/buildarea/3.1.parc-tiger-1/build/Lib/test/test_signal.py, line 156, in test_main child = os.fork() OSError: [Errno 35] Resource temporarily unavailable http://www.python.org/dev/buildbot/all/builders/PPC%20Tiger%203.1/builds/246 And similar output on 2.6 and 3.x as well. -- assignee: - ronaldoussoren components: +Macintosh keywords: +buildbot nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5154 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5154] OSX broken poll testing doesn't work
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.4, Python 2.5, Python 2.6, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5154 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5154] OSX broken poll testing doesn't work
Ronald Oussoren ronaldousso...@mac.com added the comment: Time to try to get this going again... What exactly is wrong with poll on OSX? Both the configure test and the runtime test for poll behavior work as designed. According to the first message there are other problems with poll on OSX, but without a clear description of what is wrong and how to reproduce this it will be impossible to do anything about it. As noted in msg83156 Apple removes socket.poll from their builds because poll(3) doesn't work for all types of file descriptors (in particular not for devices), and I don't know if that is a serious enough problem to disable socket.poll in our builds as well. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5154 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5154] OSX broken poll testing doesn't work
James Y Knight f...@users.sourceforge.net added the comment: The reason it's a problem is because a device is everything other than a socket, pipe, slave-side of tty, or file. That is, /dev/null, /dev/zero, /dev/tty, psuedo-tty masters from openpty (e.g. for running subprocesses), etc. I find it quite amazing that this is still broken after so long. Would it really be that hard for them to unify the select() and poll() code in the kernel? Sigh. BTW, this same issue also affects kqueue. But I'd say that Apple's utter failure in writing a working kernel is not really enough reason to disable the poll call for Python. If people want to use it only for the kinds of files that it works for, I don't see why python should prevent that. Note that in the distant past, poll on OSX was *severely* broken, as it was a userspace wrapper over select(). In those days, disabling it was certainly the right thing to do. -- nosy: +foom ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5154 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5154] OSX broken poll testing doesn't work
Changes by Nicolas Dumazet nicd...@gmail.com: -- nosy: +nicdumz ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5154 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5154] OSX broken poll testing doesn't work
Changes by Ronald Oussoren ronaldousso...@mac.com: -- nosy: +ronaldoussoren ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5154 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5154] OSX broken poll testing doesn't work
Ronald Oussoren ronaldousso...@mac.com added the comment: poll(3) doesn't work for all types of filedescriptors on OSX. Specifically: BUGS The poll() system call currently does not support devices. (That's from the manpage of poll). This is why Apple doesn't expose select.poll in their build of Python. I haven't used select.poll myself and therefore don't know if the issues with the poll system call are serious enough to warrant hiding select.poll on OSX. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5154 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5154] OSX broken poll testing doesn't work
Changes by Giampaolo Rodola' billiej...@users.sourceforge.net: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5154 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5154] OSX broken poll testing doesn't work
Martin v. Löwis mar...@v.loewis.de added the comment: In what specific way is poll() broken? -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5154 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5154] OSX broken poll testing doesn't work
Ben Bangert b...@groovie.org added the comment: I don't know specifically, Phil Jenvey probably would as he's the one that told me it is. Apple apparently knows this an turns it off in their version of Python that is supplied. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5154 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5154] OSX broken poll testing doesn't work
Martin v. Löwis mar...@v.loewis.de added the comment: I don't know specifically, Phil Jenvey probably would as he's the one that told me it is. Apple apparently knows this an turns it off in their version of Python that is supplied. That's not a sufficient reason to copy their work-around. A problem must be understood fully before any solution is attempted. I'm -1 on work-arounds. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5154 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5154] OSX broken poll testing doesn't work
Ben Bangert b...@groovie.org added the comment: Ah, sorry, misunderstanding. I'm not recommending that Python copy Apple's patch. I was pointing out that the HAVE_BROKEN_POLL test apparently doesn't work, and that *all* manually compiled copies of Python done on OSX will suffer this socket 35 error without having HAVE_POLL commented out. As I mention in the original message, I'm not sure of the most appropriate fix. :) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5154 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com