[Bro-Dev] [JIRA] (BIT-667) Non-deterministic behavior when deleting current set element during iteration

Jon Siwek (JIRA) jira at bro-tracker.atlassian.net
Tue Mar 17 11:58:00 PDT 2015


     [ https://bro-tracker.atlassian.net/browse/BIT-667?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jon Siwek updated BIT-667:
--------------------------
       Resolution: Duplicate
    Fix Version/s: 2.4
           Status: Closed  (was: Open)

As part of BIT-978, I'll be adding documentation to the for-each loop that explains you can't modify a container's membership while iterating over it.  (There is code that in Bro's core that would allow this, "MakeRobustCookie", but I assume it's not used for performance reasons).

> Non-deterministic behavior when deleting current set element during iteration
> -----------------------------------------------------------------------------
>
>                 Key: BIT-667
>                 URL: https://bro-tracker.atlassian.net/browse/BIT-667
>             Project: Bro Issue Tracker
>          Issue Type: Problem
>          Components: Bro
>            Reporter: david.bianco
>             Fix For: 2.4
>
>         Attachments: part3.bro
>
>
> As we discussed during the Bro Workshop at NCSA, the attached code shows some non-deterministic results while deleting the current element while iterating through a set.  Most of the time, it works.  Some times, it doesn't.
> Have a look at subexercise 3's output.



--
This message was sent by Atlassian JIRA
(v6.4-OD-15-055#64014)


More information about the bro-dev mailing list