{"action":"created","issue":{"url":"https://api.github.com/repos/chrsmith/leveldb/issues/9","labels_url":"https://api.github.com/repos/chrsmith/leveldb/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/chrsmith/leveldb/issues/9/comments","events_url":"https://api.github.com/repos/chrsmith/leveldb/issues/9/events","html_url":"https://github.com/chrsmith/leveldb/issues/9","id":58933175,"number":9,"title":"corruption_test fails","user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chrsmith/leveldb/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/leveldb/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/leveldb/labels/Type-Defect","name":"Type-Defect","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-25T16:58:49Z","updated_at":"2015-02-25T16:58:50Z","closed_at":"2015-02-25T16:58:49Z","body":"```\nHi. I have some problems installing leveldb. \n\nI run make check and corruption_test test fails. Running it under gdb i get\n\n(gdb) run\nStarting program: /home/spyros/src/leveldb/corruption_test \n[Thread debugging using libthread_db enabled]\n==== Test CorruptionTest.Recovery\n\nProgram received signal SIGSEGV, Segmentation fault.\n0x0805d4b2 in leveldb::SkipList<char const*, \nleveldb::MemTable::KeyComparator>::FindGreaterOrEqual(char const* const&, \nleveldb::SkipList<char const*, leveldb::MemTable::KeyComparator>::Node**) const \n()\n(gdb) bt\n#0  0x0805d4b2 in leveldb::SkipList<char const*, \nleveldb::MemTable::KeyComparator>::FindGreaterOrEqual(char const* const&, \nleveldb::SkipList<char const*, leveldb::MemTable::KeyComparator>::Node**) const \n()\n#1  0x0805d5bc in leveldb::SkipList<char const*, \nleveldb::MemTable::KeyComparator>::Insert(char const* const&) ()\n#2  0x0805cf2a in leveldb::MemTable::Add(unsigned long long, \nleveldb::ValueType, leveldb::Slice const&, leveldb::Slice const&) ()\n#3  0x08069779 in leveldb::(anonymous \nnamespace)::MemTableInserter::Put(leveldb::Slice const&, leveldb::Slice const&) \n()\n#4  0x08069a9d in leveldb::WriteBatch::Iterate(leveldb::WriteBatch::Handler*) \nconst ()\n#5  0x08069b40 in leveldb::WriteBatchInternal::InsertInto(leveldb::WriteBatch \nconst*, leveldb::MemTable*) ()\n#6  0x0805685e in leveldb::DBImpl::Write(leveldb::WriteOptions const&, \nleveldb::WriteBatch*) ()\n#7  0x0804f090 in leveldb::CorruptionTest::Build(int) ()\n#8  0x0804cd6a in leveldb::_Test_Recovery::_Run() ()\n#9  0x0805053a in leveldb::_Test_Recovery::_RunIt() ()\n#10 0x08074b4e in leveldb::test::RunAllTests() ()\n#11 0x0804a84b in main ()\n\n\nI get an analogous error if i run this minimal snippet\n\nint\nmain(int argc, char* argv[])\n{\n\tleveldb::DB* db;\n\tleveldb::Options options;\n\toptions.create_if_missing = true;\n\tleveldb::Status s = leveldb::DB::Open(options, \"/home/spyros/src/async/leveldb/keystore\", &db);\n\tleveldb::WriteOptions wopts;\n\twopts.sync = true;\n\tif (s.ok()) s = db->Put(wopts, \"Hello\", \"World\");\n\tstd::string val;\n\tif (s.ok()) s = db->Get(leveldb::ReadOptions(), \"Hello\", &val);\n\tif (s.ok())\n\t\tstd::cerr << \"Value of 'Hello' is \" << val << std::endl;\n\telse\n\t\tstd::cerr << \"DB error: \" << s.ToString() << std::endl;\n\tdelete db;\n}\n\nthe gdb output in this case is\n(gdb) run\nStarting program: /home/spyros/src/async/minimal \n[Thread debugging using libthread_db enabled]\n\nProgram received signal SIGSEGV, Segmentation fault.\n0x08056cd2 in leveldb::SkipList<char const*, \nleveldb::MemTable::KeyComparator>::FindGreaterOrEqual(char const* const&, \nleveldb::SkipList<char const*, leveldb::MemTable::KeyComparator>::Node**) const \n()\n(gdb) bt\n#0  0x08056cd2 in leveldb::SkipList<char const*, \nleveldb::MemTable::KeyComparator>::FindGreaterOrEqual(char const* const&, \nleveldb::SkipList<char const*, leveldb::MemTable::KeyComparator>::Node**) const \n()\n#1  0x08056d9e in leveldb::MemTableIterator::Seek(leveldb::Slice const&) ()\n#2  0x08053da1 in leveldb::(anonymous namespace)::DBIter::Seek(leveldb::Slice \nconst&) ()\n#3  0x0804df82 in leveldb::DBImpl::Get(leveldb::ReadOptions const&, \nleveldb::Slice const&, std::string*) ()\n#4  0x0804a4d3 in main ()\n\nI use ubuntu 10.04 LTS 32-bit gcc 4.4.3 and gdb 7.1, leveldb revision 31\n\nAny suggestions for this setup?\n\nThank you\nSpyros\n \n\n\n```\n\n-----\nOriginal issue reported on code.google.com by `winwas...@gmail.com` on 19 Jun 2011 at 9:56"},"comment":{"url":"https://api.github.com/repos/chrsmith/leveldb/issues/comments/76001580","html_url":"https://github.com/chrsmith/leveldb/issues/9#issuecomment-76001580","issue_url":"https://api.github.com/repos/chrsmith/leveldb/issues/9","id":76001580,"user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"created_at":"2015-02-25T16:58:50Z","updated_at":"2015-02-25T16:58:50Z","body":"```\nThis issue was closed by revision ed154f6dc4f5.\n```\n\n-----\nOriginal comment by `ga...@google.com` on 1 Sep 2011 at 8:12"}}