Assertion failure testcode/unitverify.c:201

Hi,

Just tried building unbound 1.4.13 on MacOS 10.7 (Lion) and got:

% make
<successful compilation>
% make test
./unittest
Start of unbound 1.4.13 unit test.
test negative cache functions
test ub_random functions
ub_random seed is 1323198995
test signature verify functions
assertion failure testcode/unitverify.c:201
make: *** [test] Error 1

Before I start digging, has anyone else encountered this?

Thanks,
-drc

David,
    
    Just tried building unbound 1.4.13 on MacOS 10.7 (Lion) and got:
    
    % make
    <successful compilation>
    % make test
    ./unittest
    Start of unbound 1.4.13 unit test.
    test negative cache functions
    test ub_random functions
    ub_random seed is 1323198995
    test signature verify functions
    assertion failure testcode/unitverify.c:201
    make: *** [test] Error 1
    
    Before I start digging, has anyone else encountered this?

I just tried it and see this as well. Bummer.

I don't see this with the latest version from svn and Lion.

  jaap

Hi Jaap, David,

Yes I fixed it lately. Seems that on OSX Lion the openssl-GOST
routines are bugged. The GOST94-hash function gives different outputs
than what it 'should do', (I compared with other platforms). The fix
is that it disables GOST support if ./configure detects that the hash
function produces the wrong output (i.e. hash("hello world") != the
correct value).

The failure in the unit test indicates this problem, it is otherwise
harmless. A workaround would be to ./configure --disable-gost. The
unit test failure should then be gone (with older versions as well).

Best regards,
   Wouter

Hi Wouter,

Thanks. Easy workaround. I wonder if anyone is actually signing with GOST...

Regards,
-drc

I believe cert.ru's DNSKEY RRset includes a GOST key.

Regards,

Anand Buddhdev
RIPE NCC