#779: missing values cause bro to crash when used inside of a 'when' statement.
------------------------+---------------------------------------
Reporter: justin | Type: Problem
Status: new | Priority: Normal
Milestone: | Component: Bro
Version: git/master | Keywords: when InterpreterException
------------------------+---------------------------------------
Simplest test case:
{{{
event bro_init()
{
local loc: geo_location;
when (local hostname = lookup_addr(127.0.0.1)){
print "Location", loc$country_code;
print "ok";
terminate();
}
}
}}}
gives:
{{{
terminate called after throwing an instance of 'InterpreterException'
}}}
outside of the when block, reporter.log would get:
{{{
Reporter::ERROR field value missing [loc$country_code]
}}}
--
Ticket URL: <http://tracker.bro-ids.org/bro/ticket/779>
Bro Tracker <http://tracker.bro-ids.org/bro>
Bro Issue Tracker
Show replies by date
#779: missing values cause bro to crash when used inside of a 'when' statement.
----------------------+---------------------------------------
Reporter: justin | Owner:
Type: Problem | Status: new
Priority: Normal | Milestone: Bro2.1
Component: Bro | Version: git/master
Resolution: | Keywords: when InterpreterException
----------------------+---------------------------------------
Changes (by robin):
* milestone: => Bro2.1
--
Ticket URL: <http://tracker.bro-ids.org/bro/ticket/779#comment:1>
Bro Tracker <http://tracker.bro-ids.org/bro>
Bro Issue Tracker
#779: missing values cause bro to crash when used inside of a 'when' statement.
----------------------+---------------------------------------
Reporter: justin | Owner:
Type: Problem | Status: new
Priority: High | Milestone: Bro2.2
Component: Bro | Version: git/master
Resolution: | Keywords: when InterpreterException
----------------------+---------------------------------------
Changes (by seth):
* priority: Normal => High
* milestone: Bro2.1 => Bro2.2
Comment:
This is another one of those potentially surprising shutdown bugs and
really should be fixed. Fortunately it's not a huge priority because it's
in a little-used feature (the when statement).
--
Ticket URL: <http://tracker.bro-ids.org/bro/ticket/779#comment:2>
Bro Tracker <http://tracker.bro-ids.org/bro>
Bro Issue Tracker
#779: missing values cause bro to crash when used inside of a 'when' statement.
----------------------+---------------------------------------
Reporter: justin | Owner:
Type: Problem | Status: new
Priority: High | Milestone: Bro2.2
Component: Bro | Version: git/master
Resolution: | Keywords: when InterpreterException
----------------------+---------------------------------------
Comment (by jsiwek):
In [f7440375f175c0081d7d05ca5f0581480031130f/bro]:
{{{
#!CommitTicketReference repository="bro"
revision="f7440375f175c0081d7d05ca5f0581480031130f"
Interpreter exceptions occurring in "when" blocks are now handled.
The scripting error that caused the exception is still reported, but
it no longer causes Bro to terminate. Addresses #779
}}}
--
Ticket URL: <http://tracker.bro-ids.org/bro/ticket/779#comment:3>
Bro Tracker <http://tracker.bro-ids.org/bro>
Bro Issue Tracker
#779: missing values cause bro to crash when used inside of a 'when' statement.
-----------------------------+---------------------------------------
Reporter: justin | Owner:
Type: Problem | Status: closed
Priority: High | Milestone: Bro2.2
Component: Bro | Version: git/master
Resolution: Solved/Applied | Keywords: when InterpreterException
-----------------------------+---------------------------------------
Changes (by jsiwek):
* status: new => closed
* resolution: => Solved/Applied
Comment:
Fix is in git/master now.
--
Ticket URL: <http://tracker.bro-ids.org/bro/ticket/779#comment:4>
Bro Tracker <http://tracker.bro-ids.org/bro>
Bro Issue Tracker