Skip to content

Commit

Permalink
fix(sinsp): ignore fds without tinfo from scap files
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Guerra <[email protected]>
  • Loading branch information
LucaGuerra authored and poiana committed Mar 5, 2024
1 parent 9f75998 commit bb0f97d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion userspace/libsinsp/sinsp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -924,7 +924,11 @@ void sinsp::on_new_entry_from_proc(void* context,

if(!sinsp_tinfo)
{
ASSERT(tinfo != NULL);
if (tinfo == NULL)
{
// we have an fd but no associated tinfo, skip it
return;
}

auto newti = build_threadinfo();
newti->init(tinfo);
Expand Down

0 comments on commit bb0f97d

Please sign in to comment.