discoproject / discodb

An efficient, immutable, persistent mapping object
http://discodb.readthedocs.org/
BSD 3-Clause "New" or "Revised" License
99 stars 31 forks source link

Seg fault on mac osx #4

Open srobertson opened 11 years ago

srobertson commented 11 years ago

Discodb on mac osx segfaults with more than 30 keys

The following script reproduces the error:

from discodb import DiscoDBConstructor
discodb_constructor = DiscoDBConstructor()

for item in enumerate(xrange(30)):
  k,v = map(str,item)
  discodb_constructor.add(k,v)

stream = open('/tmp/discodb', 'w')
discodb_constructor.finalize().dump(stream)

It's interesting to note that this error does not occur under linux.

I installed libcmph via brew on mac it claims I'm using libcmph 2.0

On linux installed via apt-get install libcmph-devel

Show's version 0.9