[Bro] Assertion 'field' failed.

Abdelkarim benkhadra a.benkhadra at hotmail.com
Mon May 18 06:37:55 PDT 2015

i think i found the responsible,

i have a record :

type myrec = record {
       //some fields.
       last_field: bytestring &restofdata;
} &length = sizeof(this);

with this length specification i get the RecordField* error and when trying &length=20+sizeof(last_field) i get "cannot determine initial buffer length for type myrec" and without &length it passes. 
so far im not going to specify the &length value and let you know if something comes up.


From: vlad at grigorescu.org
To: a.benkhadra at hotmail.com; bro at bro.org
Subject: Re: [Bro] Assertion 'field' failed.
Date: Mon, 18 May 2015 07:51:37 -0500

That's a rather vague error, unfortunately. You can try using gdb to
debug and pinpoint which record and field this is referring to. Do you
have the code available for review somewhere, or could you share the
snippet that you suspect is the issue?

Abdelkarim benkhadra  writes:

> Hi,
> i'm writing an analyzer for a protocol, i wrote all files needed and when 'make'ing bro i get an error of:
> binpac: ..../bro-2.4-beta/aux/binpac/src/pac_expr.cc:225: RecordField* {anonymous}::GetRecordField(const ID*, Env*): Assertion 'field' failed.
> i assume the error comes from .pac files so what could possibly generate this kind of error? 
> regards,
> _______________________________________________
> Bro mailing list
> bro at bro-ids.org
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/bro 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ICSI.Berkeley.EDU/pipermail/bro/attachments/20150518/3133bf16/attachment.html 

More information about the Bro mailing list