caofangkun / smhasher

Automatically exported from code.google.com/p/smhasher
0 stars 0 forks source link

Core dump #33

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. copied all the files in Linux-m/c(x86_64),Gcc 4.5.0

2. Compile command g++ -D__USE_XOPEN2K8 main.cpp AvalancheTest.cpp Bitslice.cpp 
Bitvec.cpp City.cpp CityTest.cpp DifferentialTest.cpp Hashes.cpp KeysetTest.cpp 
MurmurHash1.cpp MurmurHash2.cpp MurmurHash3.cpp Platform.cpp Random.cpp 
SpeedTest.cpp Spooky.cpp Types.cpp SuperFastHash.cpp Stats.cpp -o main

3. When run it produces segment fault

What is the expected output? What do you see instead?
Expect to run murmur hash test

What version of the product are you using? On what operating system?
Linux

Please provide any additional information below.
-------------------------------------------------------------------------------
--- Testing Murmur2 (MurmurHash2 for x86, 32-bit)

[[[ Sanity Tests ]]]

Program received signal SIGSEGV, Segmentation fault.
0x000000000065c800 in memcmp@@GLIBC_2.2.5 ()

Original issue reported on code.google.com by abhay...@gmail.com on 9 May 2015 at 8:58

GoogleCodeExporter commented 9 years ago
Stack trace:
(gdb) bt
#0  0x000000000065c800 in memcmp@@GLIBC_2.2.5 ()
#1  0x00000000004387f3 in SanityTest(void (*)(void const*, int, unsigned int, 
void*), int) ()
#2  0x0000000000401bcc in void test<unsigned int>(hashfunc<unsigned int>, 
HashInfo*) ()
#3  0x00000000004014d9 in testHash(char const*) ()
#4  0x000000000040161c in main ()

Original comment by abhay...@gmail.com on 9 May 2015 at 9:03