Menu ▾ ▴

#6 Retraction while in do-for-all-facts "use after free" patch

1.0
closed
None
2015-03-11
2015-03-09
Chad Woolf
No

I have code that does a retraction of facts while in a do-for-all-facts action. The address sanitizer found a case where the loop tried to access the nextFact pointer but the fact had already been garbage collected. Switching the order seems to fix the problem, but this is only a suggested fix, as it may not be the right one.

1 Attachments

Discussion

  • Gary Riley

    Gary Riley - 2015-03-11

    Garbage collection fix checked in for both fact and instances queries with revision 251.

     
  • Gary Riley

    Gary Riley - 2015-03-11
    • status: new --> closed
    • assigned_to: Gary Riley
     

Log in to post a comment.