taniyama:cpython mdickinson$ ps PID TTY TIME CMD 233 ttys000 0:00.23 -bash 652 ttys001 0:00.05 -bash 54583 ttys001 31:04.64 ./python.exe /Users/mdickinson/Desktop/threading_hang.py taniyama:cpython 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 54583 Attaching to process 54583 [New Thread 0x1603 of process 54583] [New Thread 0x1703 of process 54583] [New Thread 0x1803 of process 54583] [New Thread 0x1903 of process 54583] [New Thread 0x1a03 of process 54583] 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-pydebug/Users/mdickinson/Python/cpython/Modules/timemodule.o': file time stamp mismatch. 0x00007fff8fcd3716 in __psynch_cvwait () from /usr/lib/system/libsystem_kernel.dylib (gdb) info thread Id Target Id Frame 6 Thread 0x1a03 of process 54583 0x00007fff8fcd3716 in __psynch_cvwait () from /usr/lib/system/libsystem_kernel.dylib 5 Thread 0x1903 of process 54583 0x00007fff8fcd3716 in __psynch_cvwait () from /usr/lib/system/libsystem_kernel.dylib 4 Thread 0x1803 of process 54583 0x00007fff8fcd3716 in __psynch_cvwait () from /usr/lib/system/libsystem_kernel.dylib 3 Thread 0x1703 of process 54583 0x00007fff8fcd3716 in __psynch_cvwait () from /usr/lib/system/libsystem_kernel.dylib 2 Thread 0x1603 of process 54583 0x00007fff8fcd3716 in __psynch_cvwait () from /usr/lib/system/libsystem_kernel.dylib * 1 Thread 0x1503 of process 54583 0x00007fff8fcd3716 in __psynch_cvwait () from /usr/lib/system/libsystem_kernel.dylib (gdb) set pagination off (gdb) thread apply all bt Thread 6 (Thread 0x1a03 of process 54583): #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 0x00000001001bba3c in PyThread_acquire_lock (lock=0x1004319e0, waitflag=1) at Python/thread_pthread.h:429 #3 0x00000001001499e8 in PyEval_EvalFrameEx (f=Frame 0x100623660, for file /Users/mdickinson/Desktop/threading_hang.py, line 5, in (.0=, d=36364), throwflag=0) at Python/ceval.c:1119 #4 0x000000010004a3bc in gen_send_ex (gen=0x1006bdae0, arg=0x0, exc=0) at Objects/genobject.c:85 #5 0x0000000100049b14 in gen_iternext (gen=0x1006bdae0) at Objects/genobject.c:283 #6 0x000000010013cfb5 in builtin_all (self=0x0, v=) at Python/bltinmodule.c:96 #7 0x000000010015e188 in call_function (pp_stack=0x103b06a40, oparg=1) at Python/ceval.c:4338 #8 0x0000000100158521 in PyEval_EvalFrameEx (f=Frame 0x101500a50, for file /Users/mdickinson/Desktop/threading_hang.py, line 5, in is_prime (n=90191), throwflag=0) at Python/ceval.c:2987 #9 0x000000010014942a in PyEval_EvalCodeEx (co=0x1005e0eb0, 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=0x0, args=0x1006d1dd8, argcount=1, kws=0x1006d1de0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:3582 #10 0x0000000100161507 in fast_function (func=, pp_stack=0x103b073f0, n=1, na=1, nk=0) at Python/ceval.c:4446 #11 0x000000010015e5f4 in call_function (pp_stack=0x103b073f0, oparg=1) at Python/ceval.c:4371 #12 0x0000000100158521 in PyEval_EvalFrameEx (f=Frame 0x1006d1c30, for file /Users/mdickinson/Desktop/threading_hang.py, line 8, in (.0=, n=90191), throwflag=0) at Python/ceval.c:2987 #13 0x000000010004a3bc in gen_send_ex (gen=0x1006bd760, arg=0x0, exc=0) at Objects/genobject.c:85 #14 0x0000000100049b14 in gen_iternext (gen=0x1006bd760) at Objects/genobject.c:283 #15 0x000000010001106c in PyIter_Next (iter=) at Objects/abstract.c:3103 #16 0x00000001001434c3 in builtin_sum (self=0x0, args=(,)) at Python/bltinmodule.c:2405 #17 0x000000010008df86 in PyCFunction_Call (func=, arg=(,), kw=0x0) at Objects/methodobject.c:81 #18 0x000000010015e3d6 in call_function (pp_stack=0x103b07c30, oparg=1) at Python/ceval.c:4350 #19 0x0000000100158521 in PyEval_EvalFrameEx (f=Frame 0x101500840, for file /Users/mdickinson/Desktop/threading_hang.py, line 8, in count_primes_in_range (start=87500, stop=100000), throwflag=0) at Python/ceval.c:2987 #20 0x000000010014942a in PyEval_EvalCodeEx (co=0x100626880, 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=0x0, args=0x100619790, argcount=2, kws=0x100349088, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:3582 #21 0x00000001000601c2 in function_call (func=, arg=(87500, 100000), kw={}) at Objects/funcobject.c:526 #22 0x0000000100011dca in PyObject_Call (func=, arg=(87500, 100000), kw={}) at Objects/abstract.c:2529 #23 0x000000010015edea in ext_do_call (func=, pp_stack=0x103b08600, flags=3, na=0, nk=0) at Python/ceval.c:4663 #24 0x00000001001589b6 in PyEval_EvalFrameEx (f=Frame 0x1006d1a38, for file /Users/mdickinson/Python/cpython/Lib/threading.py, line 763, in run (self=, acquire=, _Condition__waiters=[], release=) at remote 0x1006ce370>, _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 0x1006ce300>) at remote 0x1006ce290>, _Thread__stderr=, _Thread__target=, _Thread__kwargs={}, _Ver...(truncated), throwflag=0) at Python/ceval.c:3026 #25 0x00000001001613a0 in fast_function (func=, pp_stack=0x103b08da0, n=1, na=1, nk=0) at Python/ceval.c:4436 #26 0x000000010015e5f4 in call_function (pp_stack=0x103b08da0, oparg=0) at Python/ceval.c:4371 #27 0x0000000100158521 in PyEval_EvalFrameEx (f=Frame 0x102003e30, for file /Users/mdickinson/Python/cpython/Lib/threading.py, line 810, in __bootstrap_inner (self=, acquire=, _Condition__waiters=[], release=) at remote 0x1006ce370>, _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 0x1006ce300>) at remote 0x1006ce290>, _Thread__stderr=, _Thread__target=, _Thread__k...(truncated), throwflag=0) at Python/ceval.c:2987 #28 0x00000001001613a0 in fast_function (func=, pp_stack=0x103b09510, n=1, na=1, nk=0) at Python/ceval.c:4436 #29 0x000000010015e5f4 in call_function (pp_stack=0x103b09510, oparg=0) at Python/ceval.c:4371 #30 0x0000000100158521 in PyEval_EvalFrameEx (f=Frame 0x1016009f0, for file /Users/mdickinson/Python/cpython/Lib/threading.py, line 783, in __bootstrap (self=, acquire=, _Condition__waiters=[], release=) at remote 0x1006ce370>, _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 0x1006ce300>) at remote 0x1006ce290>, _Thread__stderr=, _Thread__target=, _Thread__kwargs=...(truncated), throwflag=0) at Python/ceval.c:2987 #31 0x000000010014942a in PyEval_EvalCodeEx (co=0x100668460, globals={'current_thread': , '_BoundedSemaphore': , 'currentThread': , '_Timer': , '_format_exc': , 'Semaphore': , '_deque': , 'activeCount': , '_profile_hook': None, '_sleep': , '_trace_hook': None, 'ThreadError': , '_enumerate': , '_start_new_thread': , 'BoundedSemaphore': , '_shutdown': , '__all__': ['activeCount', 'active_count', 'Condition', 'currentThread', 'current_thread', 'enumerate', 'Event', 'Lock', 'RLock', 'Semaphore', 'BoundedSemaphore', 'Thread', 'Timer', 'setprofile', 'settrace', 'local', 'stack_size'], '_Event': , 'active_count': , arg=(, acquire=, _Condition__waiters=[], release=) at remote 0x1006ce370>, _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 0x1006ce300>) at remote 0x1006ce290>, _Thread__stderr=, _Thread__target=, _Thread__kwargs={}, _Verbose__verbose=False, _Thread__args=(87500, 100000), _Thread__stopped=False, _Thread__initialized=True...(truncated), kw=0x0) at Objects/funcobject.c:526 #33 0x0000000100011dca in PyObject_Call (func=, arg=(, acquire=, _Condition__waiters=[], release=) at remote 0x1006ce370>, _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 0x1006ce300>) at remote 0x1006ce290>, _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 #34 0x000000010002faa9 in instancemethod_call (func=, arg=(, acquire=, _Condition__waiters=[], release=) at remote 0x1006ce370>, _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 0x1006ce300>) at remote 0x1006ce290>, _Thread__stderr=, _Thread__target=, _Thread__kwargs={}, _Verbose__verbose=False, _Thread__args=(87500, 100000), _Thread__stopped=False, _Thread__initialized=True...(truncated), kw=0x0) at Objects/classobject.c:2602 #35 0x0000000100011dca in PyObject_Call (func=, arg=(), kw=0x0) at Objects/abstract.c:2529 #36 0x000000010015bb36 in PyEval_CallObjectWithKeywords (func=, arg=(), kw=0x0) at Python/ceval.c:4219 #37 0x00000001001c3093 in t_bootstrap (boot_raw=0x1003c32c8) at ./Modules/threadmodule.c:620 #38 0x00007fff909bc899 in _pthread_body () from /usr/lib/system/libsystem_pthread.dylib #39 0x00007fff909bc72a in _pthread_start () from /usr/lib/system/libsystem_pthread.dylib #40 0x00007fff909c0fc9 in thread_start () from /usr/lib/system/libsystem_pthread.dylib #41 0x0000000000000000 in ?? () Thread 5 (Thread 0x1903 of process 54583): #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 0x00000001001bba3c in PyThread_acquire_lock (lock=0x1004319e0, waitflag=1) at Python/thread_pthread.h:429 #3 0x00000001001499e8 in PyEval_EvalFrameEx (f=Frame 0x101500600, for file /Users/mdickinson/Desktop/threading_hang.py, line 5, in (.0=, d=52380), throwflag=0) at Python/ceval.c:1119 #4 0x000000010004a3bc in gen_send_ex (gen=0x1006641e0, arg=0x0, exc=0) at Objects/genobject.c:85 #5 0x0000000100049b14 in gen_iternext (gen=0x1006641e0) at Objects/genobject.c:283 #6 0x000000010013cfb5 in builtin_all (self=0x0, v=) at Python/bltinmodule.c:96 #7 0x000000010015e188 in call_function (pp_stack=0x103703a40, oparg=1) at Python/ceval.c:4338 #8 0x0000000100158521 in PyEval_EvalFrameEx (f=Frame 0x101601740, for file /Users/mdickinson/Desktop/threading_hang.py, line 5, in is_prime (n=77849), throwflag=0) at Python/ceval.c:2987 #9 0x000000010014942a in PyEval_EvalCodeEx (co=0x1005e0eb0, 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=0x0, args=0x1006d19e8, argcount=1, kws=0x1006d19f0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:3582 #10 0x0000000100161507 in fast_function (func=, pp_stack=0x1037043f0, n=1, na=1, nk=0) at Python/ceval.c:4446 #11 0x000000010015e5f4 in call_function (pp_stack=0x1037043f0, oparg=1) at Python/ceval.c:4371 #12 0x0000000100158521 in PyEval_EvalFrameEx (f=Frame 0x1006d1840, for file /Users/mdickinson/Desktop/threading_hang.py, line 8, in (.0=, n=77849), throwflag=0) at Python/ceval.c:2987 #13 0x000000010004a3bc in gen_send_ex (gen=0x1006bd9e0, arg=0x0, exc=0) at Objects/genobject.c:85 #14 0x0000000100049b14 in gen_iternext (gen=0x1006bd9e0) at Objects/genobject.c:283 #15 0x000000010001106c in PyIter_Next (iter=) at Objects/abstract.c:3103 #16 0x00000001001434c3 in builtin_sum (self=0x0, args=(,)) at Python/bltinmodule.c:2405 #17 0x000000010008df86 in PyCFunction_Call (func=, arg=(,), kw=0x0) at Objects/methodobject.c:81 #18 0x000000010015e3d6 in call_function (pp_stack=0x103704c30, oparg=1) at Python/ceval.c:4350 #19 0x0000000100158521 in PyEval_EvalFrameEx (f=Frame 0x101600f30, for file /Users/mdickinson/Desktop/threading_hang.py, line 8, in count_primes_in_range (start=75000, stop=87500), throwflag=0) at Python/ceval.c:2987 #20 0x000000010014942a in PyEval_EvalCodeEx (co=0x100626880, 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=0x0, args=0x100619538, argcount=2, kws=0x100349088, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:3582 #21 0x00000001000601c2 in function_call (func=, arg=(75000, 87500), kw={}) at Objects/funcobject.c:526 #22 0x0000000100011dca in PyObject_Call (func=, arg=(75000, 87500), kw={}) at Objects/abstract.c:2529 #23 0x000000010015edea in ext_do_call (func=, pp_stack=0x103705600, flags=3, na=0, nk=0) at Python/ceval.c:4663 #24 0x00000001001589b6 in PyEval_EvalFrameEx (f=Frame 0x1006d1648, for file /Users/mdickinson/Python/cpython/Lib/threading.py, line 763, in run (self=, acquire=, _Condition__waiters=[], release=) at remote 0x1006ce1b0>, _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 0x1006ce140>) at remote 0x1006ce0d0>, _Thread__stderr=, _Thread__target=, _Thread__kwargs={}, _Ver...(truncated), throwflag=0) at Python/ceval.c:3026 #25 0x00000001001613a0 in fast_function (func=, pp_stack=0x103705da0, n=1, na=1, nk=0) at Python/ceval.c:4436 #26 0x000000010015e5f4 in call_function (pp_stack=0x103705da0, oparg=0) at Python/ceval.c:4371 #27 0x0000000100158521 in PyEval_EvalFrameEx (f=Frame 0x101600cf0, for file /Users/mdickinson/Python/cpython/Lib/threading.py, line 810, in __bootstrap_inner (self=, acquire=, _Condition__waiters=[], release=) at remote 0x1006ce1b0>, _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 0x1006ce140>) at remote 0x1006ce0d0>, _Thread__stderr=, _Thread__target=, _Thread__k...(truncated), throwflag=0) at Python/ceval.c:2987 #28 0x00000001001613a0 in fast_function (func=, pp_stack=0x103706510, n=1, na=1, nk=0) at Python/ceval.c:4436 #29 0x000000010015e5f4 in call_function (pp_stack=0x103706510, oparg=0) at Python/ceval.c:4371 #30 0x0000000100158521 in PyEval_EvalFrameEx (f=Frame 0x1006d3250, for file /Users/mdickinson/Python/cpython/Lib/threading.py, line 783, in __bootstrap (self=, acquire=, _Condition__waiters=[], release=) at remote 0x1006ce1b0>, _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 0x1006ce140>) at remote 0x1006ce0d0>, _Thread__stderr=, _Thread__target=, _Thread__kwargs=...(truncated), throwflag=0) at Python/ceval.c:2987 #31 0x000000010014942a in PyEval_EvalCodeEx (co=0x100668460, globals={'current_thread': , '_BoundedSemaphore': , 'currentThread': , '_Timer': , '_format_exc': , 'Semaphore': , '_deque': , 'activeCount': , '_profile_hook': None, '_sleep': , '_trace_hook': None, 'ThreadError': , '_enumerate': , '_start_new_thread': , 'BoundedSemaphore': , '_shutdown': , '__all__': ['activeCount', 'active_count', 'Condition', 'currentThread', 'current_thread', 'enumerate', 'Event', 'Lock', 'RLock', 'Semaphore', 'BoundedSemaphore', 'Thread', 'Timer', 'setprofile', 'settrace', 'local', 'stack_size'], '_Event': , 'active_count': , arg=(, acquire=, _Condition__waiters=[], release=) at remote 0x1006ce1b0>, _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 0x1006ce140>) at remote 0x1006ce0d0>, _Thread__stderr=, _Thread__target=, _Thread__kwargs={}, _Verbose__verbose=False, _Thread__args=(75000, 87500), _Thread__stopped=False, _Thread__initialized=True)...(truncated), kw=0x0) at Objects/funcobject.c:526 #33 0x0000000100011dca in PyObject_Call (func=, arg=(, acquire=, _Condition__waiters=[], release=) at remote 0x1006ce1b0>, _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 0x1006ce140>) at remote 0x1006ce0d0>, _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 #34 0x000000010002faa9 in instancemethod_call (func=, arg=(, acquire=, _Condition__waiters=[], release=) at remote 0x1006ce1b0>, _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 0x1006ce140>) at remote 0x1006ce0d0>, _Thread__stderr=, _Thread__target=, _Thread__kwargs={}, _Verbose__verbose=False, _Thread__args=(75000, 87500), _Thread__stopped=False, _Thread__initialized=True)...(truncated), kw=0x0) at Objects/classobject.c:2602 #35 0x0000000100011dca in PyObject_Call (func=, arg=(), kw=0x0) at Objects/abstract.c:2529 #36 0x000000010015bb36 in PyEval_CallObjectWithKeywords (func=, arg=(), kw=0x0) at Python/ceval.c:4219 #37 0x00000001001c3093 in t_bootstrap (boot_raw=0x1003c34c0) at ./Modules/threadmodule.c:620 #38 0x00007fff909bc899 in _pthread_body () from /usr/lib/system/libsystem_pthread.dylib #39 0x00007fff909bc72a in _pthread_start () from /usr/lib/system/libsystem_pthread.dylib #40 0x00007fff909c0fc9 in thread_start () from /usr/lib/system/libsystem_pthread.dylib #41 0x0000000000000000 in ?? () Thread 4 (Thread 0x1803 of process 54583): #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 0x00000001001bba3c in PyThread_acquire_lock (lock=0x1004319e0, waitflag=1) at Python/thread_pthread.h:429 #3 0x00000001001499e8 in PyEval_EvalFrameEx (f=Frame 0x100623c60, for file /Users/mdickinson/Desktop/threading_hang.py, line 5, in (.0=, d=20875), throwflag=0) at Python/ceval.c:1119 #4 0x000000010004a3bc in gen_send_ex (gen=0x1006bdb60, arg=0x0, exc=0) at Objects/genobject.c:85 #5 0x0000000100049b14 in gen_iternext (gen=0x1006bdb60) at Objects/genobject.c:283 #6 0x000000010013cfb5 in builtin_all (self=0x0, v=) at Python/bltinmodule.c:96 #7 0x000000010015e188 in call_function (pp_stack=0x103300a40, oparg=1) at Python/ceval.c:4338 #8 0x0000000100158521 in PyEval_EvalFrameEx (f=Frame 0x101600390, for file /Users/mdickinson/Desktop/threading_hang.py, line 5, in is_prime (n=66161), throwflag=0) at Python/ceval.c:2987 #9 0x000000010014942a in PyEval_EvalCodeEx (co=0x1005e0eb0, 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=0x0, args=0x1006d15f8, argcount=1, kws=0x1006d1600, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:3582 #10 0x0000000100161507 in fast_function (func=, pp_stack=0x1033013f0, n=1, na=1, nk=0) at Python/ceval.c:4446 #11 0x000000010015e5f4 in call_function (pp_stack=0x1033013f0, oparg=1) at Python/ceval.c:4371 #12 0x0000000100158521 in PyEval_EvalFrameEx (f=Frame 0x1006d1450, for file /Users/mdickinson/Desktop/threading_hang.py, line 8, in (.0=, n=66161), throwflag=0) at Python/ceval.c:2987 #13 0x000000010004a3bc in gen_send_ex (gen=0x1006bdd60, arg=0x0, exc=0) at Objects/genobject.c:85 #14 0x0000000100049b14 in gen_iternext (gen=0x1006bdd60) at Objects/genobject.c:283 #15 0x000000010001106c in PyIter_Next (iter=) at Objects/abstract.c:3103 #16 0x00000001001434c3 in builtin_sum (self=0x0, args=(,)) at Python/bltinmodule.c:2405 #17 0x000000010008df86 in PyCFunction_Call (func=, arg=(,), kw=0x0) at Objects/methodobject.c:81 #18 0x000000010015e3d6 in call_function (pp_stack=0x103301c30, oparg=1) at Python/ceval.c:4350 #19 0x0000000100158521 in PyEval_EvalFrameEx (f=Frame 0x102001450, for file /Users/mdickinson/Desktop/threading_hang.py, line 8, in count_primes_in_range (start=62500, stop=75000), throwflag=0) at Python/ceval.c:2987 #20 0x000000010014942a in PyEval_EvalCodeEx (co=0x100626880, 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=0x0, args=0x1006191f0, argcount=2, kws=0x100349088, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:3582 #21 0x00000001000601c2 in function_call (func=, arg=(62500, 75000), kw={}) at Objects/funcobject.c:526 #22 0x0000000100011dca in PyObject_Call (func=, arg=(62500, 75000), kw={}) at Objects/abstract.c:2529 #23 0x000000010015edea in ext_do_call (func=, pp_stack=0x103302600, flags=3, na=0, nk=0) at Python/ceval.c:4663 #24 0x00000001001589b6 in PyEval_EvalFrameEx (f=Frame 0x1006d1258, for file /Users/mdickinson/Python/cpython/Lib/threading.py, line 763, in run (self=, acquire=, _Condition__waiters=[], release=) at remote 0x1006c9fb0>, _Thread__name='Thread-54', _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 0x1006c9f40>) at remote 0x1006c9ed0>, _Thread__stderr=, _Thread__target=, _Thread__kwargs={}, _Ver...(truncated), throwflag=0) at Python/ceval.c:3026 #25 0x00000001001613a0 in fast_function (func=, pp_stack=0x103302da0, n=1, na=1, nk=0) at Python/ceval.c:4436 #26 0x000000010015e5f4 in call_function (pp_stack=0x103302da0, oparg=0) at Python/ceval.c:4371 #27 0x0000000100158521 in PyEval_EvalFrameEx (f=Frame 0x102001210, for file /Users/mdickinson/Python/cpython/Lib/threading.py, line 810, in __bootstrap_inner (self=, acquire=, _Condition__waiters=[], release=) at remote 0x1006c9fb0>, _Thread__name='Thread-54', _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 0x1006c9f40>) at remote 0x1006c9ed0>, _Thread__stderr=, _Thread__target=, _Thread__k...(truncated), throwflag=0) at Python/ceval.c:2987 #28 0x00000001001613a0 in fast_function (func=, pp_stack=0x103303510, n=1, na=1, nk=0) at Python/ceval.c:4436 #29 0x000000010015e5f4 in call_function (pp_stack=0x103303510, oparg=0) at Python/ceval.c:4371 #30 0x0000000100158521 in PyEval_EvalFrameEx (f=Frame 0x1006d3060, for file /Users/mdickinson/Python/cpython/Lib/threading.py, line 783, in __bootstrap (self=, acquire=, _Condition__waiters=[], release=) at remote 0x1006c9fb0>, _Thread__name='Thread-54', _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 0x1006c9f40>) at remote 0x1006c9ed0>, _Thread__stderr=, _Thread__target=, _Thread__kwargs=...(truncated), throwflag=0) at Python/ceval.c:2987 #31 0x000000010014942a in PyEval_EvalCodeEx (co=0x100668460, globals={'current_thread': , '_BoundedSemaphore': , 'currentThread': , '_Timer': , '_format_exc': , 'Semaphore': , '_deque': , 'activeCount': , '_profile_hook': None, '_sleep': , '_trace_hook': None, 'ThreadError': , '_enumerate': , '_start_new_thread': , 'BoundedSemaphore': , '_shutdown': , '__all__': ['activeCount', 'active_count', 'Condition', 'currentThread', 'current_thread', 'enumerate', 'Event', 'Lock', 'RLock', 'Semaphore', 'BoundedSemaphore', 'Thread', 'Timer', 'setprofile', 'settrace', 'local', 'stack_size'], '_Event': , 'active_count': , arg=(, acquire=, _Condition__waiters=[], release=) at remote 0x1006c9fb0>, _Thread__name='Thread-54', _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 0x1006c9f40>) at remote 0x1006c9ed0>, _Thread__stderr=, _Thread__target=, _Thread__kwargs={}, _Verbose__verbose=False, _Thread__args=(62500, 75000), _Thread__stopped=False, _Thread__initialized=True)...(truncated), kw=0x0) at Objects/funcobject.c:526 #33 0x0000000100011dca in PyObject_Call (func=, arg=(, acquire=, _Condition__waiters=[], release=) at remote 0x1006c9fb0>, _Thread__name='Thread-54', _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 0x1006c9f40>) at remote 0x1006c9ed0>, _Thread__stderr=, _Thread__target=, _Thread__kwargs={}, _Verbose__verbose=False, _Thread__args=(62500, 75000), _Thread__stopped=False, _Thread__initialized=True)...(truncated), kw=0x0) at Objects/abstract.c:2529 #34 0x000000010002faa9 in instancemethod_call (func=, arg=(, acquire=, _Condition__waiters=[], release=) at remote 0x1006c9fb0>, _Thread__name='Thread-54', _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 0x1006c9f40>) at remote 0x1006c9ed0>, _Thread__stderr=, _Thread__target=, _Thread__kwargs={}, _Verbose__verbose=False, _Thread__args=(62500, 75000), _Thread__stopped=False, _Thread__initialized=True)...(truncated), kw=0x0) at Objects/classobject.c:2602 #35 0x0000000100011dca in PyObject_Call (func=, arg=(), kw=0x0) at Objects/abstract.c:2529 #36 0x000000010015bb36 in PyEval_CallObjectWithKeywords (func=, arg=(), kw=0x0) at Python/ceval.c:4219 #37 0x00000001001c3093 in t_bootstrap (boot_raw=0x1003c3478) at ./Modules/threadmodule.c:620 #38 0x00007fff909bc899 in _pthread_body () from /usr/lib/system/libsystem_pthread.dylib #39 0x00007fff909bc72a in _pthread_start () from /usr/lib/system/libsystem_pthread.dylib #40 0x00007fff909c0fc9 in thread_start () from /usr/lib/system/libsystem_pthread.dylib #41 0x0000000000000000 in ?? () Thread 3 (Thread 0x1703 of process 54583): #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 0x00000001001bba3c in PyThread_acquire_lock (lock=0x1004319e0, waitflag=1) at Python/thread_pthread.h:429 #3 0x00000001001499e8 in PyEval_EvalFrameEx (f=Frame 0x1006d2460, for file /Users/mdickinson/Desktop/threading_hang.py, line 5, in (.0=, d=7633), throwflag=0) at Python/ceval.c:1119 #4 0x000000010004a3bc in gen_send_ex (gen=0x1006bdc60, arg=0x0, exc=0) at Objects/genobject.c:85 #5 0x0000000100049b14 in gen_iternext (gen=0x1006bdc60) at Objects/genobject.c:283 #6 0x000000010013cfb5 in builtin_all (self=0x0, v=) at Python/bltinmodule.c:96 #7 0x000000010015e188 in call_function (pp_stack=0x102efda40, oparg=1) at Python/ceval.c:4338 #8 0x0000000100158521 in PyEval_EvalFrameEx (f=Frame 0x102001000, for file /Users/mdickinson/Desktop/threading_hang.py, line 5, in is_prime (n=53857), throwflag=0) at Python/ceval.c:2987 #9 0x000000010014942a in PyEval_EvalCodeEx (co=0x1005e0eb0, 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=0x0, args=0x1006d1208, argcount=1, kws=0x1006d1210, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:3582 #10 0x0000000100161507 in fast_function (func=, pp_stack=0x102efe3f0, n=1, na=1, nk=0) at Python/ceval.c:4446 #11 0x000000010015e5f4 in call_function (pp_stack=0x102efe3f0, oparg=1) at Python/ceval.c:4371 #12 0x0000000100158521 in PyEval_EvalFrameEx (f=Frame 0x1006d1060, for file /Users/mdickinson/Desktop/threading_hang.py, line 8, in (.0=, n=53857), throwflag=0) at Python/ceval.c:2987 #13 0x000000010004a3bc in gen_send_ex (gen=0x1006bdde0, arg=0x0, exc=0) at Objects/genobject.c:85 #14 0x0000000100049b14 in gen_iternext (gen=0x1006bdde0) at Objects/genobject.c:283 #15 0x000000010001106c in PyIter_Next (iter=) at Objects/abstract.c:3103 #16 0x00000001001434c3 in builtin_sum (self=0x0, args=(,)) at Python/bltinmodule.c:2405 #17 0x000000010008df86 in PyCFunction_Call (func=, arg=(,), kw=0x0) at Objects/methodobject.c:81 #18 0x000000010015e3d6 in call_function (pp_stack=0x102efec30, oparg=1) at Python/ceval.c:4350 #19 0x0000000100158521 in PyEval_EvalFrameEx (f=Frame 0x102000df0, for file /Users/mdickinson/Desktop/threading_hang.py, line 8, in count_primes_in_range (start=50000, stop=62500), throwflag=0) at Python/ceval.c:2987 #20 0x000000010014942a in PyEval_EvalCodeEx (co=0x100626880, 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=0x0, args=0x100613cb8, argcount=2, kws=0x100349088, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:3582 #21 0x00000001000601c2 in function_call (func=, arg=(50000, 62500), kw={}) at Objects/funcobject.c:526 #22 0x0000000100011dca in PyObject_Call (func=, arg=(50000, 62500), kw={}) at Objects/abstract.c:2529 #23 0x000000010015edea in ext_do_call (func=, pp_stack=0x102eff600, flags=3, na=0, nk=0) at Python/ceval.c:4663 #24 0x00000001001589b6 in PyEval_EvalFrameEx (f=Frame 0x1006d0e28, for file /Users/mdickinson/Python/cpython/Lib/threading.py, line 763, in run (self=, acquire=, _Condition__waiters=[], release=) at remote 0x1006c9df0>, _Thread__name='Thread-53', _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 0x1006c9d80>) at remote 0x1006c9d10>, _Thread__stderr=, _Thread__target=, _Thread__kwargs={}, _Ver...(truncated), throwflag=0) at Python/ceval.c:3026 #25 0x00000001001613a0 in fast_function (func=, pp_stack=0x102effda0, n=1, na=1, nk=0) at Python/ceval.c:4436 #26 0x000000010015e5f4 in call_function (pp_stack=0x102effda0, oparg=0) at Python/ceval.c:4371 #27 0x0000000100158521 in PyEval_EvalFrameEx (f=Frame 0x102000890, for file /Users/mdickinson/Python/cpython/Lib/threading.py, line 810, in __bootstrap_inner (self=, acquire=, _Condition__waiters=[], release=) at remote 0x1006c9df0>, _Thread__name='Thread-53', _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 0x1006c9d80>) at remote 0x1006c9d10>, _Thread__stderr=, _Thread__target=, _Thread__k...(truncated), throwflag=0) at Python/ceval.c:2987 #28 0x00000001001613a0 in fast_function (func=, pp_stack=0x102f00510, n=1, na=1, nk=0) at Python/ceval.c:4436 #29 0x000000010015e5f4 in call_function (pp_stack=0x102f00510, oparg=0) at Python/ceval.c:4371 #30 0x0000000100158521 in PyEval_EvalFrameEx (f=Frame 0x100660df0, for file /Users/mdickinson/Python/cpython/Lib/threading.py, line 783, in __bootstrap (self=, acquire=, _Condition__waiters=[], release=) at remote 0x1006c9df0>, _Thread__name='Thread-53', _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 0x1006c9d80>) at remote 0x1006c9d10>, _Thread__stderr=, _Thread__target=, _Thread__kwargs=...(truncated), throwflag=0) at Python/ceval.c:2987 #31 0x000000010014942a in PyEval_EvalCodeEx (co=0x100668460, globals={'current_thread': , '_BoundedSemaphore': , 'currentThread': , '_Timer': , '_format_exc': , 'Semaphore': , '_deque': , 'activeCount': , '_profile_hook': None, '_sleep': , '_trace_hook': None, 'ThreadError': , '_enumerate': , '_start_new_thread': , 'BoundedSemaphore': , '_shutdown': , '__all__': ['activeCount', 'active_count', 'Condition', 'currentThread', 'current_thread', 'enumerate', 'Event', 'Lock', 'RLock', 'Semaphore', 'BoundedSemaphore', 'Thread', 'Timer', 'setprofile', 'settrace', 'local', 'stack_size'], '_Event': , 'active_count': , arg=(, acquire=, _Condition__waiters=[], release=) at remote 0x1006c9df0>, _Thread__name='Thread-53', _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 0x1006c9d80>) at remote 0x1006c9d10>, _Thread__stderr=, _Thread__target=, _Thread__kwargs={}, _Verbose__verbose=False, _Thread__args=(50000, 62500), _Thread__stopped=False, _Thread__initialized=True)...(truncated), kw=0x0) at Objects/funcobject.c:526 #33 0x0000000100011dca in PyObject_Call (func=, arg=(, acquire=, _Condition__waiters=[], release=) at remote 0x1006c9df0>, _Thread__name='Thread-53', _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 0x1006c9d80>) at remote 0x1006c9d10>, _Thread__stderr=, _Thread__target=, _Thread__kwargs={}, _Verbose__verbose=False, _Thread__args=(50000, 62500), _Thread__stopped=False, _Thread__initialized=True)...(truncated), kw=0x0) at Objects/abstract.c:2529 #34 0x000000010002faa9 in instancemethod_call (func=, arg=(, acquire=, _Condition__waiters=[], release=) at remote 0x1006c9df0>, _Thread__name='Thread-53', _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 0x1006c9d80>) at remote 0x1006c9d10>, _Thread__stderr=, _Thread__target=, _Thread__kwargs={}, _Verbose__verbose=False, _Thread__args=(50000, 62500), _Thread__stopped=False, _Thread__initialized=True)...(truncated), kw=0x0) at Objects/classobject.c:2602 #35 0x0000000100011dca in PyObject_Call (func=, arg=(), kw=0x0) at Objects/abstract.c:2529 #36 0x000000010015bb36 in PyEval_CallObjectWithKeywords (func=, arg=(), kw=0x0) at Python/ceval.c:4219 #37 0x00000001001c3093 in t_bootstrap (boot_raw=0x1003c3430) at ./Modules/threadmodule.c:620 #38 0x00007fff909bc899 in _pthread_body () from /usr/lib/system/libsystem_pthread.dylib #39 0x00007fff909bc72a in _pthread_start () from /usr/lib/system/libsystem_pthread.dylib #40 0x00007fff909c0fc9 in thread_start () from /usr/lib/system/libsystem_pthread.dylib #41 0x0000000000000000 in ?? () Thread 2 (Thread 0x1603 of process 54583): #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 0x00000001001bba3c in PyThread_acquire_lock (lock=0x1004319e0, waitflag=1) at Python/thread_pthread.h:429 #3 0x00000001001499e8 in PyEval_EvalFrameEx (f=Frame 0x1006d2060, for file /Users/mdickinson/Desktop/threading_hang.py, line 5, in (.0=, d=6320), throwflag=0) at Python/ceval.c:1119 #4 0x000000010004a3bc in gen_send_ex (gen=0x100664c60, arg=0x0, exc=0) at Objects/genobject.c:85 #5 0x0000000100049b14 in gen_iternext (gen=0x100664c60) at Objects/genobject.c:283 #6 0x000000010013cfb5 in builtin_all (self=0x0, v=) at Python/bltinmodule.c:96 #7 0x000000010015e188 in call_function (pp_stack=0x102900a40, oparg=1) at Python/ceval.c:4338 #8 0x0000000100158521 in PyEval_EvalFrameEx (f=Frame 0x102001660, for file /Users/mdickinson/Desktop/threading_hang.py, line 5, in is_prime (n=42131), throwflag=0) at Python/ceval.c:2987 #9 0x000000010014942a in PyEval_EvalCodeEx (co=0x1005e0eb0, 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=0x0, args=0x1006d0dd8, argcount=1, kws=0x1006d0de0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:3582 #10 0x0000000100161507 in fast_function (func=, pp_stack=0x1029013f0, n=1, na=1, nk=0) at Python/ceval.c:4446 #11 0x000000010015e5f4 in call_function (pp_stack=0x1029013f0, oparg=1) at Python/ceval.c:4371 #12 0x0000000100158521 in PyEval_EvalFrameEx (f=Frame 0x1006d0c30, for file /Users/mdickinson/Desktop/threading_hang.py, line 8, in (.0=, n=42131), throwflag=0) at Python/ceval.c:2987 #13 0x000000010004a3bc in gen_send_ex (gen=0x1006bda60, arg=0x0, exc=0) at Objects/genobject.c:85 #14 0x0000000100049b14 in gen_iternext (gen=0x1006bda60) at Objects/genobject.c:283 #15 0x000000010001106c in PyIter_Next (iter=) at Objects/abstract.c:3103 #16 0x00000001001434c3 in builtin_sum (self=0x0, args=(,)) at Python/bltinmodule.c:2405 #17 0x000000010008df86 in PyCFunction_Call (func=, arg=(,), kw=0x0) at Objects/methodobject.c:81 #18 0x000000010015e3d6 in call_function (pp_stack=0x102901c30, oparg=1) at Python/ceval.c:4350 #19 0x0000000100158521 in PyEval_EvalFrameEx (f=Frame 0x102000340, for file /Users/mdickinson/Desktop/threading_hang.py, line 8, in count_primes_in_range (start=37500, stop=50000), throwflag=0) at Python/ceval.c:2987 #20 0x000000010014942a in PyEval_EvalCodeEx (co=0x100626880, 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=0x0, args=0x100619808, argcount=2, kws=0x100349088, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:3582 #21 0x00000001000601c2 in function_call (func=, arg=(37500, 50000), kw={}) at Objects/funcobject.c:526 #22 0x0000000100011dca in PyObject_Call (func=, arg=(37500, 50000), kw={}) at Objects/abstract.c:2529 #23 0x000000010015edea in ext_do_call (func=, pp_stack=0x102902600, flags=3, na=0, nk=0) at Python/ceval.c:4663 #24 0x00000001001589b6 in PyEval_EvalFrameEx (f=Frame 0x1006d0a38, for file /Users/mdickinson/Python/cpython/Lib/threading.py, line 763, in run (self=, acquire=, _Condition__waiters=[], release=) at remote 0x1006c9c30>, _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 0x1006c9bc0>) at remote 0x1006c9b50>, _Thread__stderr=, _Thread__target=, pp_stack=0x102902da0, n=1, na=1, nk=0) at Python/ceval.c:4436 #26 0x000000010015e5f4 in call_function (pp_stack=0x102902da0, oparg=0) at Python/ceval.c:4371 #27 0x0000000100158521 in PyEval_EvalFrameEx (f=Frame 0x102000100, for file /Users/mdickinson/Python/cpython/Lib/threading.py, line 810, in __bootstrap_inner (self=, acquire=, _Condition__waiters=[], release=) at remote 0x1006c9c30>, _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 0x1006c9bc0>) at remote 0x1006c9b50>, _Thread__stderr=, _Thread__target=, pp_stack=0x102903510, n=1, na=1, nk=0) at Python/ceval.c:4436 #29 0x000000010015e5f4 in call_function (pp_stack=0x102903510, oparg=0) at Python/ceval.c:4371 #30 0x0000000100158521 in PyEval_EvalFrameEx (f=Frame 0x100660c00, for file /Users/mdickinson/Python/cpython/Lib/threading.py, line 783, in __bootstrap (self=, acquire=, _Condition__waiters=[], release=) at remote 0x1006c9c30>, _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 0x1006c9bc0>) at remote 0x1006c9b50>, _Thread__stderr=, _Thread__target=, '_BoundedSemaphore': , 'currentThread': , '_Timer': , '_format_exc': , 'Semaphore': , '_deque': , 'activeCount': , '_profile_hook': None, '_sleep': , '_trace_hook': None, 'ThreadError': , '_enumerate': , '_start_new_thread': , 'BoundedSemaphore': , '_shutdown': , '__all__': ['activeCount', 'active_count', 'Condition', 'currentThread', 'current_thread', 'enumerate', 'Event', 'Lock', 'RLock', 'Semaphore', 'BoundedSemaphore', 'Thread', 'Timer', 'setprofile', 'settrace', 'local', 'stack_size'], '_Event': , 'active_count': , arg=(, acquire=, _Condition__waiters=[], release=) at remote 0x1006c9c30>, _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 0x1006c9bc0>) at remote 0x1006c9b50>, _Thread__stderr=, _Thread__target=, _Thread__kwargs={}, _Verbose__verbose=False, _Thread__args=(37500, 50000), _Thread__stoppe...(truncated), kw=0x0) at Objects/funcobject.c:526 #33 0x0000000100011dca in PyObject_Call (func=, arg=(, acquire=, _Condition__waiters=[], release=) at remote 0x1006c9c30>, _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 0x1006c9bc0>) at remote 0x1006c9b50>, _Thread__stderr=, _Thread__target=, _Thread__kwargs={}, _Verbose__verbose=False, _Thread__args=(37500, 50000), _Thread__stoppe...(truncated), kw=0x0) at Objects/abstract.c:2529 #34 0x000000010002faa9 in instancemethod_call (func=, arg=(, acquire=, _Condition__waiters=[], release=) at remote 0x1006c9c30>, _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 0x1006c9bc0>) at remote 0x1006c9b50>, _Thread__stderr=, _Thread__target=, _Thread__kwargs={}, _Verbose__verbose=False, _Thread__args=(37500, 50000), _Thread__stoppe...(truncated), kw=0x0) at Objects/classobject.c:2602 #35 0x0000000100011dca in PyObject_Call (func=, arg=(), kw=0x0) at Objects/abstract.c:2529 #36 0x000000010015bb36 in PyEval_CallObjectWithKeywords (func=, arg=(), kw=0x0) at Python/ceval.c:4219 #37 0x00000001001c3093 in t_bootstrap (boot_raw=0x1003c33e8) at ./Modules/threadmodule.c:620 #38 0x00007fff909bc899 in _pthread_body () from /usr/lib/system/libsystem_pthread.dylib #39 0x00007fff909bc72a in _pthread_start () from /usr/lib/system/libsystem_pthread.dylib #40 0x00007fff909c0fc9 in thread_start () from /usr/lib/system/libsystem_pthread.dylib #41 0x0000000000000000 in ?? () Thread 1 (Thread 0x1503 of process 54583): #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 0x00000001001bba3c in PyThread_acquire_lock (lock=0x100450000, waitflag=1) at Python/thread_pthread.h:429 #3 0x00000001001c2751 in lock_PyThread_acquire_lock (self=0x1003c4900, args=()) at ./Modules/threadmodule.c:52 #4 0x000000010008df86 in PyCFunction_Call (func=, arg=(), kw=0x0) at Objects/methodobject.c:81 #5 0x000000010015e3d6 in call_function (pp_stack=0x7fff5fbfd570, oparg=0) at Python/ceval.c:4350 #6 0x0000000100158521 in PyEval_EvalFrameEx (f=Frame 0x101500030, 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 0x1006c9c30>, timeout=None, waiter=, saved_state=None), throwflag=0) at Python/ceval.c:2987 #7 0x000000010014942a in PyEval_EvalCodeEx (co=0x100638f60, globals={'current_thread': , '_BoundedSemaphore': , 'currentThread': , '_Timer': , '_format_exc': , 'Semaphore': , '_deque': , 'activeCount': , '_profile_hook': None, '_sleep': , '_trace_hook': None, 'ThreadError': , '_enumerate': , '_start_new_thread': , 'BoundedSemaphore': , '_shutdown': , '__all__': ['activeCount', 'active_count', 'Condition', 'currentThread', 'current_thread', 'enumerate', 'Event', 'Lock', 'RLock', 'Semaphore', 'BoundedSemaphore', 'Thread', 'Timer', 'setprofile', 'settrace', 'local', 'stack_size'], '_Event': , 'active_count': , pp_stack=0x7fff5fbfdf20, n=1, na=1, nk=0) at Python/ceval.c:4446 #9 0x000000010015e5f4 in call_function (pp_stack=0x7fff5fbfdf20, oparg=0) at Python/ceval.c:4371 #10 0x0000000100158521 in PyEval_EvalFrameEx (f=Frame 0x102001890, for file /Users/mdickinson/Python/cpython/Lib/threading.py, line 949, in join (self=, acquire=, _Condition__waiters=[], release=) at remote 0x1006c9c30>, _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 0x1006c9bc0>) at remote 0x1006c9b50>, _Thread__stderr=, _Thread__target=, '_BoundedSemaphore': , 'currentThread': , '_Timer': , '_format_exc': , 'Semaphore': , '_deque': , 'activeCount': , '_profile_hook': None, '_sleep': , '_trace_hook': None, 'ThreadError': , '_enumerate': , '_start_new_thread': , 'BoundedSemaphore': , '_shutdown': , '__all__': ['activeCount', 'active_count', 'Condition', 'currentThread', 'current_thread', 'enumerate', 'Event', 'Lock', 'RLock', 'Semaphore', 'BoundedSemaphore', 'Thread', 'Timer', 'setprofile', 'settrace', 'local', 'stack_size'], '_Event': , 'active_count': , pp_stack=0x7fff5fbfe8d0, n=1, na=1, nk=0) at Python/ceval.c:4446 #13 0x000000010015e5f4 in call_function (pp_stack=0x7fff5fbfe8d0, oparg=0) at Python/ceval.c:4371 #14 0x0000000100158521 in PyEval_EvalFrameEx (f=Frame 0x10044f850, for file /Users/mdickinson/Desktop/threading_hang.py, line 21, in main (i=7, threads=[, acquire=, _Condition__waiters=[], release=) at remote 0x1006c96f0>, _Thread__name='Thread-49', _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 0x1006c9680>) at remote 0x10065ca00>, _Thread__stderr=, _Verbose__verbose=False, _Thread__stopped=True, _Thread__initialized=Tr...(truncated), throwflag=0) at Python/ceval.c:2987 #15 0x00000001001613a0 in fast_function (func=, pp_stack=0x7fff5fbff040, n=0, na=0, nk=0) at Python/ceval.c:4436 #16 0x000000010015e5f4 in call_function (pp_stack=0x7fff5fbff040, oparg=0) at Python/ceval.c:4371 #17 0x0000000100158521 in PyEval_EvalFrameEx (f=Frame 0x100653060, for file /Users/mdickinson/Desktop/threading_hang.py, line 27, in (), throwflag=0) at Python/ceval.c:2987 #18 0x000000010014942a in PyEval_EvalCodeEx (co=0x10062c9e0, 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}, args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:3582 #19 0x0000000100147f2c in PyEval_EvalCode (co=0x10062c9e0, 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}) at Python/ceval.c:669 #20 0x0000000100199c05 in run_mod (mod=0x10086a4b8, filename=0x7fff5fbffb95 "/Users/mdickinson/Desktop/threading_hang.py", 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}, flags=0x7fff5fbff970, arena=0x100431060) at Python/pythonrun.c:1370 #21 0x000000010019a0c9 in PyRun_FileExFlags (fp=0x7fff7c9fd2a0, filename=0x7fff5fbffb95 "/Users/mdickinson/Desktop/threading_hang.py", start=257, 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=1, flags=0x7fff5fbff970) at Python/pythonrun.c:1356 #22 0x000000010019930e in PyRun_SimpleFileExFlags (fp=0x7fff7c9fd2a0, filename=0x7fff5fbffb95 "/Users/mdickinson/Desktop/threading_hang.py", closeit=1, flags=0x7fff5fbff970) at Python/pythonrun.c:948 #23 0x0000000100198ce4 in PyRun_AnyFileExFlags (fp=0x7fff7c9fd2a0, filename=0x7fff5fbffb95 "/Users/mdickinson/Desktop/threading_hang.py", closeit=1, flags=0x7fff5fbff970) at Python/pythonrun.c:752 #24 0x00000001001be965 in Py_Main (argc=2, argv=0x7fff5fbffa50) at Modules/main.c:640 #25 0x0000000100000f62 in main (argc=2, argv=0x7fff5fbffa50) at ./Modules/python.c:23 (gdb) thread apply all py-bt Thread 6 (Thread 0x1a03 of process 54583): Traceback (most recent call first): Waiting for the GIL File "/Users/mdickinson/Desktop/threading_hang.py", line 5, in return n >= 2 and all(n % d for d in xrange(2, n)) File "/Users/mdickinson/Desktop/threading_hang.py", line 5, in is_prime return n >= 2 and all(n % d for d in xrange(2, n)) File "/Users/mdickinson/Desktop/threading_hang.py", line 8, in return sum(is_prime(n) for n in xrange(start, stop)) File "/Users/mdickinson/Desktop/threading_hang.py", line 8, in count_primes_in_range return sum(is_prime(n) for n in xrange(start, stop)) File "/Users/mdickinson/Python/cpython/Lib/threading.py", line 763, in run self.__target(*self.__args, **self.__kwargs) File "/Users/mdickinson/Python/cpython/Lib/threading.py", line 810, in __bootstrap_inner self.run() File "/Users/mdickinson/Python/cpython/Lib/threading.py", line 783, in __bootstrap self.__bootstrap_inner() Thread 5 (Thread 0x1903 of process 54583): Traceback (most recent call first): Waiting for the GIL File "/Users/mdickinson/Desktop/threading_hang.py", line 5, in return n >= 2 and all(n % d for d in xrange(2, n)) File "/Users/mdickinson/Desktop/threading_hang.py", line 5, in is_prime return n >= 2 and all(n % d for d in xrange(2, n)) File "/Users/mdickinson/Desktop/threading_hang.py", line 8, in return sum(is_prime(n) for n in xrange(start, stop)) File "/Users/mdickinson/Desktop/threading_hang.py", line 8, in count_primes_in_range return sum(is_prime(n) for n in xrange(start, stop)) File "/Users/mdickinson/Python/cpython/Lib/threading.py", line 763, in run self.__target(*self.__args, **self.__kwargs) File "/Users/mdickinson/Python/cpython/Lib/threading.py", line 810, in __bootstrap_inner self.run() File "/Users/mdickinson/Python/cpython/Lib/threading.py", line 783, in __bootstrap self.__bootstrap_inner() Thread 4 (Thread 0x1803 of process 54583): Traceback (most recent call first): Waiting for the GIL File "/Users/mdickinson/Desktop/threading_hang.py", line 5, in return n >= 2 and all(n % d for d in xrange(2, n)) File "/Users/mdickinson/Desktop/threading_hang.py", line 5, in is_prime return n >= 2 and all(n % d for d in xrange(2, n)) File "/Users/mdickinson/Desktop/threading_hang.py", line 8, in return sum(is_prime(n) for n in xrange(start, stop)) File "/Users/mdickinson/Desktop/threading_hang.py", line 8, in count_primes_in_range return sum(is_prime(n) for n in xrange(start, stop)) File "/Users/mdickinson/Python/cpython/Lib/threading.py", line 763, in run self.__target(*self.__args, **self.__kwargs) File "/Users/mdickinson/Python/cpython/Lib/threading.py", line 810, in __bootstrap_inner self.run() File "/Users/mdickinson/Python/cpython/Lib/threading.py", line 783, in __bootstrap self.__bootstrap_inner() Thread 3 (Thread 0x1703 of process 54583): Traceback (most recent call first): Waiting for the GIL File "/Users/mdickinson/Desktop/threading_hang.py", line 5, in return n >= 2 and all(n % d for d in xrange(2, n)) File "/Users/mdickinson/Desktop/threading_hang.py", line 5, in is_prime return n >= 2 and all(n % d for d in xrange(2, n)) File "/Users/mdickinson/Desktop/threading_hang.py", line 8, in return sum(is_prime(n) for n in xrange(start, stop)) File "/Users/mdickinson/Desktop/threading_hang.py", line 8, in count_primes_in_range return sum(is_prime(n) for n in xrange(start, stop)) File "/Users/mdickinson/Python/cpython/Lib/threading.py", line 763, in run self.__target(*self.__args, **self.__kwargs) File "/Users/mdickinson/Python/cpython/Lib/threading.py", line 810, in __bootstrap_inner self.run() File "/Users/mdickinson/Python/cpython/Lib/threading.py", line 783, in __bootstrap self.__bootstrap_inner() Thread 2 (Thread 0x1603 of process 54583): Traceback (most recent call first): Waiting for the GIL File "/Users/mdickinson/Desktop/threading_hang.py", line 5, in return n >= 2 and all(n % d for d in xrange(2, n)) File "/Users/mdickinson/Desktop/threading_hang.py", line 5, in is_prime return n >= 2 and all(n % d for d in xrange(2, n)) File "/Users/mdickinson/Desktop/threading_hang.py", line 8, in return sum(is_prime(n) for n in xrange(start, stop)) File "/Users/mdickinson/Desktop/threading_hang.py", line 8, in count_primes_in_range return sum(is_prime(n) for n in xrange(start, stop)) File "/Users/mdickinson/Python/cpython/Lib/threading.py", line 763, in run self.__target(*self.__args, **self.__kwargs) File "/Users/mdickinson/Python/cpython/Lib/threading.py", line 810, in __bootstrap_inner self.run() File "/Users/mdickinson/Python/cpython/Lib/threading.py", line 783, in __bootstrap self.__bootstrap_inner() Thread 1 (Thread 0x1503 of process 54583): Traceback (most recent call first): Waiting for the GIL File "/Users/mdickinson/Python/cpython/Lib/threading.py", line 340, in wait waiter.acquire() File "/Users/mdickinson/Python/cpython/Lib/threading.py", line 949, in join self.__block.wait() File "/Users/mdickinson/Desktop/threading_hang.py", line 21, in main thread.join() File "/Users/mdickinson/Desktop/threading_hang.py", line 27, in main() (gdb)