handle case of null thread local in SegFaultHandler::handleSignal

This commit is contained in:
Joel Dice 2009-08-18 15:47:08 -06:00
parent 0eba1eeaf2
commit 0a2e611baa

View File

@ -6328,7 +6328,7 @@ class SegFaultHandler: public System::SignalHandler {
void** thread)
{
MyThread* t = static_cast<MyThread*>(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;