Skip to content

Instantly share code, notes, and snippets.

@carstenschwede
Last active December 15, 2015 19:19
Show Gist options
  • Save carstenschwede/5310277 to your computer and use it in GitHub Desktop.
Save carstenschwede/5310277 to your computer and use it in GitHub Desktop.
SIGABRT with hyperdex on OS X
#=====================
#WITHOUT LEVELDB PATCH
#=====================
$brew tap carstenschwede/homebrew-hyperdex
$brew tap homebrew/versions
$brew install hyperdex
$hyperdex coordinator -f -l 127.0.0.1 -p 1982
I0404 15:14:47.424314 2062502240 daemon.cc:168] initializing persistent storage
replicant daemon(15600) malloc: *** error for object 0x10bd47de0: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
*** Aborted at 1365081287 (unix time) try "date -d @1365081287" if you are using GNU date ***
PC: @ 0x7fff91e3a82a __kill
*** SIGABRT (@0x7fff91e3a82a) received by PID 15600 (TID 0x7fff7aef4960) stack trace: ***
@ 0x7fff91c97cfa _sigtramp
@ 0x10bc21167 leveldb::Histogram::kBucketLimit
@ 0x7fff91c9584c free
@ 0x10bc5fde0 operator delete()
@ 0x7fff90d90702 std::string::_Rep::_M_dispose()
@ 0x7fff90d91aab std::string::_M_mutate()
@ 0x7fff90d91b2d std::string::_M_replace_safe()
@ 0x10bc09ca7 leveldb::SaveValue()
@ 0x10bc12904 leveldb::Table::InternalGet()
@ 0x10bc07d11 leveldb::TableCache::Get()
@ 0x10bc0995a leveldb::Version::Get()
@ 0x10bbfe3c8 leveldb::DBImpl::Get()
@ 0x10bb49150 replicant::fact_store::open()
Abort trap: 6
$ could not initialize cluster: HYPERCLIENT_COORDFAIL
#=====================
#WITH LEVELDB PATCH
#=====================
$ brew install hyperdex
Warning: Your Xcode (4.6) is outdated
Please install Xcode 4.6.1.
==> Installing hyperdex dependency: leveldb
==> Downloading https://leveldb.googlecode.com/files/leveldb-1.9.0.tar.gz
==> Patching
patching file build_detect_platform
==> make
==> make leveldbutil
🍺 /usr/local/Cellar/leveldb/1.9.0: 22 files, 1,3M, built in 14 seconds
==> Installing hyperdex
==> Downloading http://hyperdex.org/src/hyperdex-1.0.rc3.tar.gz
==> Patching
patching file Makefile.am
patching file daemon/communication.cc
==> mkdir osx
==> curl -O https://raw.github.com/rescrv/HyperDex/master/osx/ieee754.h --output osx/ieee754.h
==> curl -O https://raw.github.com/rescrv/HyperDex/3cb4e2a038d963ca7352ce3498e046ee32604754/client/ruby/type_conversion.h
==> mv type_conversion.h client/ruby/type_conversion.h
==> ./configure --enable-python-bindings --enable-ruby-bindings --prefix=/usr/local/Cellar/hyperdex/1.0.rc3 PO6_LIBS=-L/usr/lo
==> make install
🍺 /usr/local/Cellar/hyperdex/1.0.rc3: 26 files, 12M, built in 2.0 minutes
$ hyperdex coordinator -f -l 127.0.0.1 -p 1982
I0408 13:08:31.224784 2062502240 daemon.cc:168] initializing persistent storage
replicant daemon(24982) malloc: *** error for object 0x1090a4de0: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
*** Aborted at 1365419311 (unix time) try "date -d @1365419311" if you are using GNU date ***
PC: @ 0x7fff91e3a82a __kill
*** SIGABRT (@0x7fff91e3a82a) received by PID 24982 (TID 0x7fff7aef4960) stack trace: ***
@ 0x7fff91c97cfa _sigtramp
@ 0x108f73167 leveldb::Histogram::kBucketLimit
@ 0x7fff91c9584c free
@ 0x108fbcde0 operator delete()
@ 0x7fff90d90702 std::string::_Rep::_M_dispose()
@ 0x7fff90d91aab std::string::_M_mutate()
@ 0x7fff90d91b2d std::string::_M_replace_safe()
@ 0x108f5bca7 leveldb::SaveValue()
@ 0x108f64904 leveldb::Table::InternalGet()
@ 0x108f59d11 leveldb::TableCache::Get()
@ 0x108f5b95a leveldb::Version::Get()
@ 0x108f503c8 leveldb::DBImpl::Get()
@ 0x108ea1150 replicant::fact_store::open()
Abort trap: 6
$ could not initialize cluster: HYPERCLIENT_COORDFAIL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment