[Bro-Dev] [JIRA] (BIT-1252) topic/jsiwek/missing-plugin

Jon Siwek (JIRA) jira at bro-tracker.atlassian.net
Tue Sep 16 08:18:07 PDT 2014

Jon Siwek created BIT-1252:

             Summary: topic/jsiwek/missing-plugin
                 Key: BIT-1252
                 URL: https://bro-tracker.atlassian.net/browse/BIT-1252
             Project: Bro Issue Tracker
          Issue Type: Problem
          Components: Bro
    Affects Versions: git/master
            Reporter: Jon Siwek
             Fix For: 2.4

Trying to activate a non-existing dynamic plugin gave a hard to understand error message and core dumps:

$ bro Bro::NOPE
error in /Users/jsiwek/Projects/bro/bro/scripts/base/init-bare.bro, line 1: plugin Bro::NOPE is not available
internal error in /Users/jsiwek/Projects/bro/bro/build/scripts/base/bif/const.bif.bro, line 33: internal variable state_dir missing
Abort trap: 6

It also seems that {{bro -N Bro::NOPE}}, which is used by the {{testing/scripts/has-writer}} helper script, is interpreted as a request to activate a dynamic plugin instead of just query if a plugin exists w/ that name.  Not sure the intention: I just changed the helper script to grep the output of {{bro -N}} instead.

This message was sent by Atlassian JIRA

More information about the bro-dev mailing list