mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-27 07:47:03 -05:00
Fix SIGSEGV on RsThread::start
mTid could be null while pError is null too. This happens to me always with "gxs integrity".
This commit is contained in:
parent
27bbd50f1f
commit
c0ce5c7088
@ -194,6 +194,15 @@ bool RsThread::start(const std::string& threadName)
|
|||||||
print_stacktrace();
|
print_stacktrace();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if(!mTid)
|
||||||
|
{
|
||||||
|
RsErr() << __PRETTY_FUNCTION__ << " pthread_create could not create"
|
||||||
|
<< " new thread: " << threadName << " mTid: " << mTid
|
||||||
|
<< std::endl;
|
||||||
|
mHasStopped = true;
|
||||||
|
print_stacktrace();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/* Store an extra copy of thread id for debugging */
|
/* Store an extra copy of thread id for debugging */
|
||||||
mLastTid = mTid;
|
mLastTid = mTid;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user