This code crashes Bro with a core dump :
event bro_init() {
local v : vector of bool = { T, F, T };
print v && T; # OK, print [T, F, T]
print v || F; # OK, print [T, F, T]
print v && F; # KO, print [F, F, F]
then : internal error: bad reference count [2], then core dumped
print v || T; # KO, print [T, T, T]
then : internal error: bad reference count [2], then core dumped
}
Looks like it was fixed at some point:
{{noformat}
$ bro -b ./test.bro
warning in ././test.bro, line 4: mixing vector and scalar operands is deprecated
warning in ././test.bro, line 5: mixing vector and scalar operands is deprecated
warning in ././test.bro, line 6: mixing vector and scalar operands is deprecated
warning in ././test.bro, line 7: mixing vector and scalar operands is deprecated
[T, F, T]
[T, F, T]
[F, F, F]
[T, T, T]