Skip to content

Instantly share code, notes, and snippets.

@rvagg
Created October 8, 2013 03:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rvagg/6879204 to your computer and use it in GitHub Desktop.
Save rvagg/6879204 to your computer and use it in GitHub Desktop.
leveldown/leveldb errors
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff6bca700 (LWP 25672)]
0x00007ffff4973674 in leveldb::DecodeFixed32 (ptr=0x8 <Address 0x8 out of bounds>)
at ../deps/leveldb/leveldb-1.14.0/util/coding.h:62
62 memcpy(&result, ptr, sizeof(result)); // gcc optimizes this to a plain load
(gdb) backtrace
#0 0x00007ffff4973674 in leveldb::DecodeFixed32 (ptr=0x8 <Address 0x8 out of bounds>)
at ../deps/leveldb/leveldb-1.14.0/util/coding.h:62
#1 0x00007ffff49854f4 in leveldb::WriteBatchInternal::Count (b=0x5698930)
at ../deps/leveldb/leveldb-1.14.0/db/write_batch.cc:83
#2 0x00007ffff498547c in leveldb::WriteBatch::Iterate (this=0x5698930, handler=0x7ffff6bc9ca0)
at ../deps/leveldb/leveldb-1.14.0/db/write_batch.cc:75
#3 0x00007ffff4985769 in leveldb::WriteBatchInternal::InsertInto (b=0x5698930,
memtable=0x7fffe8003760) at ../deps/leveldb/leveldb-1.14.0/db/write_batch.cc:133
#4 0x00007ffff4965f51 in leveldb::DBImpl::Write (this=0x7fffe80008f0, options=...,
my_batch=0x5698930) at ../deps/leveldb/leveldb-1.14.0/db/db_impl.cc:1192
#5 0x00007ffff494f3b0 in leveldown::Database::WriteBatchToDatabase (this=0xe9e5e0,
options=0x5698990, batch=0x5698930) at ../src/database.cc:74
#6 0x00007ffff4948c06 in leveldown::Batch::Write (this=0x6488a70) at ../src/batch.cc:30
#7 0x00007ffff494d81c in leveldown::BatchWriteWorker::Execute (this=0x64acc20)
at ../src/batch_async.cc:25
#8 0x00007ffff494b748 in NanAsyncExecute (req=0x64acc28) at ../node_modules/nan/nan.h:627
#9 0x00000000006ddebd in worker (arg=arg@entry=0x0) at ../deps/uv/src/unix/threadpool.c:74
#10 0x00000000006d3a0f in uv__thread_start (ctx_v=<optimised out>) at ../deps/uv/src/uv-common.c:322
#11 0x00007ffff6f9af8e in start_thread (arg=0x7ffff6bca700) at pthread_create.c:311
#12 0x00007ffff6cc4e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment