Skip to content

Commit

Permalink
Merge pull request #191 from cuviper/try-tls-init
Browse files Browse the repository at this point in the history
proccontrol: check thread handle before calculating TLS
  • Loading branch information
wrwilliams committed Oct 12, 2016
2 parents fa6988a + fc6692f commit 7e942ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proccontrol/src/int_thread_db.C
Expand Up @@ -1635,7 +1635,7 @@ async_ret_t thread_db_process::plat_calcTLSAddress(int_thread *thread, int_libra
Address &outaddr, set<response::ptr> &resps)
{
thread_db_thread *thrd = dynamic_cast<thread_db_thread *>(thread);
if (!thrd) {
if (!thrd || !thrd->initThreadHandle()) {
perr_printf("Thread_db not supported on thread %d/%d\n", getPid(), thread->getLWP());
setLastError(err_unsupported, "TLS Operations not supported on this thread\n");
return aret_error;
Expand Down

0 comments on commit 7e942ea

Please sign in to comment.