I'm not intimately familiar with the cfengine source code, but would it be more appropriate to modify the hashing function rather than catch the case of a zero-hash and return a "not found"?
Paul Krizak 7171 Southwest Pkwy MS B200.3A Senior Systems Engineer Austin, TX 78735 Advanced Micro Devices Desk: (512) 602-8775 Linux/Unix Systems Engineering Cell: (512) 791-0686 Global IT Infrastructure Fax: (512) 602-0468 On 04/12/10 09:59, fo...@cfengine.com wrote: > Forum: Cfengine Help Subject: Re: Cfengine Help: Possible bug in > cfengine 2 Author: kevinmusker Link to topic: > https://cfengine.com/forum/read.php?3,16865,16866#msg-16866 > > The hang will occur consistently on every run as soon as it tries to > parse the file in question. We have been using cfengine quite > extensively for 3 years, and this is the first time we've had this > issue. Maybe the hashing function doesn't produce a uniform > distribution, making a value of 0 less likely than some of the > others? > > To further verify the problem, I wrote a short script to generate > other strings that hash to zero - trying a few of these all produced > the same hang. > > E.g. ADIg, ATKI, AhMB > > _______________________________________________ Help-cfengine mailing > list Help-cfengine@cfengine.org > https://cfengine.org/mailman/listinfo/help-cfengine > _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine