[PATCH, TSAN] Fix a crash in ScopedReport::AddThread

Bernd Edlinger bernd.edlinger@hotmail.de
Wed Mar 11 14:41:00 GMT 2015


Hi Jakub,


with my OPC UA Server, I observe a reproducible crash in
ScopedReport::AddThread: tctx==NULL
in "if ((u32)rep_->threads[i]->id == tctx->tid)".

Apparently, Dmitry has already fixed that in the obvious way.

So we should cherry pick these two changes from LLVM: 224508 and 224755
See attachment.


Builds cleanly and fixes the problem for me.

OK for trunk?


Thanks
Bernd.
 		 	   		  
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-tsan-crash.diff
Type: application/octet-stream
Size: 639 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20150311/83734bd1/attachment.obj>


More information about the Gcc-patches mailing list