[sdb] Don't set tls->context when interrupting a thread, it could race with the threa...
authorZoltan Varga <vargaz@gmail.com>
Tue, 5 Sep 2017 00:24:48 +0000 (02:24 +0200)
committermonojenkins <jo.shields+jenkins@xamarin.com>
Wed, 6 Sep 2017 11:56:02 +0000 (13:56 +0200)
mono/mini/debugger-agent.c

index 4a2637c1943e4339c4aaca8a2762a8a538012405..cb0600828e9c4116eccd38a44843358bd263666c 100644 (file)
@@ -2670,7 +2670,7 @@ thread_interrupt (DebuggerTlsData *tls, MonoThreadInfo *info, MonoJitInfo *ji)
                                }
 
                                copy_unwind_state_from_frame_data (&tls->async_state, &data, jit_tls);
-                               copy_unwind_state_from_frame_data (&tls->context, &data, jit_tls);
+                               /* Don't set tls->context, it could race with the thread processing a breakpoint etc. */
                        } else {
                                tls->async_state.valid = FALSE;
                        }