Bug 1755

Summary: hash test failure for gcc-4.4.3 64-bit
Product: ns-3 Reporter: Tom Henderson <tomh>
Component: coreAssignee: Peter Barnes <pdbarnes>
Status: RESOLVED FIXED    
Severity: normal CC: ns-bugs, tommaso.pecorella
Priority: P5    
Version: pre-release   
Hardware: All   
OS: All   

Description Tom Henderson 2013-08-19 02:24:11 EDT
On Ubuntu 10.04.3, 64 bit, test suite hash fails as of changeset 69d9828c473d

./waf -d optimized configure --enable-static --enable-examples --enable-tests --disable-python

Here is the diagnostic:

FAIL: Test Suite "hash" (0.000)
FAIL: Test Suite "DefaultHash: " (0.000)
   Details:
     Message:   default Hash64 produced         79d53e04, expected a750412079d53e04
     Condition: hash (actual) == hashRef (limit)
     Actual:    2044018180
     Limit:     12056207810209594884
     File:      ../src/core/test/hash-test-suite.cc
     Line:      98

this may be a 32- to 64-bit cast problem.
Comment 1 Tommaso Pecorella 2013-08-19 05:34:17 EDT
I'm trying to reproduce the bug, however I can point out one interesting fact.

default Hash64 produced         79d53e04, expected a750412079d53e04

It was expecting a 64-bit hash and it got a 32-bit long number.

I don't know if this can help in the debugging.
Comment 2 Tommaso Pecorella 2013-08-19 14:05:26 EDT
I tested it with g++ 4.4-7 on a 64-bit virtual machine (LinuxMint 13) and the tests are ok.

I'm not totally sure on what's the g++ compiler on Ubuntu 10.04.3, also because it's impossible to download it anymore. Or to install the necessary packages on a fresh machine...
Comment 3 Tom Henderson 2013-08-23 17:28:53 EDT
workaround pushed in changeset: 896bedb7b79b to disable the tests in question when gcc-4.4.x is in use.

Leaving open because Peter may continue to look at it.
Comment 4 Tom Henderson 2013-09-06 20:23:14 EDT
Peter fixed this in changeset 9b6d0037b360