Skip to content

Commit 36eaeba

Browse files
thaystglewing
andauthored
Fix crash while debugging AOT'ed app. (#117627)
Co-authored-by: Larry Ewing <lewing@microsoft.com>
1 parent 516ec66 commit 36eaeba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mono/mono/component/debugger-agent.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4140,7 +4140,7 @@ jit_end (MonoProfiler *prof, MonoMethod *method, MonoJitInfo *jinfo)
41404140
if (assembly) {
41414141
DebuggerTlsData *tls;
41424142
tls = (DebuggerTlsData *)mono_native_tls_get_value (debugger_tls_id);
4143-
if (!CHECK_ICORDBG (TRUE) || tls->invoke == NULL) {
4143+
if (!CHECK_ICORDBG (TRUE) || !tls || tls->invoke == NULL) {
41444144
process_profiler_event (EVENT_KIND_ASSEMBLY_LOAD, assembly);
41454145
} else {
41464146
mono_dbg_assembly_load (prof, assembly); //send later

0 commit comments

Comments
 (0)