diff --git a/src/compile.cpp b/src/compile.cpp index 97fe3fb21e..e045bb04b6 100644 --- a/src/compile.cpp +++ b/src/compile.cpp @@ -6328,7 +6328,7 @@ class SegFaultHandler: public System::SignalHandler { void** thread) { MyThread* t = static_cast(m->localThread->get()); - if (t->state == Thread::ActiveState) { + if (t and t->state == Thread::ActiveState) { object node = methodForIp(t, *ip); if (node) { void* oldIp = t->ip;