[issue6851] urllib.urlopen crashes in a thread on Snow Leopard

2009-09-20 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: The attached patch was not 100% correct in the error handling in the set_proxies functions. That is fixed in the actually commit. Committed as r74962 (trunk), r74963 (2.6). -- resolution: accepted - fixed stage: needs patch -

[issue6851] urllib.urlopen crashes in a thread on Snow Leopard

2009-09-16 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: Agreed this should be a release blocker for 2.6.3 -- nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6851 ___

[issue6851] urllib.urlopen crashes in a thread on Snow Leopard

2009-09-16 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: The attached patch seems to fix the issue, but needs further testing. Warning: the patch is not entirely clean, the patch contains an unrelated change to setup.py. The patch replaces some code that uses ctypes to read configuration

[issue6851] urllib.urlopen crashes in a thread on Snow Leopard

2009-09-15 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: It seems that CoreFoundation doesn't like being loaded on a secondairy thread: #0 0x7fff8301bb90 in __CFInitialize () #1 0x7fff5fc0d5ce in __dyld__ZN16ImageLoaderMachO11doImageInitERKN11ImageLoader11LinkContextE () #2

[issue6851] urllib.urlopen crashes in a thread on Snow Leopard

2009-09-15 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: This probably means that the ctypes code in urllib.py needs to be ported to C, although we won't know if that helps until said C code is written :-( Doing that would be a good idea anyway, while trying to create a workaround I noticed

[issue6851] urllib.urlopen crashes in a thread on Snow Leopard

2009-09-15 Thread Ronald Oussoren
Changes by Ronald Oussoren ronaldousso...@mac.com: -- priority: - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6851 ___ ___

[issue6851] urllib.urlopen crashes in a thread on Snow Leopard

2009-09-09 Thread Emlyn Murphy
Changes by Emlyn Murphy m...@emlyn.net: -- nosy: +emlyn ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6851 ___ ___ Python-bugs-list mailing list

[issue6851] urllib.urlopen crashes in a thread on Snow Leopard

2009-09-06 Thread jweber
New submission from jweber ja...@jacobweber.com: The following program works fine under Mac OS 10.5.x. But in 10.6, it crashes Python, and displays Apple's crash reporter dialog. I've tried it on Python 2.6 and 2.5, both the 64-bit and 32-bit versions. The crash seems to happen any time