--- /home/jeff/workspace/python/Python-3.5.0a3-original/Python/pylifecycle.c +++ /home/jeff/workspace/python/Python-3.5.0a3/Python/pylifecycle.c @@ -1299,8 +1299,12 @@ return; display_stack: +#ifdef WITH_THREADS /* PyGILState_GetThisThreadState() works even if the GIL was released */ tstate = PyGILState_GetThisThreadState(); +#else + tstate = NULL; +#endif if (tstate == NULL) { /* _Py_DumpTracebackThreads() requires the thread state to display * frames */