[Bro] crash with default in record in record

David Mandelberg dmandelb at bbn.com
Wed Mar 20 15:28:27 PDT 2013


Hi,

When I have a default value in one record that's inside of another
record, I get a crash trying to print that value. I've attached source
code that reliably crashes for me along with a log of what I see when it
crashes. The output I'm expecting is:

[bar=4321, foo=[foo=1234, quux=9876]]
[foo=1234, quux=9876]
9876

Has anybody seen this before? Am I trying to do something that's not
supported?


P.S. What I really want is something like "foo: Foo
&default=[$foo=bar];" so that bar$foo$foo defaults to the same value as
bar$bar. Is that possible?
-------------- next part --------------
type Foo: record {
	foo: count;
	quux: count &default=9876;
};

type Bar: record {
	bar: count;

	foo: Foo &default=[$foo=1234];
};

global bar: Bar = [$bar=4321];
print(bar);
print(bar$foo);
print(bar$foo$quux);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: crash.log
Type: text/x-log
Size: 5097 bytes
Desc: not available
Url : http://mailman.ICSI.Berkeley.EDU/pipermail/bro/attachments/20130320/167614cb/attachment.bin 


More information about the Bro mailing list