Mailing List Archive

[issue5154] OSX broken poll testing doesn't work
New submission from Ben Bangert <ben@groovie.org>:

OSX 10.5 has a broken poll, this is an already known issue as I noticed
there's even a HAVE_BROKEN_POLL option that is in the source:
http://mail.python.org/pipermail/python-checkins/2006-April/051710.html

However, this run-time check apparently does not work, as I continue to
get socket errors related to the broken poll (On *any* version of Python
I compile from 2.4 through 2.6) unless I recompile Python and manually
comment out HAVE_POLL like the first line of Apple's Python patch here:
http://www.opensource.apple.com/darwinsource/10.5.6/python-30.1.2/fix/pyconfig.ed

Further, I think its quite likely that other bugs being submitted all
over the place from users running MacPorts on OSX are misdiagnosing this
bug as they believe its related to other software, when it is in fact
specific to custom compiles (MacPorts included) of Python. This bug
usually manifests itself as a Socket 35 error like so:
http://bugs.python.org/issue1085
http://www.cherrypy.org/ticket/598

This issue was diagnosed for me by Phil Jenvey, who believes that all
versions of OSX to date have had a broken poll (which reflects my paste
experience with this socket 35 bug as well).

I'm not sure of the most appropriate fix, I've submitted a bug to
MacPorts as well with the recommendation that for now they apply a patch
to undef HAVE_POLL, as Apple does.

----------
components: Library (Lib)
messages: 81171
nosy: bbangert
severity: normal
status: open
title: OSX broken poll testing doesn't work
type: behavior
versions: Python 2.4, Python 2.5, Python 2.6, Python 3.0

_______________________________________
Python tracker <report@bugs.python.org>
<http://bugs.python.org/issue5154>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue5154] OSX broken poll testing doesn't work [ In reply to ]
Martin v. Löwis <martin@v.loewis.de> added the comment:

In what specific way is poll() broken?

----------
nosy: +loewis

_______________________________________
Python tracker <report@bugs.python.org>
<http://bugs.python.org/issue5154>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue5154] OSX broken poll testing doesn't work [ In reply to ]
Ben Bangert <ben@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 <report@bugs.python.org>
<http://bugs.python.org/issue5154>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue5154] OSX broken poll testing doesn't work [ In reply to ]
Martin v. Löwis <martin@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 <report@bugs.python.org>
<http://bugs.python.org/issue5154>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue5154] OSX broken poll testing doesn't work [ In reply to ]
Ben Bangert <ben@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 <report@bugs.python.org>
<http://bugs.python.org/issue5154>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com