gregorycollins/hashtables — Issue #2: cuckoo segfaults
Author: tmcdonell
Created: 2011-11-24 06:25:17+00:00
State: open

Running the test suite, cuckoo segfaults. Enabling bounds checking yields no further insight. Works fine in portable mode. Throwing in a few extra debug messages, I got as far as `readArray` at Cuckoo.hs:261.

This is ghc-7.2.1 (64-bit) on Mac OS 10.7.2, gcc-4.2. However, works fine on a ubuntu box also with ghc-7.2.1 (64-bit) and gcc-4.4.3, so unless you also have an OS X box that displays this problem, I might be stuck reading about how cuckoo hashing works...

```
$ ./dist/build/testsuite/testsuite
cuckoo:
creating cuckoo hash table with 19 buckets having 152 total slots
creating cuckoo hash table with 19 buckets having 152 total slots
insert': begin
updateOrFail: begin: sz = 19
h1=1, h2=7470097589608349705, b1=8, b2=80
delete' b1=8 b2=80 h1=1 h2=7470097589608349705
Segmentation fault: 11
```