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

2009-09-20 Thread Ronald Oussoren
Ronald Oussoren 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 -> committed/rejected sta

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

2009-09-16 Thread Ronald Oussoren
Ronald Oussoren 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 data using the SystemCon

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

2009-09-16 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Agreed this should be a release blocker for 2.6.3 -- nosy: +barry ___ Python tracker ___ ___ Python

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

2009-09-15 Thread Ronald Oussoren
Changes by Ronald Oussoren : -- priority: -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

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

2009-09-15 Thread Ronald Oussoren
Ronald Oussoren 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 that the ctypes code i

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

2009-09-15 Thread Ronald Oussoren
Ronald Oussoren 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 0x7fff5fc0d607 in __dyl

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

2009-09-09 Thread Emlyn Murphy
Changes by Emlyn Murphy : -- nosy: +emlyn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

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

2009-09-06 Thread jweber
New submission from jweber : 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 urllib.urlopen is done in