taniyama:Desktop mdickinson$ ps PID TTY TIME CMD 233 ttys000 0:00.16 -bash 652 ttys001 0:00.04 -bash 14075 ttys001 14:39.60 ./python.exe /Users/mdickinson/Desktop/threading_hang.py 2600 ttys002 0:00.02 -bash taniyama:Desktop mdickinson$ /opt/local/bin/ggdb GNU gdb (GDB) 7.9.1 Copyright (C) 2015 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-apple-darwin13.4.0". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word". (gdb) attach 14075 Attaching to process 14075 [New Thread 0x1603 of process 14075] [New Thread 0x1703 of process 14075] [New Thread 0x1803 of process 14075] [New Thread 0x1903 of process 14075] Reading symbols from /Users/mdickinson/Python/cpython/python.exe...done. warning: Could not open OSO archive file "/BinaryCache/Libsyscall/Libsyscall-2422.115.14~1/Symbols/BuiltProducts/libsystem_kernel.a" warning: `/private/var/tmp/Libsyscall/Libsyscall-2422.115.14~1/Libsyscall.build/Libsyscall_dynamic.build/Objects-normal/x86_64/_libc_funcptr.o': can't open to read symbols: No such file or directory. warning: `/private/var/tmp/Libsyscall/Libsyscall-2422.115.14~1/Libsyscall.build/Libsyscall_dynamic.build/Objects-normal/x86_64/kernel_vers.o': can't open to read symbols: No such file or directory. warning: `/private/var/tmp/Libsyscall/Libsyscall-2422.115.14~1/Libsyscall.build/Libsyscall_dynamic.build/Objects-normal/x86_64/memcpy.o': can't open to read symbols: No such file or directory. warning: `/private/var/tmp/Libsyscall/Libsyscall-2422.115.14~1/Libsyscall.build/Libsyscall_dynamic.build/Objects-normal/x86_64/strcmp.o': can't open to read symbols: No such file or directory. warning: `/private/var/tmp/Libsyscall/Libsyscall-2422.115.14~1/Libsyscall.build/Libsyscall_dynamic.build/Objects-normal/x86_64/strlcpy.o': can't open to read symbols: No such file or directory. warning: `/private/var/tmp/Libsyscall/Libsyscall-2422.115.14~1/Libsyscall.build/Libsyscall_dynamic.build/Objects-normal/x86_64/strlen.o': can't open to read symbols: No such file or directory. warning: Could not open OSO archive file "/BinaryCache/libplatform/libplatform-24.90.1~2/Symbols/libatomics_normal.a" warning: Could not open OSO archive file "/BinaryCache/libplatform/libplatform-24.90.1~2/Symbols/libcachecontrol_normal.a" warning: Could not open OSO archive file "/BinaryCache/libplatform/libplatform-24.90.1~2/Symbols/libos_normal.a" warning: Could not open OSO archive file "/BinaryCache/libplatform/libplatform-24.90.1~2/Symbols/libsetjmp_normal.a" warning: Could not open OSO archive file "/BinaryCache/libplatform/libplatform-24.90.1~2/Symbols/libsimple_normal.a" warning: Could not open OSO archive file "/BinaryCache/libplatform/libplatform-24.90.1~2/Symbols/libstring_normal.a" warning: Could not open OSO archive file "/BinaryCache/libplatform/libplatform-24.90.1~2/Symbols/libucontext_normal.a" warning: `/private/var/tmp/libplatform/libplatform-24.90.1~2/libplatform.build/libsystem_platform.build/Objects-normal/x86_64/init.o': can't open to read symbols: No such file or directory. warning: `/Users/mdickinson/Python/cpython/build/temp.macosx-10.4-x86_64-2.7/Users/mdickinson/Python/cpython/Modules/timemodule.o': file time stamp mismatch. 0x00007fff8fcd3716 in __psynch_cvwait () from /usr/lib/system/libsystem_kernel.dylib (gdb) thread info No symbol "info" in current context. (gdb) info thread Id Target Id Frame 5 Thread 0x1903 of process 14075 0x00007fff8fcd3716 in __psynch_cvwait () from /usr/lib/system/libsystem_kernel.dylib 4 Thread 0x1803 of process 14075 0x00007fff8fcd3716 in __psynch_cvwait () from /usr/lib/system/libsystem_kernel.dylib 3 Thread 0x1703 of process 14075 0x00007fff8fcd3716 in __psynch_cvwait () from /usr/lib/system/libsystem_kernel.dylib 2 Thread 0x1603 of process 14075 0x00007fff8fcd3716 in __psynch_cvwait () from /usr/lib/system/libsystem_kernel.dylib * 1 Thread 0x1503 of process 14075 0x00007fff8fcd3716 in __psynch_cvwait () from /usr/lib/system/libsystem_kernel.dylib (gdb) thread apply all bt Thread 5 (Thread 0x1903 of process 14075): #0 0x00007fff8fcd3716 in __psynch_cvwait () from /usr/lib/system/libsystem_kernel.dylib #1 0x00007fff909bec3b in _pthread_cond_wait () from /usr/lib/system/libsystem_pthread.dylib #2 0x00000001000e7e21 in PyThread_acquire_lock (lock=0xed3ed500, waitflag=) at Python/thread_pthread.h:429 #3 0x00000001000a645a in PyEval_EvalFrameEx ( f=Frame 0x1004f6050, for file /Users/mdickinson/Desktop/threading_hang.py, line 5, in (.0=, d=8953), throwflag=) at Python/ceval.c:1119 #4 0x0000000100025f61 in gen_send_ex (gen=0x1004e2910, arg=0x0, exc=-314649344) at Objects/genobject.c:85 #5 0x00000001000a1076 in builtin_all (self=, v=) at Python/bltinmodule.c:96 #6 0x00000001000ad7d1 in call_function (pp_stack=0x1004f7ec8, oparg=) at Python/ceval.c:4338 #7 PyEval_EvalFrameEx ( f=Frame 0x1004f7d38, for file /Users/mdickinson/Desktop/threading_hang.py, line 5, in is_prime (n=89371), throwflag=) at Python/ceval.c:2987 #8 0x00000001000a5eb2 in PyEval_EvalCodeEx (co=, globals=, locals=, args=, argcount=, kws=, kwcount=, defs=, defcount=, closure=) at Python/ceval.c:3582 #9 0x00000001000b25d5 in fast_function (func=, pp_stack=0x10420f0f8, n=, na=514, nk=) at Python/ceval.c:4446 #10 0x00000001000ad535 in call_function (pp_stack=0x1004f8ca0, oparg=) at Python/ceval.c:4371 #11 PyEval_EvalFrameEx ( f=Frame 0x1004f8b00, for file /Users/mdickinson/Desktop/threading_hang.py, line 8, in (.0=, n=89371), throwflag=) at Python/ceval.c:2987 #12 0x0000000100025f61 in gen_send_ex (gen=0x1004e2690, arg=0x0, exc=-314649344) at Objects/genobject.c:85 #13 0x000000010000a950 in PyIter_Next (iter=, iter=) at Objects/abstract.c:3103 #14 0x00000001000a45f8 in builtin_sum (self=, args=) at Python/bltinmodule.c:2405 #15 0x00000001000ad93f in call_function (pp_stack=0x1004f9940, oparg=) at Python/ceval.c:4350 #16 PyEval_EvalFrameEx ( f=Frame 0x1004f97b0, for file /Users/mdickinson/Desktop/threading_hang.py, line 8, in count_primes_in_range (start=87500, stop=100000), throwflag=) at Python/ceval.c:2987 #17 0x00000001000a5eb2 in PyEval_EvalCodeEx (co=, globals=, locals=, args=, argcount=, kws=, kwcount=, defs=, defcount=, closure=) at Python/ceval.c:3582 #18 0x0000000100030a7c in function_call (func=, arg=, kw=) at Objects/funcobject.c:526 #19 0x000000010000b173 in PyObject_Call (func=, arg=(87500, 100000), kw={}) at Objects/abstract.c:2529 #20 0x00000001000ae09b in ext_do_call (func=, pp_stack=0x1004f8ac0, nk=, flags=, na=) at Python/ceval.c:4663 #21 PyEval_EvalFrameEx ( f=Frame 0x1004f8938, for file /Users/mdickinson/Python/cpython/Lib/threading.py, line 763, in run (self=, acquire=, _Condition__waiters=[], release=) at remote 0x1004f0190>, _Thread__name='Thread-56', _Thread__daemonic=False, _Thread__started=<_Event(_Verbose__verbose=False, _Event__flag=True, _Event__cond=<_Condition(_Verbose__verbose=False, _Condition__lock=, acquire=, _Condition__waiters=[], release=) at remote 0x1004f0150>) at remote 0x1004f0110>, _Thread__stderr=, _Thread__target=, _Thread__kwargs={}, _Ver...(truncated), throwflag=) at Python/ceval.c:3026 ---Type to continue, or q to quit--- #22 0x00000001000b2672 in fast_function (func=, pp_stack=, n=, na=, nk=) at Python/ceval.c:4436 #23 0x00000001000ad535 in call_function (pp_stack=0x100606b50, oparg=) at Python/ceval.c:4371 #24 PyEval_EvalFrameEx ( f=Frame 0x1006069b0, for file /Users/mdickinson/Python/cpython/Lib/threading.py, line 810, in __bootstrap_inner (self=, acquire=, _Condition__waiters=[], release=) at remote 0x1004f0190>, _Thread__name='Thread-56', _Thread__daemonic=False, _Thread__started=<_Event(_Verbose__verbose=False, _Event__flag=True, _Event__cond=<_Condition(_Verbose__verbose=False, _Condition__lock=, acquire=, _Condition__waiters=[], release=) at remote 0x1004f0150>) at remote 0x1004f0110>, _Thread__stderr=, _Thread__target=, _Thread__k...(truncated), throwflag=) at Python/ceval.c:2987 #25 0x00000001000b2672 in fast_function (func=, pp_stack=, n=, na=, nk=) at Python/ceval.c:4436 #26 0x00000001000ad535 in call_function (pp_stack=0x1004effd8, oparg=) at Python/ceval.c:4371 #27 PyEval_EvalFrameEx ( f=Frame 0x1004efe50, for file /Users/mdickinson/Python/cpython/Lib/threading.py, line 783, in __bootstrap (self=, acquire=, _Condition__waiters=[], release=) at remote 0x1004f0190>, _Thread__name='Thread-56', _Thread__daemonic=False, _Thread__started=<_Event(_Verbose__verbose=False, _Event__flag=True, _Event__cond=<_Condition(_Verbose__verbose=False, _Condition__lock=, acquire=, _Condition__waiters=[], release=) at remote 0x1004f0150>) at remote 0x1004f0110>, _Thread__stderr=, _Thread__target=, _Thread__kwargs=...(truncated), throwflag=) at Python/ceval.c:2987 #28 0x00000001000a5eb2 in PyEval_EvalCodeEx (co=, globals=, locals=, args=, argcount=, kws=, kwcount=, defs=, defcount=, closure=) at Python/ceval.c:3582 #29 0x0000000100030a7c in function_call (func=, arg=, kw=) at Objects/funcobject.c:526 #30 0x000000010000b173 in PyObject_Call (func=, arg=(, acquire=, _Condition__waiters=[], release=) at remote 0x1004f0190>, _Thread__name='Thread-56', _Thread__daemonic=False, _Thread__started=<_Event(_Verbose__verbose=False, _Event__flag=True, _Event__cond=<_Condition(_Verbose__verbose=False, _Condition__lock=, acquire=, _Condition__waiters=[], release=) at remote 0x1004f0150>) at remote 0x1004f0110>, _Thread__stderr=, _Thread__target=, _Thread__kwargs={}, _Verbose__verbose=False, _Thread__args=(87500, 100000), _Thread__stopped=False, _Thread__initialized=True...(truncated), kw=0x0) at Objects/abstract.c:2529 #31 0x0000000100018216 in instancemethod_call (func=, arg=, kw=0x0) at Objects/classobject.c:2602 #32 0x000000010000b173 in PyObject_Call (func=, arg=(), kw=0x0) at Objects/abstract.c:2529 #33 0x00000001000b1dcd in PyEval_CallObjectWithKeywords (func=, arg=, kw=, func=, arg=, kw=) at Python/ceval.c:4219 #34 0x00000001000ece86 in t_bootstrap (boot_raw=0x1003077e0) at ./Modules/threadmodule.c:620 #35 0x00007fff909bc899 in _pthread_body () from /usr/lib/system/libsystem_pthread.dylib #36 0x00007fff909bc72a in _pthread_start () from /usr/lib/system/libsystem_pthread.dylib ---Type to continue, or q to quit--- #37 0x00007fff909c0fc9 in thread_start () from /usr/lib/system/libsystem_pthread.dylib #38 0x0000000000000000 in ?? () Thread 4 (Thread 0x1803 of process 14075): #0 0x00007fff8fcd3716 in __psynch_cvwait () from /usr/lib/system/libsystem_kernel.dylib #1 0x00007fff909bec3b in _pthread_cond_wait () from /usr/lib/system/libsystem_pthread.dylib #2 0x00000001000e7e21 in PyThread_acquire_lock (lock=0xed3ed300, waitflag=) at Python/thread_pthread.h:429 #3 0x00000001000a645a in PyEval_EvalFrameEx ( f=Frame 0x1004f65c0, for file /Users/mdickinson/Desktop/threading_hang.py, line 5, in (.0=, d=56209), throwflag=) at Python/ceval.c:1119 #4 0x0000000100025f61 in gen_send_ex (gen=0x1004e2640, arg=0x0, exc=-314649856) at Objects/genobject.c:85 #5 0x00000001000a1076 in builtin_all (self=, v=) at Python/bltinmodule.c:96 #6 0x00000001000ad7d1 in call_function (pp_stack=0x100452ec8, oparg=) at Python/ceval.c:4338 #7 PyEval_EvalFrameEx ( f=Frame 0x100452d38, for file /Users/mdickinson/Desktop/threading_hang.py, line 5, in is_prime (n=77069), throwflag=) at Python/ceval.c:2987 #8 0x00000001000a5eb2 in PyEval_EvalCodeEx (co=, globals=, locals=, args=, argcount=, kws=, kwcount=, defs=, defcount=, closure=) at Python/ceval.c:3582 #9 0x00000001000b25d5 in fast_function (func=, pp_stack=0x103e0c0f8, n=, na=514, nk=) at Python/ceval.c:4446 #10 0x00000001000ad535 in call_function (pp_stack=0x1004f8910, oparg=) at Python/ceval.c:4371 #11 PyEval_EvalFrameEx ( f=Frame 0x1004f8770, for file /Users/mdickinson/Desktop/threading_hang.py, line 8, in (.0=, n=77069), throwflag=) at Python/ceval.c:2987 #12 0x0000000100025f61 in gen_send_ex (gen=0x1004e29b0, arg=0x0, exc=-314649856) at Objects/genobject.c:85 #13 0x000000010000a950 in PyIter_Next (iter=, iter=) at Objects/abstract.c:3103 #14 0x00000001000a45f8 in builtin_sum (self=, args=) at Python/bltinmodule.c:2405 #15 0x00000001000ad93f in call_function (pp_stack=0x1004f9590, oparg=) at Python/ceval.c:4350 #16 PyEval_EvalFrameEx ( f=Frame 0x1004f9400, for file /Users/mdickinson/Desktop/threading_hang.py, line 8, in count_primes_in_range (start=75000, stop=87500), throwflag=) at Python/ceval.c:2987 #17 0x00000001000a5eb2 in PyEval_EvalCodeEx (co=, globals=, locals=, args=, argcount=, kws=, kwcount=, defs=, defcount=, closure=) at Python/ceval.c:3582 #18 0x0000000100030a7c in function_call (func=, arg=, kw=) at Objects/funcobject.c:526 #19 0x000000010000b173 in PyObject_Call (func=, arg=(75000, 87500), kw={}) at Objects/abstract.c:2529 #20 0x00000001000ae09b in ext_do_call (func=, pp_stack=0x1004f8730, nk=, flags=, na=) at Python/ceval.c:4663 #21 PyEval_EvalFrameEx ( f=Frame 0x1004f85a8, for file /Users/mdickinson/Python/cpython/Lib/threading.py, line 763, in run (self=, acquire=, _Condition__waiters=[], release=) at remote 0x1004f0090>, _Thread__name='Thread-55', _Thread__daemonic=False, _Thread__started=<_Event(_Verbose__verbose=False, _Event__flag=True, _Event__cond=<_Condition(_Verbose__verbose=False, _Condition__lock=, acquire=, _Condition__waiters=[], release=) at remote 0x1004f0050>) at remote 0x1004f0790>, ---Type to continue, or q to quit--- _Thread__stderr=, _Thread__target=, _Thread__kwargs={}, _Ver...(truncated), throwflag=) at Python/ceval.c:3026 #22 0x00000001000b2672 in fast_function (func=, pp_stack=, n=, na=, nk=) at Python/ceval.c:4436 #23 0x00000001000ad535 in call_function (pp_stack=0x1006068a0, oparg=) at Python/ceval.c:4371 #24 PyEval_EvalFrameEx ( f=Frame 0x100606700, for file /Users/mdickinson/Python/cpython/Lib/threading.py, line 810, in __bootstrap_inner (self=, acquire=, _Condition__waiters=[], release=) at remote 0x1004f0090>, _Thread__name='Thread-55', _Thread__daemonic=False, _Thread__started=<_Event(_Verbose__verbose=False, _Event__flag=True, _Event__cond=<_Condition(_Verbose__verbose=False, _Condition__lock=, acquire=, _Condition__waiters=[], release=) at remote 0x1004f0050>) at remote 0x1004f0790>, _Thread__stderr=, _Thread__target=, _Thread__k...(truncated), throwflag=) at Python/ceval.c:2987 #25 0x00000001000b2672 in fast_function (func=, pp_stack=, n=, na=, nk=) at Python/ceval.c:4436 #26 0x00000001000ad535 in call_function (pp_stack=0x1004efe18, oparg=) at Python/ceval.c:4371 #27 PyEval_EvalFrameEx ( f=Frame 0x1004efc90, for file /Users/mdickinson/Python/cpython/Lib/threading.py, line 783, in __bootstrap (self=, acquire=, _Condition__waiters=[], release=) at remote 0x1004f0090>, _Thread__name='Thread-55', _Thread__daemonic=False, _Thread__started=<_Event(_Verbose__verbose=False, _Event__flag=True, _Event__cond=<_Condition(_Verbose__verbose=False, _Condition__lock=, acquire=, _Condition__waiters=[], release=) at remote 0x1004f0050>) at remote 0x1004f0790>, _Thread__stderr=, _Thread__target=, _Thread__kwargs=...(truncated), throwflag=) at Python/ceval.c:2987 #28 0x00000001000a5eb2 in PyEval_EvalCodeEx (co=, globals=, locals=, args=, argcount=, kws=, kwcount=, defs=, defcount=, closure=) at Python/ceval.c:3582 #29 0x0000000100030a7c in function_call (func=, arg=, kw=) at Objects/funcobject.c:526 #30 0x000000010000b173 in PyObject_Call (func=, arg=(, acquire=, _Condition__waiters=[], release=) at remote 0x1004f0090>, _Thread__name='Thread-55', _Thread__daemonic=False, _Thread__started=<_Event(_Verbose__verbose=False, _Event__flag=True, _Event__cond=<_Condition(_Verbose__verbose=False, _Condition__lock=, acquire=, _Condition__waiters=[], release=) at remote 0x1004f0050>) at remote 0x1004f0790>, _Thread__stderr=, _Thread__target=, _Thread__kwargs={}, _Verbose__verbose=False, _Thread__args=(75000, 87500), _Thread__stopped=False, _Thread__initialized=True)...(truncated), kw=0x0) at Objects/abstract.c:2529 #31 0x0000000100018216 in instancemethod_call (func=, arg=, kw=0x0) at Objects/classobject.c:2602 #32 0x000000010000b173 in PyObject_Call (func=, arg=(), kw=0x0) at Objects/abstract.c:2529 #33 0x00000001000b1dcd in PyEval_CallObjectWithKeywords (func=, arg=, kw=, func=, arg=, kw=) at Python/ceval.c:4219 #34 0x00000001000ece86 in t_bootstrap (boot_raw=0x100702670) at ./Modules/threadmodule.c:620 ---Type to continue, or q to quit--- #35 0x00007fff909bc899 in _pthread_body () from /usr/lib/system/libsystem_pthread.dylib #36 0x00007fff909bc72a in _pthread_start () from /usr/lib/system/libsystem_pthread.dylib #37 0x00007fff909c0fc9 in thread_start () from /usr/lib/system/libsystem_pthread.dylib #38 0x0000000000000000 in ?? () Thread 3 (Thread 0x1703 of process 14075): #0 0x00007fff8fcd3716 in __psynch_cvwait () from /usr/lib/system/libsystem_kernel.dylib #1 0x00007fff909bec3b in _pthread_cond_wait () from /usr/lib/system/libsystem_pthread.dylib #2 0x00000001000e7e21 in PyThread_acquire_lock (lock=0xed3ed600, waitflag=) at Python/thread_pthread.h:429 #3 0x00000001000a645a in PyEval_EvalFrameEx ( f=Frame 0x1004f63f0, for file /Users/mdickinson/Desktop/threading_hang.py, line 5, in (.0=, d=25303), throwflag=) at Python/ceval.c:1119 #4 0x0000000100025f61 in gen_send_ex (gen=0x1004e2820, arg=0x0, exc=-314649088) at Objects/genobject.c:85 #5 0x00000001000a1076 in builtin_all (self=, v=) at Python/bltinmodule.c:96 #6 0x00000001000ad7d1 in call_function (pp_stack=0x1004f93b8, oparg=) at Python/ceval.c:4338 #7 PyEval_EvalFrameEx ( f=Frame 0x1004f9228, for file /Users/mdickinson/Desktop/threading_hang.py, line 5, in is_prime (n=41719), throwflag=) at Python/ceval.c:2987 #8 0x00000001000a5eb2 in PyEval_EvalCodeEx (co=, globals=, locals=, args=, argcount=, kws=, kwcount=, defs=, defcount=, closure=) at Python/ceval.c:3582 #9 0x00000001000b25d5 in fast_function (func=, pp_stack=0x1032030f8, n=, na=514, nk=) at Python/ceval.c:4446 #10 0x00000001000ad535 in call_function (pp_stack=0x1004f5ca0, oparg=) at Python/ceval.c:4371 #11 PyEval_EvalFrameEx ( f=Frame 0x1004f5b00, for file /Users/mdickinson/Desktop/threading_hang.py, line 8, in (.0=, n=41719), throwflag=) at Python/ceval.c:2987 #12 0x0000000100025f61 in gen_send_ex (gen=0x1004e2780, arg=0x0, exc=-314649088) at Objects/genobject.c:85 #13 0x000000010000a950 in PyIter_Next (iter=, iter=) at Objects/abstract.c:3103 #14 0x00000001000a45f8 in builtin_sum (self=, args=) at Python/bltinmodule.c:2405 #15 0x00000001000ad93f in call_function (pp_stack=0x1004f7940, oparg=) at Python/ceval.c:4350 #16 PyEval_EvalFrameEx ( f=Frame 0x1004f77b0, for file /Users/mdickinson/Desktop/threading_hang.py, line 8, in count_primes_in_range (start=37500, stop=50000), throwflag=) at Python/ceval.c:2987 #17 0x00000001000a5eb2 in PyEval_EvalCodeEx (co=, globals=, locals=, args=, argcount=, kws=, kwcount=, defs=, defcount=, closure=) at Python/ceval.c:3582 #18 0x0000000100030a7c in function_call (func=, arg=, kw=) at Objects/funcobject.c:526 #19 0x000000010000b173 in PyObject_Call (func=, arg=(37500, 50000), kw={}) at Objects/abstract.c:2529 #20 0x00000001000ae09b in ext_do_call (func=, pp_stack=0x1004f5ac0, nk=, flags=, na=) at Python/ceval.c:4663 #21 PyEval_EvalFrameEx ( f=Frame 0x1004f5938, for file /Users/mdickinson/Python/cpython/Lib/threading.py, line 763, in run (self=, acquire=, _Condition__waiters=[], release=) at remote 0x1004f0510>, _Thread__name='Thread-52', _Thread__daemonic=False, _Thread__started=<_Event(_Verbose__verbose=False, _Event__flag=True, _Event__cond=<_Condition(_Verbose__verbose=False, _Condition__lock= to continue, or q to quit--- .lock at remote 0x100292270>, acquire=, _Condition__waiters=[], release=) at remote 0x1004f04d0>) at remote 0x1004f0490>, _Thread__stderr=, _Thread__target=, _Thread__kwargs={}, _Ver...(truncated), throwflag=) at Python/ceval.c:3026 #22 0x00000001000b2672 in fast_function (func=, pp_stack=, n=, na=, nk=) at Python/ceval.c:4436 #23 0x00000001000ad535 in call_function (pp_stack=0x100345500, oparg=) at Python/ceval.c:4371 #24 PyEval_EvalFrameEx ( f=Frame 0x100345360, for file /Users/mdickinson/Python/cpython/Lib/threading.py, line 810, in __bootstrap_inner (self=, acquire=, _Condition__waiters=[], release=) at remote 0x1004f0510>, _Thread__name='Thread-52', _Thread__daemonic=False, _Thread__started=<_Event(_Verbose__verbose=False, _Event__flag=True, _Event__cond=<_Condition(_Verbose__verbose=False, _Condition__lock=, acquire=, _Condition__waiters=[], release=) at remote 0x1004f04d0>) at remote 0x1004f0490>, _Thread__stderr=, _Thread__target=, _Thread__k...(truncated), throwflag=) at Python/ceval.c:2987 #25 0x00000001000b2672 in fast_function (func=, pp_stack=, n=, na=, nk=) at Python/ceval.c:4436 #26 0x00000001000ad535 in call_function (pp_stack=0x1004ef8d8, oparg=) at Python/ceval.c:4371 #27 PyEval_EvalFrameEx ( f=Frame 0x1004ef750, for file /Users/mdickinson/Python/cpython/Lib/threading.py, line 783, in __bootstrap (self=, acquire=, _Condition__waiters=[], release=) at remote 0x1004f0510>, _Thread__name='Thread-52', _Thread__daemonic=False, _Thread__started=<_Event(_Verbose__verbose=False, _Event__flag=True, _Event__cond=<_Condition(_Verbose__verbose=False, _Condition__lock=, acquire=, _Condition__waiters=[], release=) at remote 0x1004f04d0>) at remote 0x1004f0490>, _Thread__stderr=, _Thread__target=, _Thread__kwargs=...(truncated), throwflag=) at Python/ceval.c:2987 #28 0x00000001000a5eb2 in PyEval_EvalCodeEx (co=, globals=, locals=, args=, argcount=, kws=, kwcount=, defs=, defcount=, closure=) at Python/ceval.c:3582 #29 0x0000000100030a7c in function_call (func=, arg=, kw=) at Objects/funcobject.c:526 #30 0x000000010000b173 in PyObject_Call (func=, arg=(, acquire=, _Condition__waiters=[], release=) at remote 0x1004f0510>, _Thread__name='Thread-52', _Thread__daemonic=False, _Thread__started=<_Event(_Verbose__verbose=False, _Event__flag=True, _Event__cond=<_Condition(_Verbose__verbose=False, _Condition__lock=, acquire=, _Condition__waiters=[], release=) at remote 0x1004f04d0>) at remote 0x1004f0490>, _Thread__stderr=, _Thread__target=, _Thread__kwargs={}, _Verbose__verbose=False, _Thread__args=(37500, 50000), _Thread__stopped=False, _Thread__initialized=True)...(truncated), kw=0x0) at Objects/abstract.c:2529 #31 0x0000000100018216 in instancemethod_call (func=, arg=, kw=0x0) at Objects/classobject.c:2602 #32 0x000000010000b173 in PyObject_Call (func=, arg=(), kw=0x0) at Objects/abstract.c:2529 #33 0x00000001000b1dcd in PyEval_CallObjectWithKeywords (func=, arg=, kw=, ---Type to continue, or q to quit--- func=, arg=, kw=) at Python/ceval.c:4219 #34 0x00000001000ece86 in t_bootstrap (boot_raw=0x1003329f0) at ./Modules/threadmodule.c:620 #35 0x00007fff909bc899 in _pthread_body () from /usr/lib/system/libsystem_pthread.dylib #36 0x00007fff909bc72a in _pthread_start () from /usr/lib/system/libsystem_pthread.dylib #37 0x00007fff909c0fc9 in thread_start () from /usr/lib/system/libsystem_pthread.dylib #38 0x0000000000000000 in ?? () Thread 2 (Thread 0x1603 of process 14075): #0 0x00007fff8fcd3716 in __psynch_cvwait () from /usr/lib/system/libsystem_kernel.dylib #1 0x00007fff909bec3b in _pthread_cond_wait () from /usr/lib/system/libsystem_pthread.dylib #2 0x00000001000e7e21 in PyThread_acquire_lock (lock=0xed3ed300, waitflag=) at Python/thread_pthread.h:429 #3 0x00000001000a645a in PyEval_EvalFrameEx ( f=Frame 0x1004f6d00, for file /Users/mdickinson/Desktop/threading_hang.py, line 5, in (.0=, d=11880), throwflag=) at Python/ceval.c:1119 #4 0x0000000100025f61 in gen_send_ex (gen=0x1004b1aa0, arg=0x0, exc=-314649856) at Objects/genobject.c:85 #5 0x00000001000a1076 in builtin_all (self=, v=) at Python/bltinmodule.c:96 #6 0x00000001000ad7d1 in call_function (pp_stack=0x1004f73b8, oparg=) at Python/ceval.c:4338 #7 PyEval_EvalFrameEx ( f=Frame 0x1004f7228, for file /Users/mdickinson/Desktop/threading_hang.py, line 5, in is_prime (n=21179), throwflag=) at Python/ceval.c:2987 #8 0x00000001000a5eb2 in PyEval_EvalCodeEx (co=, globals=, locals=, args=, argcount=, kws=, kwcount=, defs=, defcount=, closure=) at Python/ceval.c:3582 #9 0x00000001000b25d5 in fast_function (func=, pp_stack=0x1021030f8, n=, na=514, nk=) at Python/ceval.c:4446 #10 0x00000001000ad535 in call_function (pp_stack=0x1004f5910, oparg=) at Python/ceval.c:4371 #11 PyEval_EvalFrameEx ( f=Frame 0x1004f5770, for file /Users/mdickinson/Desktop/threading_hang.py, line 8, in (.0=, n=21179), throwflag=) at Python/ceval.c:2987 #12 0x0000000100025f61 in gen_send_ex (gen=0x1004e26e0, arg=0x0, exc=-314649856) at Objects/genobject.c:85 #13 0x000000010000a950 in PyIter_Next (iter=, iter=) at Objects/abstract.c:3103 #14 0x00000001000a45f8 in builtin_sum (self=, args=) at Python/bltinmodule.c:2405 #15 0x00000001000ad93f in call_function (pp_stack=0x1004f7590, oparg=) at Python/ceval.c:4350 #16 PyEval_EvalFrameEx ( f=Frame 0x1004f7400, for file /Users/mdickinson/Desktop/threading_hang.py, line 8, in count_primes_in_range (start=12500, stop=25000), throwflag=) at Python/ceval.c:2987 #17 0x00000001000a5eb2 in PyEval_EvalCodeEx (co=, globals=, locals=, args=, argcount=, kws=, kwcount=, defs=, defcount=, closure=) at Python/ceval.c:3582 #18 0x0000000100030a7c in function_call (func=, arg=, kw=) at Objects/funcobject.c:526 #19 0x000000010000b173 in PyObject_Call (func=, arg=(12500, 25000), kw={}) at Objects/abstract.c:2529 #20 0x00000001000ae09b in ext_do_call (func=, pp_stack=0x1004f5730, nk=, flags=, na=) at Python/ceval.c:4663 #21 PyEval_EvalFrameEx ( f=Frame 0x1004f55a8, for file /Users/mdickinson/Python/cpython/Lib/threading.py, line 763, in run (self=, acquire=, _Condition__waiters=[], rel---Type to continue, or q to quit--- ease=) at remote 0x1004f0310>, _Thread__name='Thread-50', _Thread__daemonic=False, _Thread__started=<_Event(_Verbose__verbose=False, _Event__flag=True, _Event__cond=<_Condition(_Verbose__verbose=False, _Condition__lock=, acquire=, _Condition__waiters=[], release=) at remote 0x1004f02d0>) at remote 0x1004f0290>, _Thread__stderr=, _Thread__target=) at Python/ceval.c:3026 #22 0x00000001000b2672 in fast_function (func=, pp_stack=, n=, na=, nk=) at Python/ceval.c:4436 #23 0x00000001000ad535 in call_function (pp_stack=0x1006065b0, oparg=) at Python/ceval.c:4371 #24 PyEval_EvalFrameEx ( f=Frame 0x100606410, for file /Users/mdickinson/Python/cpython/Lib/threading.py, line 810, in __bootstrap_inner (self=, acquire=, _Condition__waiters=[], release=) at remote 0x1004f0310>, _Thread__name='Thread-50', _Thread__daemonic=False, _Thread__started=<_Event(_Verbose__verbose=False, _Event__flag=True, _Event__cond=<_Condition(_Verbose__verbose=False, _Condition__lock=, acquire=, _Condition__waiters=[], release=) at remote 0x1004f02d0>) at remote 0x1004f0290>, _Thread__stderr=, _Thread__target=) at Python/ceval.c:2987 #25 0x00000001000b2672 in fast_function (func=, pp_stack=, n=, na=, nk=) at Python/ceval.c:4436 #26 0x00000001000ad535 in call_function (pp_stack=0x1004ef718, oparg=) at Python/ceval.c:4371 #27 PyEval_EvalFrameEx ( f=Frame 0x1004ef590, for file /Users/mdickinson/Python/cpython/Lib/threading.py, line 783, in __bootstrap (self=, acquire=, _Condition__waiters=[], release=) at remote 0x1004f0310>, _Thread__name='Thread-50', _Thread__daemonic=False, _Thread__started=<_Event(_Verbose__verbose=False, _Event__flag=True, _Event__cond=<_Condition(_Verbose__verbose=False, _Condition__lock=, acquire=, _Condition__waiters=[], release=) at remote 0x1004f02d0>) at remote 0x1004f0290>, _Thread__stderr=, _Thread__target=) at Python/ceval.c:2987 #28 0x00000001000a5eb2 in PyEval_EvalCodeEx (co=, globals=, locals=, args=, argcount=, kws=, kwcount=, defs=, defcount=, closure=) at Python/ceval.c:3582 #29 0x0000000100030a7c in function_call (func=, arg=, kw=) at Objects/funcobject.c:526 #30 0x000000010000b173 in PyObject_Call (func=, arg=(, acquire=, _Condition__waiters=[], release=) at remote 0x1004f0310>, _Thread__name='Thread-50', _Thread__daemonic=False, _Thread__started=<_Event(_Verbose__verbose=False, _Event__flag=True, _Event__cond=<_Condition(_Verbose__verbose=False, _Condition__lock=, acquire=, _Condition__waiters=[], release=) at remote 0x1004f02d0>) at remote 0x1004f0290>, _Thread__stderr=, _Thread__target=, _Thread__kwargs={}, _Verbose__verbose=False, _Thread__args=(12500, 25000), _Thread__stoppe...(truncated), kw=0x0) at Objects/abstract.c:2529 #31 0x0000000100018216 in instancemethod_call (func=, arg=, kw=0x0) at Objects/classobject.c:2602 ---Type to continue, or q to quit--- #32 0x000000010000b173 in PyObject_Call (func=, arg=(), kw=0x0) at Objects/abstract.c:2529 #33 0x00000001000b1dcd in PyEval_CallObjectWithKeywords (func=, arg=, kw=, func=, arg=, kw=) at Python/ceval.c:4219 #34 0x00000001000ece86 in t_bootstrap (boot_raw=0x1029005b0) at ./Modules/threadmodule.c:620 #35 0x00007fff909bc899 in _pthread_body () from /usr/lib/system/libsystem_pthread.dylib #36 0x00007fff909bc72a in _pthread_start () from /usr/lib/system/libsystem_pthread.dylib #37 0x00007fff909c0fc9 in thread_start () from /usr/lib/system/libsystem_pthread.dylib #38 0x0000000000000000 in ?? () Thread 1 (Thread 0x1503 of process 14075): #0 0x00007fff8fcd3716 in __psynch_cvwait () from /usr/lib/system/libsystem_kernel.dylib #1 0x00007fff909bec3b in _pthread_cond_wait () from /usr/lib/system/libsystem_pthread.dylib #2 0x00000001000e7e21 in PyThread_acquire_lock (lock=0x0, waitflag=) at Python/thread_pthread.h:429 #3 0x00000001000ec9e7 in lock_PyThread_acquire_lock (self=0x100292330, args=) at ./Modules/threadmodule.c:52 #4 0x00000001000ad93f in call_function (pp_stack=0x1007001e0, oparg=) at Python/ceval.c:4350 #5 PyEval_EvalFrameEx ( f=Frame 0x100700020, for file /Users/mdickinson/Python/cpython/Lib/threading.py, line 340, in wait (self=<_Condition(_Verbose__verbose=False, _Condition__lock=, acquire=, _Condition__waiters=[], release=) at remote 0x1004f0310>, timeout=None, waiter=, saved_state=None), throwflag=) at Python/ceval.c:2987 #6 0x00000001000a5eb2 in PyEval_EvalCodeEx (co=, globals=, locals=, args=, argcount=, kws=, kwcount=, defs=, defcount=, closure=) at Python/ceval.c:3582 #7 0x00000001000b25d5 in fast_function (func=, pp_stack=0x7fff5fbff268, n=, na=514, nk=) at Python/ceval.c:4446 #8 0x00000001000ad535 in call_function (pp_stack=0x100492970, oparg=) at Python/ceval.c:4371 #9 PyEval_EvalFrameEx ( f=Frame 0x1004927d0, for file /Users/mdickinson/Python/cpython/Lib/threading.py, line 949, in join (self=, acquire=, _Condition__waiters=[], release=) at remote 0x1004f0310>, _Thread__name='Thread-50', _Thread__daemonic=False, _Thread__started=<_Event(_Verbose__verbose=False, _Event__flag=True, _Event__cond=<_Condition(_Verbose__verbose=False, _Condition__lock=, acquire=, _Condition__waiters=[], release=) at remote 0x1004f02d0>) at remote 0x1004f0290>, _Thread__stderr=, _Thread__target=) at Python/ceval.c:2987 #10 0x00000001000a5eb2 in PyEval_EvalCodeEx (co=, globals=, locals=, args=, argcount=, kws=, kwcount=, defs=, defcount=, closure=) at Python/ceval.c:3582 #11 0x00000001000b25d5 in fast_function (func=, pp_stack=0x7fff5fbff4e8, n=, na=514, nk=) at Python/ceval.c:4446 #12 0x00000001000ad535 in call_function (pp_stack=0x100604100, oparg=) at Python/ceval.c:4371 #13 PyEval_EvalFrameEx ( f=Frame 0x100603f60, for file /Users/mdickinson/Desktop/threading_hang.py, line 21, in main (i=7, threads=[, acquire=, _Condition__waiters=[], release=) at remote 0x1004f0210>, _Thread__name='Thread-49', _Thread__daemonic=False, _Thread__started=<_Event(_Verbose__verbose=False, _Event__flag=True, _Event__cond=<_Condition(_Verbose__verbose=False, _Condition__lock= to continue, or q to quit--- ead.lock at remote 0x1002921b0>, acquire=, _Condition__waiters=[], release=) at remote 0x1004f01d0>) at remote 0x1004b0b50>, _Thread__stderr=, _Verbose__verbose=False, _Thread__stopped=True, _Thread__initialized=Tr...(truncated), throwflag=) at Python/ceval.c:2987 #14 0x00000001000b2672 in fast_function (func=, pp_stack=, n=, na=, nk=) at Python/ceval.c:4436 #15 0x00000001000ad535 in call_function (pp_stack=0x100267da8, oparg=) at Python/ceval.c:4371 #16 PyEval_EvalFrameEx (f=Frame 0x100267c20, for file /Users/mdickinson/Desktop/threading_hang.py, line 27, in (), throwflag=) at Python/ceval.c:2987 #17 0x00000001000a5eb2 in PyEval_EvalCodeEx (co=, globals=, locals=, args=, argcount=, kws=, kwcount=, defs=, defcount=, closure=) at Python/ceval.c:3582 #18 0x00000001000a58a6 in PyEval_EvalCode (co=0x100324a38, globals=, locals=0x0) at Python/ceval.c:669 #19 0x00000001000d40a4 in run_mod (mod=, filename=, globals=, locals=, flags=, arena=, mod=, filename=, globals=, locals=, flags=, arena=) at Python/pythonrun.c:1370 #20 PyRun_FileExFlags (fp=, filename=, start=, globals={'count_primes_in_range': , 'i': 6, '__builtins__': , '__file__': '/Users/mdickinson/Desktop/threading_hang.py', 'is_prime': , '__package__': None, 'threading': , 'itertools': , '__name__': '__main__', 'main': , '__doc__': None}, locals={'count_primes_in_range': , 'i': 6, '__builtins__': , '__file__': '/Users/mdickinson/Desktop/threading_hang.py', 'is_prime': , '__package__': None, 'threading': , 'itertools': , '__name__': '__main__', 'main': , '__doc__': None}, closeit=, flags=) at Python/pythonrun.c:1356 #21 0x00000001000d3c21 in PyRun_SimpleFileExFlags (fp=0x7fff7c9fd2a0, filename=0x7fff5fbffb95 "/Users/mdickinson/Desktop/threading_hang.py", closeit=1, flags=0x7fff5fbff9c0) at Python/pythonrun.c:948 #22 0x00000001000eac80 in Py_Main (argc=, argv=) at Modules/main.c:640 #23 0x0000000100000a35 in _start () #24 0x0000000100000951 in start () (gdb) set pagination off (gdb) thread apply all py-list Thread 5 (Thread 0x1903 of process 14075): 1 import itertools 2 import threading 3 4 def is_prime(n): >5 return n >= 2 and all(n % d for d in xrange(2, n)) 6 7 def count_primes_in_range(start, stop): 8 return sum(is_prime(n) for n in xrange(start, stop)) 9 10 def main(): Thread 4 (Thread 0x1803 of process 14075): 1 import itertools 2 import threading 3 4 def is_prime(n): >5 return n >= 2 and all(n % d for d in xrange(2, n)) 6 7 def count_primes_in_range(start, stop): 8 return sum(is_prime(n) for n in xrange(start, stop)) 9 10 def main(): Thread 3 (Thread 0x1703 of process 14075): 1 import itertools 2 import threading 3 4 def is_prime(n): >5 return n >= 2 and all(n % d for d in xrange(2, n)) 6 7 def count_primes_in_range(start, stop): 8 return sum(is_prime(n) for n in xrange(start, stop)) 9 10 def main(): Thread 2 (Thread 0x1603 of process 14075): 1 import itertools 2 import threading 3 4 def is_prime(n): >5 return n >= 2 and all(n % d for d in xrange(2, n)) 6 7 def count_primes_in_range(start, stop): 8 return sum(is_prime(n) for n in xrange(start, stop)) 9 10 def main(): Thread 1 (Thread 0x1503 of process 14075): 335 waiter.acquire() 336 self.__waiters.append(waiter) 337 saved_state = self._release_save() 338 try: # restore state no matter what (e.g., KeyboardInterrupt) 339 if timeout is None: >340 waiter.acquire() 341 if __debug__: 342 self._note("%s.wait(): got it", self) 343 else: 344 # Balancing act: We can't afford a pure busy loop, so we 345 # have to sleep; but if we sleep the whole timeout time, (gdb) Thread 5 (Thread 0x1903 of process 14075): 1 import itertools 2 import threading 3 4 def is_prime(n): >5 return n >= 2 and all(n % d for d in xrange(2, n)) 6 7 def count_primes_in_range(start, stop): 8 return sum(is_prime(n) for n in xrange(start, stop)) 9 10 def main(): Thread 4 (Thread 0x1803 of process 14075): 1 import itertools 2 import threading 3 4 def is_prime(n): >5 return n >= 2 and all(n % d for d in xrange(2, n)) 6 7 def count_primes_in_range(start, stop): 8 return sum(is_prime(n) for n in xrange(start, stop)) 9 10 def main(): Thread 3 (Thread 0x1703 of process 14075): 1 import itertools 2 import threading 3 4 def is_prime(n): >5 return n >= 2 and all(n % d for d in xrange(2, n)) 6 7 def count_primes_in_range(start, stop): 8 return sum(is_prime(n) for n in xrange(start, stop)) 9 10 def main(): Thread 2 (Thread 0x1603 of process 14075): 1 import itertools 2 import threading 3 4 def is_prime(n): >5 return n >= 2 and all(n % d for d in xrange(2, n)) 6 7 def count_primes_in_range(start, stop): 8 return sum(is_prime(n) for n in xrange(start, stop)) 9 10 def main(): Thread 1 (Thread 0x1503 of process 14075): 335 waiter.acquire() 336 self.__waiters.append(waiter) 337 saved_state = self._release_save() 338 try: # restore state no matter what (e.g., KeyboardInterrupt) 339 if timeout is None: >340 waiter.acquire() 341 if __debug__: 342 self._note("%s.wait(): got it", self) 343 else: 344 # Balancing act: We can't afford a pure busy loop, so we 345 # have to sleep; but if we sleep the whole timeout time, (gdb)