Skip to content
Snippets Groups Projects

Fix use-after-free for the this pointer to a TBB task

Merged Benjamin Michael Wynne requested to merge bwynne/Gaudi_gaudi:UseAfterFreeTaskFix into master

Reported in #76 (closed)

The lambda pushed to the scheduler action queue at the end of AlgoExecutionTask includes a this pointer to the task itself.

Since the task can be deleted before the lambda is executed, you get a segfault.

Not sure why we only see this in the async scheduling tests - maybe because we're mixing two types of task there?

Anyway, this fixes the #76 (closed) segfault in my local tests, but probably doesn't fix the issue with async scheduling that Attila noticed (email thread)

Closes #76 (closed)

Edited by Marco Clemencic

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading