homepage

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.

classification
Title: Test fix for past crash when calling urllib.getproxies() under OSX with subprocess / particular memory usage
Type: enhancement Stage: resolved
Components: macOS Versions: Python 3.2, Python 3.3, Python 2.7
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: ronaldoussoren Nosy List: ncoghlan, ned.deily, ronaldoussoren, w31rd0, zzzeek
Priority: high Keywords:

Created on 2010年07月28日 21:30 by zzzeek, last changed 2022年04月11日 14:57 by admin. This issue is now closed.

Messages (12)
msg111851 - (view) Author: mike bayer (zzzeek) * Date: 2010年07月28日 21:30
I'm not optimistic that this will be reproducible elsewhere. I get a silent failure with 2.6 and a crash dialog with 2.7 with the following script. All elements are necessary, although the "pkg_resources" import may be arbitrary, and reproduces if it comes from the latest setuptools or if it comes from Distribute. I've attached the crash report generated by OSX in the event that someone knows how to interpret it. The script fails for me every time, though not for other people I've had test.
import pkg_resources
import urllib
import multiprocessing
def sub():
 print "about to call getproxies !"
 urllib.getproxies()
 print "getproxies has completed !"
 
process = multiprocessing.Process(target=sub)
process.start()
print "hi!"
process.join()
Process: Python [79964]
Path: /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
Identifier: Python
Version: ??? (???)
Code Type: X86 (Native)
Parent Process: Python [79963]
Date/Time: 2010年07月28日 17:24:19.281 -0400
OS Version: Mac OS X 10.6.4 (10F569)
Report Version: 6
Interval Since Last Report: 1137309 sec
Crashes Since Last Report: 87
Per-App Crashes Since Last Report: 86
Anonymous UUID: 848E03B6-EF61-45EA-9BB7-BF9E584CC670
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000104
Crashed Thread: 0 Dispatch queue: CFMachPort
Thread 0 Crashed: Dispatch queue: CFMachPort
0 libSystem.B.dylib 	0x94419bdd _dispatch_wakeup + 91
1 libSystem.B.dylib 	0x9454a1f2 _dispatch_queue_push_list_slow + 37
2 libSystem.B.dylib 	0x94419c22 _dispatch_wakeup + 160
3 libSystem.B.dylib 	0x944196e6 _dispatch_source_create2 + 194
4 libSystem.B.dylib 	0x94419278 dispatch_source_timer_create_f + 286
5 libSystem.B.dylib 	0x94419158 dispatch_source_timer_create + 81
6 com.apple.CoreFoundation 	0x92fde72a ___CFMachPortCreateWithPort2_block_invoke_1 + 762
7 libSystem.B.dylib 	0x944190c3 dispatch_barrier_sync_f + 78
8 libSystem.B.dylib 	0x94418f9d dispatch_sync + 48
9 com.apple.CoreFoundation 	0x92fde350 _CFMachPortCreateWithPort2 + 272
10 com.apple.CoreFoundation 	0x92fe5e1c CFMachPortCreate + 204
11 com.apple.CoreFoundation 	0x92fe5c39 _CFXNotificationCenterCreate + 281
12 com.apple.CoreFoundation 	0x92fe5ad6 _CFXNotificationGetHostCenter + 86
13 com.apple.CoreFoundation 	0x92feb432 __CFXPreferencesGetSourceForTriplet + 354
14 com.apple.CoreFoundation 	0x92fea6ad __CFXPreferencesGetSearchListForBundleID + 205
15 com.apple.CoreFoundation 	0x92fea555 CFPreferencesCopyAppValue + 53
16 com.apple.SystemConfiguration 	0x90fc7348 SCDynamicStoreCopyProxies + 44
17 _scproxy.so 	0x00746e31 get_proxies + 33
18 org.python.python 	0x000ca2b3 PyEval_EvalFrameEx + 20419
19 org.python.python 	0x000cbc88 PyEval_EvalFrameEx + 27032
20 org.python.python 	0x000cbc88 PyEval_EvalFrameEx + 27032
21 org.python.python 	0x000cc4ba PyEval_EvalCodeEx + 2042
22 org.python.python 	0x00041ca2 function_call + 162
23 org.python.python 	0x0000f375 PyObject_Call + 85
24 org.python.python 	0x000c7d5b PyEval_EvalFrameEx + 10859
25 org.python.python 	0x000cbc88 PyEval_EvalFrameEx + 27032
26 org.python.python 	0x000cbc88 PyEval_EvalFrameEx + 27032
27 org.python.python 	0x000cc4ba PyEval_EvalCodeEx + 2042
28 org.python.python 	0x00041ca2 function_call + 162
29 org.python.python 	0x0000f375 PyObject_Call + 85
30 org.python.python 	0x00021c66 instancemethod_call + 422
31 org.python.python 	0x0000f375 PyObject_Call + 85
32 org.python.python 	0x0007c8a7 slot_tp_init + 87
33 org.python.python 	0x0007b2d0 type_call + 176
34 org.python.python 	0x0000f375 PyObject_Call + 85
35 org.python.python 	0x000c8ad6 PyEval_EvalFrameEx + 14310
36 org.python.python 	0x000cbc88 PyEval_EvalFrameEx + 27032
37 org.python.python 	0x000cc4ba PyEval_EvalCodeEx + 2042
38 org.python.python 	0x000cc647 PyEval_EvalCode + 87
39 org.python.python 	0x000f0ae8 PyRun_FileExFlags + 168
40 org.python.python 	0x000f1a23 PyRun_SimpleFileExFlags + 867
41 org.python.python 	0x0010a42b Py_Main + 3163
42 org.python.python 	0x00001f82 0x1000 + 3970
43 org.python.python 	0x00001ea9 0x1000 + 3753
Thread 0 crashed with X86 Thread State (32-bit):
 eax: 0xa04c511c ebx: 0xa04c50f4 ecx: 0x00000001 edx: 0x00000100
 edi: 0x003011e0 esi: 0x003011d0 ebp: 0xbfffd5e8 esp: 0xbfffd5c0
 ss: 0x0000001f efl: 0x00010206 eip: 0x94419bdd cs: 0x00000017
 ds: 0x0000001f es: 0x0000001f fs: 0x00000000 gs: 0x00000037
 cr2: 0x00000104
Binary Images:
 0x1000 - 0x1ff5 +org.python.python 2.7.0 (2.7.0) <E493A842-C949-A532-656D-BC10750CCB80> /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
 0x5000 - 0x142fe3 +org.python.python 2.7.0, (c) 2004-2008 Python Software Foundation. (2.7.0) <2815ECAD-BE96-97DE-C757-303EB571862B> /Library/Frameworks/Python.framework/Versions/2.7/Python
 0x2e1000 - 0x2f2ffd +zlib.so ??? (???) <B540E76D-58F8-F173-604E-3DA51E931A83> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/zlib.so
 0x2f7000 - 0x2f8fff +time.so ??? (???) <36AF5C9C-9495-3868-8A5A-4706C959F102> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/time.so
 0x561000 - 0x564fff +strop.so ??? (???) <255B3A81-AAF1-B616-41BC-C7B31DC15E8E> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/strop.so
 0x56a000 - 0x56affd +gestalt.so ??? (???) <E0CFE5CF-4765-4B7C-B708-2D2A5BED89B5> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/gestalt.so
 0x56e000 - 0x56fffe +MacOS.so ??? (???) <5E7E7E83-F983-3B58-053C-3114B498F8E3> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/MacOS.so
 0x5b4000 - 0x5bbff7 +_socket.so ??? (???) <6FFA1EB1-7D65-C514-22D2-20B663BC031D> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_socket.so
 0x5c4000 - 0x5c4ff3 +_functools.so ??? (???) <16603A15-F05E-ABA0-1AC4-86CD702988ED> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_functools.so
 0x5c8000 - 0x5cbff7 +_ssl.so ??? (???) <F675870E-3EF6-56D1-36F4-4D2F3B668199> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_ssl.so
 0x5d1000 - 0x5f7fff libssl.0.9.7.dylib 0.9.7 (compatibility 0.9.7) <73B10885-F9AF-5B9D-A91C-D96869959EA5> /usr/lib/libssl.0.9.7.dylib
 0x606000 - 0x6bbfe7 libcrypto.0.9.7.dylib 0.9.7 (compatibility 0.9.7) <2E52683A-7E8E-68D5-5AC6-09962C37CB98> /usr/lib/libcrypto.0.9.7.dylib
 0x701000 - 0x702ff2 +cStringIO.so ??? (???) <C4534024-CC9B-BBBE-BBC1-337FF5BF6180> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/cStringIO.so
 0x707000 - 0x70aff3 +_collections.so ??? (???) <99610C80-5BDE-9B42-326E-C84573CF9ACC> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_collections.so
 0x710000 - 0x713ff7 +operator.so ??? (???) <286CBCF9-86C0-F84F-659C-F3EE95C7D4E1> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/operator.so
 0x71a000 - 0x71fff6 +itertools.so ??? (???) <47DA9FDB-A82B-FE94-1445-207EF0CF75B0> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/itertools.so
 0x728000 - 0x728ff5 +_bisect.so ??? (???) <0E86828B-074D-1E3B-4E6D-0871A2C3C65E> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_bisect.so
 0x72c000 - 0x72dff9 +_heapq.so ??? (???) <6C69EE01-CD6B-5092-B0DD-8DBE3FAACB50> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_heapq.so
 0x732000 - 0x735fff +_struct.so ??? (???) <0770C896-2971-B7E4-99F6-ECC9506E3A18> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_struct.so
 0x73c000 - 0x741fff +binascii.so ??? (???) <0ABB3540-FABB-FCB4-98FE-9997110E0713> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/binascii.so
 0x746000 - 0x746ff0 +_scproxy.so ??? (???) <8181FFBE-17E2-C16E-4DF3-4C692A430C22> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_scproxy.so
 0x78a000 - 0x78aff5 +_weakref.so ??? (???) <CC5A6874-5A1A-4431-FB8B-3CA18F0DDE5D> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_weakref.so
 0x78e000 - 0x790fff +_multiprocessing.so ??? (???) <B6B48505-F5BD-034F-2AFD-335DEF372EAF> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_multiprocessing.so
 0x795000 - 0x7a3fff +cPickle.so ??? (???) <EE83DA36-2629-B5FB-DCC5-677176844189> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/cPickle.so
0x8fe00000 - 0x8fe4162b dyld 132.1 (???) <A4F6ADCC-6448-37B4-ED6C-ABB2CD06F448> /usr/lib/dyld
0x90003000 - 0x90104fe7 libxml2.2.dylib 10.3.0 (compatibility 10.0.0) <AB3A3749-B577-1EB3-72DF-215E866F1168> /usr/lib/libxml2.2.dylib
0x90105000 - 0x901bbffb libFontParser.dylib ??? (???) <067DC1A2-764B-41EA-B07E-4205472749B7> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontParser.dylib
0x909b5000 - 0x909b8ff7 libCoreVMClient.dylib ??? (???) <420D9D10-B00E-202D-AA98-026996AB97DD> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreVMClient.dylib
0x909b9000 - 0x909dafe7 com.apple.opencl 12.1 (12.1) <DA2AC3FA-ED11-2D10-21E9-7BDF4778B228> /System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL
0x90a53000 - 0x90a99ff7 libauto.dylib ??? (???) <0898A4A1-28BC-5337-EE17-D55C74F975F4> /usr/lib/libauto.dylib
0x90a9a000 - 0x90ab2ff7 com.apple.CFOpenDirectory 10.6 (10.6) <1537FB4F-C112-5D12-1E5D-3B1002A4038F> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory
0x90ab3000 - 0x90b2efe7 com.apple.audio.CoreAudio 3.2.2 (3.2.2) <51D0E2DC-B15F-AF6C-70D8-026DDAD4E2A5> /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
0x90b6a000 - 0x90b6aff7 com.apple.ApplicationServices 38 (38) <8012B504-3D83-BFBB-DA65-065E061CFE03> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
0x90b6b000 - 0x90baffe7 com.apple.Metadata 10.6.3 (507.10) <630494FA-3BB3-EDD3-E10B-8DAAF4831E26> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
0x90bf7000 - 0x90db1fe3 com.apple.ImageIO.framework 3.0.3 (3.0.3) <A93A514B-C1BF-21D0-FB03-CB775DE4FFAA> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
0x90db2000 - 0x90dc3ff7 com.apple.LangAnalysis 1.6.6 (1.6.6) <97511CC7-FE23-5AC3-2EE2-B5479FAEB316> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
0x90f5a000 - 0x90f5eff7 IOSurface ??? (???) <66E11D8E-CF4B-EFD0-37F9-20177C647021> /System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface
0x90fb9000 - 0x90ff6ff7 com.apple.SystemConfiguration 1.10.2 (1.10.2) <398BB007-41FD-1A30-26D8-CB86ED5E467E> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
0x90ff7000 - 0x91061fe7 libstdc++.6.dylib 7.9.0 (compatibility 7.0.0) <411D87F4-B7E1-44EB-F201-F8B4F9227213> /usr/lib/libstdc++.6.dylib
0x91062000 - 0x91084fef com.apple.DirectoryService.Framework 3.6 (621.3) <BCB030BE-60E2-9AF3-80BE-CC090FCEA6F0> /System/Library/Frameworks/DirectoryService.framework/Versions/A/DirectoryService
0x91085000 - 0x91088ffb com.apple.help 1.3.1 (41) <EF92C648-2085-C085-8EA7-A1AF37AE94F4> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help
0x910c8000 - 0x91123ff7 com.apple.framework.IOKit 2.0 (???) <A013B850-6ECB-594A-CBD6-DB156B11871B> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x91124000 - 0x911fffe7 com.apple.DesktopServices 1.5.7 (1.5.7) <A69072AD-C47E-A00D-4A69-6E46A7FB2119> /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv
0x91233000 - 0x91294fe7 com.apple.CoreText 3.1.0 (???) <F9E654F5-107E-8CED-2D6A-F5008A854A4D> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreText.framework/Versions/A/CoreText
0x91295000 - 0x912a3ff7 com.apple.opengl 1.6.8 (1.6.8) <EBB7B411-60DD-DB9D-20C0-3E6258762EF0> /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
0x912bd000 - 0x9135afe3 com.apple.LaunchServices 362.1 (362.1) <ED243C3B-9A16-A6CB-CA51-5924F48569DE> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
0x9137b000 - 0x913b3ff7 libcups.2.dylib 2.8.0 (compatibility 2.0.0) <76C02F5C-98FD-BD64-B5FB-C698FB76EA25> /usr/lib/libcups.2.dylib
0x913bb000 - 0x913bdff7 com.apple.securityhi 4.0 (36638) <38D36D4D-C798-6ACE-5FA8-5C001993AD6B> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI
0x913be000 - 0x913d2ffb com.apple.speech.synthesis.framework 3.10.35 (3.10.35) <0DBE17D5-17A2-8A0E-8572-5A78408B41C9> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
0x913d3000 - 0x9146bfe7 edu.mit.Kerberos 6.5.10 (6.5.10) <8B83AFF3-C074-E47C-4BD0-4546EED0D1BC> /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos
0x9146c000 - 0x914eeffb SecurityFoundation ??? (???) <3670AE8B-06DA-C447-EB14-79423DB9C474> /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoundation
0x9151b000 - 0x915c8fe7 libobjc.A.dylib 227.0.0 (compatibility 1.0.0) <22CD62D4-9E7D-C31A-F585-FCEF1FE4C39A> /usr/lib/libobjc.A.dylib
0x91673000 - 0x918e3ffb com.apple.Foundation 6.6.3 (751.29) <E77D3906-99F4-FEF4-FBB0-86FB3C94073E> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x918e4000 - 0x91915ff7 libGLImage.dylib ??? (???) <B45EA17E-03EF-3575-0843-A1205F29E71E> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib
0x91916000 - 0x9193cfff com.apple.DictionaryServices 1.1.1 (1.1.1) <00C1B034-5AE7-996C-CDD3-5A21DA1DBAC9> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices
0x91974000 - 0x91993ff7 com.apple.CoreVideo 1.6.1 (45.5) <2FB7F93F-39C8-6ACE-EDFD-C843965842CD> /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
0x91994000 - 0x91998ff7 libGIF.dylib ??? (???) <3ECD4D2C-40FE-E9A0-A2D2-E36D1C00D3A8> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib
0x91999000 - 0x919abff7 com.apple.MultitouchSupport.framework 204.13 (204.13) <F91A4E32-01AA-49DB-2205-3DBE1FEFFC43> /System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/MultitouchSupport
0x91af8000 - 0x91b0dfff com.apple.ImageCapture 6.0 (6.0) <0E86F45E-E656-9015-7AD4-A2C5F8D8A2FA> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture
0x91b0e000 - 0x91b18fe7 com.apple.audio.SoundManager 3.9.3 (3.9.3) <5F494955-7290-2D91-DA94-44B590191771> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.framework/Versions/A/CarbonSound
0x928bc000 - 0x92975fe7 libsqlite3.dylib 9.6.0 (compatibility 9.0.0) <16CEF8E8-8C9A-94CD-EF5D-05477844C005> /usr/lib/libsqlite3.dylib
0x92a89000 - 0x92e9fff7 libBLAS.dylib 219.0.0 (compatibility 1.0.0) <C4FB303A-DB4D-F9E8-181C-129585E59603> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
0x92fa5000 - 0x9311ffe3 com.apple.CoreFoundation 6.6.3 (550.29) <00373783-3744-F47D-2191-BEEA658F0C3D> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x9314a000 - 0x9314aff7 com.apple.CoreServices 44 (44) <AC35D112-5FB9-9C8C-6189-5F5945072375> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x932ac000 - 0x932b0ff7 libGFXShared.dylib ??? (???) <B6028E64-3F3B-C637-DA04-D0CD528F6E1F> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGFXShared.dylib
0x932b1000 - 0x932c1ff7 libsasl2.2.dylib 3.15.0 (compatibility 3.0.0) <C8744EA3-0AB7-CD03-E639-C4F2B910BE5D> /usr/lib/libsasl2.2.dylib
0x932c2000 - 0x932d6fe7 libbsm.0.dylib ??? (???) <821E415B-6C42-D359-78FF-E892792F8C52> /usr/lib/libbsm.0.dylib
0x932e3000 - 0x932e3ff7 com.apple.Accelerate 1.6 (Accelerate 1.6) <BC501C9F-7C20-961A-B135-0A457667D03C> /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
0x932e4000 - 0x932e7fe7 libmathCommon.A.dylib 315.0.0 (compatibility 1.0.0) <1622A54F-1A98-2CBE-B6A4-2122981A500E> /usr/lib/system/libmathCommon.A.dylib
0x932f0000 - 0x93614fef com.apple.HIToolbox 1.6.3 (???) <0A5F56E2-9AF3-728D-70AE-429522AEAD8A> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
0x93657000 - 0x93721fef com.apple.CoreServices.OSServices 357 (357) <CF9530AD-F581-B831-09B6-16D9F9283BFA> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
0x93822000 - 0x93864ff7 libvDSP.dylib 268.0.1 (compatibility 1.0.0) <EF769BD0-63B6-B65D-FA54-8F2354CAD865> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
0x93865000 - 0x9386aff7 com.apple.OpenDirectory 10.6 (10.6) <92582807-E8F3-3DD9-EB42-4195CFB754A1> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory
0x9386b000 - 0x93977ff7 libGLProgrammability.dylib ??? (???) <23AB2443-1DB3-3BFE-38A6-11F0BE453989> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLProgrammability.dylib
0x93978000 - 0x93978ff7 com.apple.vecLib 3.6 (vecLib 3.6) <7362077A-890F-3AEF-A8AB-22247B10E106> /System/Library/Frameworks/vecLib.framework/Versions/A/vecLib
0x939ae000 - 0x93a56ffb com.apple.QD 3.35 (???) <37854644-864D-A3F2-7116-89F2F28E1CA4> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
0x93b06000 - 0x93b6affb com.apple.htmlrendering 72 (1.1.4) <4D451A35-FAB6-1288-71F6-F24A4B6E2371> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HTMLRendering.framework/Versions/A/HTMLRendering
0x93be7000 - 0x93c97ff3 com.apple.ColorSync 4.6.3 (4.6.3) <AA1076EA-7665-3005-A837-B661260DBE54> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync
0x93cbf000 - 0x93ccdfe7 libz.1.dylib 1.2.3 (compatibility 1.0.0) <3CE8AA79-F077-F1B0-A039-9103A4A02E92> /usr/lib/libz.1.dylib
0x93d1f000 - 0x93d9ffeb com.apple.SearchKit 1.3.0 (1.3.0) <2F5DE102-A203-7905-7D12-FCBCF17BAEF8> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
0x94287000 - 0x942a3fe3 com.apple.openscripting 1.3.1 (???) <480D41B6-F98E-8E21-CA3C-4CA6A9752D3D> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting
0x943ea000 - 0x943ebff7 com.apple.audio.units.AudioUnit 1.6.3 (1.6.3) <F3872A43-6157-098D-F9DD-210187B95FD3> /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
0x943ec000 - 0x943f3ff3 com.apple.print.framework.Print 6.1 (237.1) <9758733E-7FBB-29CF-04F3-0D6D6B4C6A78> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print
0x943f4000 - 0x9459afeb libSystem.B.dylib 125.2.0 (compatibility 1.0.0) <3441F338-2218-6D36-3F95-3A16FBF6713D> /usr/lib/libSystem.B.dylib
0x9459b000 - 0x945deff7 com.apple.NavigationServices 3.5.4 (182) <ED268D94-E544-5548-AA59-7EC70DCB5EE4> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationServices.framework/Versions/A/NavigationServices
0x94610000 - 0x94612ff7 libRadiance.dylib ??? (???) <AB06F616-E3EA-5966-029A-8AA44BBE5B28> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib
0x94949000 - 0x94992fe7 libTIFF.dylib ??? (???) <9CFF48CC-4852-4D06-17AC-3C947C824159> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
0x94a96000 - 0x94cf9fef com.apple.security 6.1.1 (37594) <8AE73F5F-936C-80F6-B05B-A50C3082569C> /System/Library/Frameworks/Security.framework/Versions/A/Security
0x94cfa000 - 0x94d47feb com.apple.DirectoryService.PasswordServerFramework 6.0 (6.0) <E2632F3E-6B5C-2E92-CD11-15BC0CE109CA> /System/Library/PrivateFrameworks/PasswordServer.framework/Versions/A/PasswordServer
0x94d48000 - 0x94d68fe7 libresolv.9.dylib 41.0.0 (compatibility 1.0.0) <751955F3-21FB-A03A-4E92-1F3D4EFB8C5B> /usr/lib/libresolv.9.dylib
0x94d69000 - 0x94dacff7 libGLU.dylib ??? (???) <B50572FF-3EAC-FD98-1A01-6B718D98F67F> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
0x95a9b000 - 0x95aa5ffb com.apple.speech.recognition.framework 3.11.1 (3.11.1) <6E3481DF-645E-6095-0CD7-9BEBEC2ED9D1> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition
0x95adf000 - 0x95b12ff7 com.apple.AE 496.4 (496.4) <582F5E9D-1B8E-6D03-EBB8-AA85F66253E2> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
0x95b53000 - 0x95be5fe3 com.apple.print.framework.PrintCore 6.2 (312.5) <2A8801E6-6D9F-68F5-947D-A1D68BE4F876> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
0x95be6000 - 0x95be6ff7 com.apple.Carbon 150 (152) <9252D5F2-462D-2C15-80F3-109644D6F704> /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
0x95c29000 - 0x95d06ff7 com.apple.vImage 4.0 (4.0) <64597E4B-F144-DBB3-F428-0EC3D9A1219E> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
0x95d07000 - 0x95d12ff7 libGL.dylib ??? (???) <B87E0676-F5EF-8DA3-6DEE-13C43B3832A7> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
0x95d13000 - 0x95d37ff7 libJPEG.dylib ??? (???) <5CE96981-6B2A-D15B-4A17-E7BD329095B6> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib
0x95e37000 - 0x9619fff7 com.apple.QuartzCore 1.6.2 (227.22) <4288F0D2-0C87-F054-C372-8764B44DE024> /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
0x966a7000 - 0x966a8ff7 com.apple.TrustEvaluationAgent 1.1 (1) <07E7D892-5054-23A8-7144-3F19D3BFD48F> /System/Library/PrivateFrameworks/TrustEvaluationAgent.framework/Versions/A/TrustEvaluationAgent
0x966dc000 - 0x966e2fff com.apple.CommonPanels 1.2.4 (91) <2438AF5D-067B-B9FD-1248-2C9987F360BA> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels
0x96a03000 - 0x96aacff7 com.apple.CFNetwork 454.9.7 (454.9.7) <B740E1BD-01B7-34C2-2A9A-6DBC68B1EA5B> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
0x96aad000 - 0x96b5bff3 com.apple.ink.framework 1.3.3 (107) <0AFEBD7C-D83C-7847-C075-9B427505F7F0> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink
0x97aae000 - 0x97abaff7 libkxld.dylib ??? (???) <322A4B52-8305-3081-6B74-813C3A87A56D> /usr/lib/system/libkxld.dylib
0x97abb000 - 0x97ac4ff7 com.apple.DiskArbitration 2.3 (2.3) <E9C40767-DA6A-6CCB-8B00-2D5706753000> /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
0x97ade000 - 0x97b22ff3 com.apple.coreui 2 (114) <E6096C79-94B0-730E-6070-3AE93B5678FE> /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI
0x97b23000 - 0x97e43feb com.apple.CoreServices.CarbonCore 861.13 (861.13) <52803668-3669-36BD-57DD-078FBA835081> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
0x97e44000 - 0x98279ff7 libLAPACK.dylib 219.0.0 (compatibility 1.0.0) <5E2D2283-57DE-9A49-1DB0-CD027FEFA6C2> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
0x9827a000 - 0x983a6fff com.apple.audio.toolbox.AudioToolbox 1.6.3 (1.6.3) <B9469F98-E349-3C27-86C4-B99AD178FDF1> /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
0x9852e000 - 0x98620ff7 libcrypto.0.9.8.dylib 0.9.8 (compatibility 0.9.8) <D2C86308-F998-C83D-F49B-CD484D4EFE6A> /usr/lib/libcrypto.0.9.8.dylib
0x98854000 - 0x988a5ff7 com.apple.HIServices 1.8.0 (???) <BE4D9BC1-B527-D416-F4EB-FFB66EDA5DBB> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
0x989e2000 - 0x989efff7 com.apple.NetFS 3.2.1 (3.2.1) <E483137C-8239-E4DE-821C-05A9C22726AB> /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS
0x98a64000 - 0x98be6fe7 libicucore.A.dylib 40.0.0 (compatibility 1.0.0) <2314BD12-0821-75BB-F3BC-98D324CFD30A> /usr/lib/libicucore.A.dylib
0x98be7000 - 0x98c56ff7 libvMisc.dylib 268.0.1 (compatibility 1.0.0) <5C3D7DA5-29EB-A745-E32B-26DBF547D532> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
0x98c57000 - 0x98cf2ff7 com.apple.ApplicationServices.ATS 4.3 (???) <7ECA252B-5F67-2816-A4F0-73E1DC833728> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS
0x98cf3000 - 0x994e2557 com.apple.CoreGraphics 1.543.50 (???) <74533178-5C90-0F54-1B06-2E1C5251ED5D> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
0x99501000 - 0x99501ff7 com.apple.Accelerate.vecLib 3.6 (vecLib 3.6) <1DEC639C-173D-F808-DE0D-4070CC6F5BC7> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
0x996a9000 - 0x996c4ff7 libPng.dylib ??? (???) <36A3D75E-5178-4358-7F02-444E276D61AD> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
0x998cc000 - 0x998f4ff7 libxslt.1.dylib 3.24.0 (compatibility 3.0.0) <769EF4B2-C1AD-73D5-AAAD-1564DAEA77AF> /usr/lib/libxslt.1.dylib
0x998f5000 - 0x99945ff7 com.apple.framework.familycontrols 2.0.1 (2010) <B9762E20-543D-13B9-F6BF-E8585F04CA01> /System/Library/PrivateFrameworks/FamilyControls.framework/Versions/A/FamilyControls
0xffff0000 - 0xffff1fff libSystem.B.dylib ??? (???) <3441F338-2218-6D36-3F95-3A16FBF6713D> /usr/lib/libSystem.B.dylib
Model: MacBookPro6,2, BootROM MBP61.0057.B09, 2 processors, Intel Core i7, 2.66 GHz, 8 GB, SMC 1.58f16
Graphics: NVIDIA GeForce GT 330M, NVIDIA GeForce GT 330M, PCIe, 512 MB
Graphics: Intel HD Graphics, Intel HD Graphics, Built-In, 288 MB
Memory Module: global_name
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x93), Broadcom BCM43xx 1.0 (5.10.131.16.1)
Bluetooth: Version 2.3.3f8, 2 service, 12 devices, 1 incoming serial ports
Network Service: AirPort, AirPort, en1
Serial ATA Device: Hitachi HTS545050B9SA02, 465.76 GB
Serial ATA Device: MATSHITADVD-R UJ-898
USB Device: Hub, 0x0424 (SMSC), 0x2514, 0xfa100000
USB Device: Apple Internal Keyboard / Trackpad, 0x05ac (Apple Inc.), 0x0236, 0xfa120000
USB Device: BRCM2070 Hub, 0x0a5c (Broadcom Corp.), 0x4500, 0xfa110000
USB Device: Bluetooth USB Host Controller, 0x05ac (Apple Inc.), 0x8218, 0xfa113000
USB Device: Internal Memory Card Reader, 0x05ac (Apple Inc.), 0x8403, 0xfa130000
USB Device: Hub, 0x0424 (SMSC), 0x2514, 0xfd100000
USB Device: Built-in iSight, 0x05ac (Apple Inc.), 0x8507, 0xfd110000
USB Device: IR Receiver, 0x05ac (Apple Inc.), 0x8242, 0xfd120000
msg111857 - (view) Author: w31rd0 (w31rd0) Date: 2010年07月28日 21:50
I get crash dialog with both 2.6 and 2.7 (both installed from macports) under Mac OS X 10.6.4.
msg111873 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2010年07月28日 23:27
There have been similar problems reported in the past when subprocesses cause OS X CoreFoundation interfaces to be first called from the subprocess and not the main process. A quick workaround is to make a call from the main process. In this case, adding a call to urllib.getproxies() before calling Process appears to fix the problem for me.
msg111877 - (view) Author: mike bayer (zzzeek) * Date: 2010年07月29日 00:45
right...so I would propose the function calls in question emit a warning or something when called in a child process. this would save lots of people many hours of grief.
msg111879 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2010年07月29日 01:05
There should be a way to provide a permanent fix to avoid the problem; that will take more investigation. This was just a workaround suggestion.
msg111896 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2010年07月29日 07:51
mike: the crash is a bug and I will try to find a solution for it. 
A number of Apple APIs have issues with being called in child processes created with fork without calling exec. This sucks big time.
msg111898 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2010年07月29日 08:06
Interestingly enough I don't get the crash in a copy of 2.7, but do get the crash in a copy of 2.6. The former was build on 10.6, the later on 10.5.
Both 3.1 and 3.2 crash reliably for me (after porting the script to py3k)
/usr/bin/python doesn't crash, but that's because it doesn't get proxy information from the system.
msg111905 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2010年07月29日 09:55
<http://developer.apple.com/mac/library/technotes/tn2005/tn2083.html#SECDAEMONVSFRAMEWORKS> explains the issue that Ned mentions, I'm not sure yet if this crash is related to that.
msg111917 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2010年07月29日 13:14
This seems to be a minimal program to reproduce the problem:
import sys
import os
import platform
platform.mac_ver()
if sys.version_info[0] == 2:
 import urllib
else:
 import urllib.request
if os.fork() == 0:
 print ("about to call getproxies !")
 if sys.version_info[0] == 2:
 print (urllib.getproxies())
 else:
 print (urllib.request.getproxies())
 print ("getproxies has completed !")
else:
 os.wait()
The call to platform.mac_ver is essential, without that call the problem goed away.
This explains why my 2.7 build doesn't crash: I've committed a patch at the EuroPython sprints that replaces the platform.mac_ver implementation by one that reads the OSX version from an XML file instead of calling low-level Apple APIs, and those lowlevel APIs somehow cause the breakage (see also issue #7895)
This means that the problem should go away in the next release for all branches.
mike: are you able to test if the problem goes away when you build python from source using a subversion checkout?
Note that this doesn't mean that the underlying problem is gone, you'll probably still run into problems when the main program is a GUI program that using multiprocessing to start work in the background.
msg113444 - (view) Author: mike bayer (zzzeek) * Date: 2010年08月09日 18:39
Yeah we are fine if I build the release2.7-maint branch. Also just noticed that this bug prevents really basic things, like using urllib2 from a Pylons application that's running in "daemon" mode. Pretty major, though unusual that I have some colleagues who don't have the issue with 2.6.
msg113508 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2010年08月10日 05:49
I agree that this is an annoying bug, and I'm glad that it doesn't occur in the 27-maint branch.
I won't close this issue yet though, I'd prefer to add a unittest that demonstrates the problem in 2.7.0 and shows that the problem is fixed afterwords.
Basically something like this:
 pid = os.fork() 
 if pid == 0:
 # child
 import platform
 import urllib
 urllib.get_proxies()
 os._exit(0)
 else:
 # parent
 exit = sys.waitpid(pid, 0)
 self.assertEquals(exit, 0)
msg174894 - (view) Author: Alyssa Coghlan (ncoghlan) * (Python committer) Date: 2012年11月05日 11:47
Changing the type, since the crash bug has been fixed for a long time.
History
Date User Action Args
2022年04月11日 14:57:04adminsetgithub: 53651
2020年10月23日 08:54:42ronaldoussorensetstatus: open -> closed
resolution: out of date
stage: test needed -> resolved
2012年11月05日 11:47:36ncoghlansetnosy: + ncoghlan
title: crash when calling urllib.getproxies() under OSX with subprocess / particular memory usage -> Test fix for past crash when calling urllib.getproxies() under OSX with subprocess / particular memory usage
messages: + msg174894

type: crash -> enhancement
stage: test needed
2011年06月12日 18:43:39terry.reedysetversions: + Python 3.3, - Python 2.6, Python 3.1
2010年08月10日 05:49:49ronaldoussorensetmessages: + msg113508
2010年08月09日 18:39:21zzzeeksetmessages: + msg113444
2010年07月29日 13:14:17ronaldoussorensetmessages: + msg111917
2010年07月29日 09:55:38ronaldoussorensetmessages: + msg111905
2010年07月29日 08:06:28ronaldoussorensetmessages: + msg111898
versions: + Python 3.1, Python 3.2
2010年07月29日 07:51:32ronaldoussorensetpriority: normal -> high

messages: + msg111896
2010年07月29日 01:05:52ned.deilysetmessages: + msg111879
2010年07月29日 00:45:04zzzeeksetmessages: + msg111877
2010年07月28日 23:27:39ned.deilysetnosy: + ned.deily
messages: + msg111873
2010年07月28日 21:50:40w31rd0setnosy: + w31rd0
messages: + msg111857
2010年07月28日 21:30:34zzzeekcreate

AltStyle によって変換されたページ (->オリジナル) /