[Oisf-devel] Debug HashListTableLookup()

Will Metcalf william.metcalf at gmail.com
Sun Jan 31 18:00:11 UTC 2010


I think this is a problem somewhere in the cidr masking.  I have seen this
before on PPC so I'm guessing it is an endian issue, I have not had a chance
to look into it any further.  Let me know if you figure it out ;-)....

https://redmine.openinfosecfoundation.org/issues/show/63

Regards,

Will

On Sun, Jan 31, 2010 at 11:23 AM, Yao-Min Chen <Yaomin.Chen at sun.com> wrote:

> My unit test SigTestBidirec03 seems to loop forever while traversing the
> hashed list of signature patterns (I verified this by setting break
> point and single stepping the run). Any hint on how to check whether the
> hashed list is properly terminated, and without self-looping?
>
> Test SigTestBidirec03                                             :
> ^Cdbx: warning: Interrupt ignored but forwarded to child.
> t at 1 (l at 1) signal INT (Interrupt) in DetectAddressCmp at line 1392 in
> file "detect-engine-address.c"
>  1392       if (a->flags & ADDRESS_FLAG_ANY && b->flags & ADDRESS_FLAG_ANY)
> (dbx) where
> current thread: t at 1
> =>[1] DetectAddressCmp(a = <value not available>, b = 0xacc220), line
> 1392 in "detect-engine-address.c"
>  [2] IPOnlyCompareFunc(data1 = 0xa87ce8, len1 = <value not available>,
> data2 = 0xacc220, len2 = <value not available>), line 190 in
> "detect-engine-iponly.c"
>  [3] HashListTableLookup(ht = <value not available>, data = 0xacc220,
> datalen = <value not available>), line 237 in "util-hashlist.c"
>  [4] IPOnlyAddSlash16(de_ctx = 0x4c8240, io_ctx = 0x4ca2d0, ht =
> 0x2b06f8, gr = 0x5e3898, direction = <value not available>, s =
> 0x5e3780), line 81 in "detect-engine-iponly.c"
>  [5] IPOnlyAddSignature(de_ctx = 0x4c8240, io_ctx = 0x4ca2d0, s =
> 0x5e3780), line 475 in "detect-engine-iponly.c"
>  [6] SigAddressPrepareStage2(de_ctx = 0x4c8240), line 1667 in "detect.c"
>  [7] SigGroupBuild(de_ctx = 0x4c8240), line 2797 in "detect.c"
>  [8] UTHMatchPackets(de_ctx = 0x4c8240, p = <value not available>,
> num_packets = -16948332), line 465 in "util-unittest-helper.c"
>  [9] SigTestBidirec03(), line 1352 in "detect-parse.c"
>  [10] UtRunTests(regex_arg = <value not available>), line 182 in
> "util-unittest.c"
>  [11] main(argc = <value not available>, argv = <value not available>),
> line 596 in "suricata.c"
>
> Thanks,
> Yaomin
>
> _______________________________________________
> Oisf-devel mailing list
> Oisf-devel at openinfosecfoundation.org
> http://lists.openinfosecfoundation.org/mailman/listinfo/oisf-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openinfosecfoundation.org/pipermail/oisf-devel/attachments/20100131/2e87bf90/attachment-0002.html>


More information about the Oisf-devel mailing list