#0 0x00007f60368fe4b7 in raise () from /usr/lib/libc.so.6 #1 0x00007f60368ff88a in abort () from /usr/lib/libc.so.6 #2 0x00007f6036fbbb5c in Py_FatalError (msg=msg@entry=0x7f60370419e8 "Py_EndInterpreter: not the last thread") at Python/pythonrun.c:2633 #3 0x00007f6036fbbef2 in Py_EndInterpreter (tstate=tstate@entry=0x7f60397a4c90) at Python/pythonrun.c:866 #4 0x00007f6035e411d2 in run_in_subinterp (self=, args=) at /home/nsajko/build/python/src/Python-3.4.3/Modules/_testcapimodule.c:2563 #5 0x00007f6036f28abe in PyCFunction_Call (func=func@entry=0x7f6036061208, arg=arg@entry=0x7f60360fa5f8, kw=kw@entry=0x0) at Objects/methodobject.c:93 #6 0x00007f6036f9c7cd in call_function (pp_stack=pp_stack@entry=0x7fff8cdd9340, oparg=oparg@entry=1) at Python/ceval.c:4237 #7 0x00007f6036f9a6c4 in PyEval_EvalFrameEx (f=f@entry=0x7f6039780d98, throwflag=throwflag@entry=0) at Python/ceval.c:2838 #8 0x00007f6036f9c24e in PyEval_EvalCodeEx (_co=_co@entry=0x7f60360f75d0, globals=globals@entry=0x7f6036160348, locals=locals@entry=0x7f6036160348, args=args@entry=0x0, argcount=argcount@entry=0, kws=kws@entry=0x0, kwcount=0, defs=0x0, defcount=0, kwdefs=0x0, closure=0x0) at Python/ceval.c:3588 #9 0x00007f6036f9c2e6 in PyEval_EvalCode (co=co@entry=0x7f60360f75d0, globals=globals@entry=0x7f6036160348, locals=locals@entry=0x7f6036160348) at Python/ceval.c:775 #10 0x00007f6036fb8e76 in run_mod (mod=, filename=filename@entry=0x7f60361291b0, globals=globals@entry=0x7f6036160348, locals=locals@entry=0x7f6036160348, flags=flags@entry=0x7fff8cdd9570, arena=arena@entry=0x7f60397a4fd0) at Python/pythonrun.c:2180 #11 0x00007f6036fba4c9 in PyRun_StringFlags ( str=str@entry=0x7f603616b770 "if 1:\n", ' ' , "import _testcapi\n\n", ' ' , "_testcapi.run_in_subinterp('if 1:\\n", ' ' , "import os\\n", ' ' , "import threading\\n", ' ' , "import time\\n\\n", ' ' , "def f():\\n", ' ' ..., start=start@entry=257, globals=0x7f6036160348, locals=0x7f6036160348, flags=flags@entry=0x7fff8cdd9570) at Python/pythonrun.c:2104 #12 0x00007f6036fbba78 in PyRun_SimpleStringFlags ( command=0x7f603616b770 "if 1:\n", ' ' , "import _testcapi\n\n", ' ' , "_testcapi.run_in_subinterp('if 1:\\n", ' ' , "import os\\n", ' ' , "import threading\\n", ' ' , "import time\\n\\n", ' ' , "def f():\\n", ' ' ..., flags=flags@entry=0x7fff8cdd9570) at Python/pythonrun.c:1631 #13 0x00007f6036fcfb2c in run_command ( command=command@entry=0x7f6039716c00 L"if 1:\n", ' ' , "import _testcapi\n\n", ' ' , "_testcapi.run_in_subinterp('if 1:\\n", ' ' , "import os\\n", ' ' , "import threading\\n", ' ' , "import time\\n\\n", ' ' , "def f():\\n", ' ' ..., cf=cf@entry=0x7fff8cdd9570) at Modules/main.c:280 #14 0x00007f6036fd0ab6 in Py_Main (argc=6, argv=0x7f60396ef010) at Modules/main.c:690 #15 0x00007f6037536d53 in main (argc=6, argv=0x7fff8cdd9798) at ./Modules/python.c:69