kim / leveldb-haskell

Haskell bindings to LevelDB (https://github.com/google/leveldb)
BSD 3-Clause "New" or "Revised" License
66 stars 50 forks source link

LevelDB crashes ghci #8

Closed warrenharris closed 12 years ago

warrenharris commented 12 years ago

LevelDB consistently crashes ghci on my system. (Mac OS X 10.6.8 running ghc 7.0.4). Note that LevelDB commands work fine when compiled into a binary by ghc.

$ ghci GHCi, version 7.0.4: http://www.haskell.org/ghc/ :? for help Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... linking ... done. Loading package base ... linking ... done. Loading package ffi-1.0 ... linking ... done. package flags have changed, resetting and loading new packages... Prelude> :m Database.LevelDB Prelude Database.LevelDB> withLevelDB "/tmp/ldb" [CreateIfMissing] $ \db -> return () Loading package bytestring-0.9.1.10 ... linking ... done. Loading package filepath-1.2.0.0 ... linking ... done. Loading package leveldb-haskell-0.0.3 ... linking ... done. Segmentation fault

kim commented 12 years ago

Duplicate of #4: static linking seems to have some issues. Version 0.1.0 (to be pushed to hackage soon) will link against the shared lib version of LevelDB. Please build from git HEAD meanwhile.