Skip to content

Commit 08eded9

Browse files
committed
Hotfix for #1260
We do need the lookup after insertion (to get a smart pointer to the threadinfo, at least)
1 parent 7859219 commit 08eded9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

userspace/libsinsp/sinsp.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -848,6 +848,12 @@ void sinsp::on_new_entry_from_proc(void* context,
848848
delete newti;
849849
return;
850850
}
851+
852+
sinsp_tinfo = find_thread(tid, true);
853+
if (!sinsp_tinfo) {
854+
ASSERT(false);
855+
return;
856+
}
851857
}
852858

853859
sinsp_fdinfo_t sinsp_fdinfo;

0 commit comments

Comments
 (0)