This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ned.deily
Recipients ned.deily, orsenthil, ronaldoussoren
Date 2010-03-09.09:53:37
SpamBayes Score 9.811803e-09
Marked as misclassified No
Message-id <1268128420.33.0.487140127067.issue8095@psf.upfronthosting.co.za>
In-reply-to
Content
The current mechanism for urllib and urllib2 on OS X to retrieve network proxy information is to call _scproxy.c to query the OS X SystemConfiguration Framework.  _scproxy.c uses a schema key, kSCPropNetProxiesExcludeSimpleHostnames, that was introduced in OS X 10.4.  Building on 10.3 results in a compile error.  Current python.org OS X installers are built using the 10.4u SDK with a deployment target of 10.3 to allow running on OS X 10.3.9.  When such pythons are installed on 10.3, attempts to use proxy support, such as is tested in test_urllib2, result in a crash:

Exception:  EXC_BAD_ACCESS (0x0001)
Codes:      KERN_PROTECTION_FAILURE (0x0002) at 0x00000000

Thread 0 Crashed:
0   _scproxy.so       	0x000a77ac get_proxy_settings + 0x6c

Whether this is worth fixing is debatable, considering that 10.3 has not been supported by Apple for many years and that the use of network proxy  servers has likely been declining.  At a minimum, it would be better for it to fail without a crash but perhaps a README item would suffice.
History
Date User Action Args
2010-03-09 09:53:40ned.deilysetrecipients: + ned.deily, ronaldoussoren, orsenthil
2010-03-09 09:53:40ned.deilysetmessageid: <1268128420.33.0.487140127067.issue8095@psf.upfronthosting.co.za>
2010-03-09 09:53:38ned.deilylinkissue8095 messages
2010-03-09 09:53:37ned.deilycreate