Skip to content

Instantly share code, notes, and snippets.

@Sjors

Sjors/db crash Secret

Last active April 15, 2019 10:35
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 Sjors/de8d359d87cd0fecc303b989b5a27cc5 to your computer and use it in GitHub Desktop.
Save Sjors/de8d359d87cd0fecc303b989b5a27cc5 to your computer and use it in GitHub Desktop.
berkeley-db@4: stable 4.8.30 (bottled) [keg-only]
Loading wallet "A":
2019-04-15T10:28:15Z init message: Verifying wallet(s)...
2019-04-15T10:28:15Z Using BerkeleyDB version Berkeley DB 4.8.30: (April 9, 2010)
2019-04-15T10:28:15Z Using wallet /Users/bitcoin/Library/Application Support/Bitcoin/testnet3/wallets/A
2019-04-15T10:28:15Z BerkeleyEnvironment::Open: LogDir=/Users/bitcoin/Library/Application Support/Bitcoin/testnet3/wallets/A/database ErrorFile=/Users/bitcoin/Library/Application Support/Bitcoin/testnet3/wallets/A/db.log
Process 87520 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x10000)
frame #0: 0x0000000102445d8e libdb_cxx-4.8.dylib`__lock_get_lk_max_locks + 53
libdb_cxx-4.8.dylib`__lock_get_lk_max_locks:
-> 0x102445d8e <+53>: movl %eax, (%rsi)
0x102445d90 <+55>: xorl %eax, %eax
0x102445d92 <+57>: popq %rbp
0x102445d93 <+58>: retq
Target 0: (bitcoind) stopped.
(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x10000)
* frame #0: 0x0000000102445d8e libdb_cxx-4.8.dylib`__lock_get_lk_max_locks + 53
frame #1: 0x00000001023c4afa libdb_cxx-4.8.dylib`DbEnv::get_lk_max_locks(unsigned int*) + 46
frame #2: 0x0000000100458dbf bitcoind`BerkeleyEnvironment::Open(this=<unavailable>, retry=<unavailable>) at db.cpp:195:12 [opt]
frame #3: 0x000000010045abab bitcoind`BerkeleyBatch::VerifyEnvironment(file_path=<unavailable>, errorStr="") at db.cpp:417:15 [opt]
frame #4: 0x00000001004fb295 bitcoind`CWallet::Verify(chain=0x0000000102a02990, location=0x00007ffeefbfed50, salvage_wallet=false, error_string="", warning_string=<unavailable>) at wallet.cpp:3972:14 [opt]
frame #5: 0x0000000100477628 bitcoind`VerifyWallets(chain=0x0000000102a02990, wallet_files=<unavailable>) at load.cpp:56:31 [opt]
frame #6: 0x00000001000727b9 bitcoind`AppInitMain(interfaces=<unavailable>) at init.cpp:1321:22 [opt]
frame #7: 0x0000000100004592 bitcoind`AppInit(argc=<unavailable>, argv=0x00007ffeefbff418) at bitcoind.cpp:171:16 [opt]
frame #8: 0x0000000100004042 bitcoind`main(argc=<unavailable>, argv=<unavailable>) at bitcoind.cpp:201:13 [opt]
frame #9: 0x00007fff7edfc3d5 libdyld.dylib`start + 1
frame #10: 0x00007fff7edfc3d5 libdyld.dylib`start + 1
(lldb)
Creating a new wallet via RPC "src/bitcoin-cli createwallet crash"
2019-04-15T10:32:31Z dnsseed thread exit
2019-04-15T10:32:39Z Using BerkeleyDB version Berkeley DB 4.8.30: (April 9, 2010)
2019-04-15T10:32:39Z Using wallet /Users/bitcoin/Library/Application Support/Bitcoin/testnet3/wallets/crash
2019-04-15T10:32:39Z BerkeleyEnvironment::Open: LogDir=/Users/bitcoin/Library/Application Support/Bitcoin/testnet3/wallets/crash/database ErrorFile=/Users/bitcoin/Library/Application Support/Bitcoin/testnet3/wallets/crash/db.log
Process 87861 stopped
* thread #8, name = 'bitcoin-httpworker', stop reason = EXC_BAD_ACCESS (code=1, address=0x10000)
frame #0: 0x0000000102445d8e libdb_cxx-4.8.dylib`__lock_get_lk_max_locks + 53
libdb_cxx-4.8.dylib`__lock_get_lk_max_locks:
-> 0x102445d8e <+53>: movl %eax, (%rsi)
0x102445d90 <+55>: xorl %eax, %eax
0x102445d92 <+57>: popq %rbp
0x102445d93 <+58>: retq
Target 0: (bitcoind) stopped.
(lldb) bt
* thread #8, name = 'bitcoin-httpworker', stop reason = EXC_BAD_ACCESS (code=1, address=0x10000)
* frame #0: 0x0000000102445d8e libdb_cxx-4.8.dylib`__lock_get_lk_max_locks + 53
frame #1: 0x00000001023c4afa libdb_cxx-4.8.dylib`DbEnv::get_lk_max_locks(unsigned int*) + 46
frame #2: 0x0000000100458dbf bitcoind`BerkeleyEnvironment::Open(this=<unavailable>, retry=<unavailable>) at db.cpp:195:12 [opt]
frame #3: 0x000000010045abab bitcoind`BerkeleyBatch::VerifyEnvironment(file_path=<unavailable>, errorStr="") at db.cpp:417:15 [opt]
frame #4: 0x00000001004fb295 bitcoind`CWallet::Verify(chain=0x0000000102902990, location=0x00007000053ad6f0, salvage_wallet=false, error_string="", warning_string=<unavailable>) at wallet.cpp:3972:14 [opt]
frame #5: 0x00000001004c44f3 bitcoind`createwallet(request=<unavailable>) at rpcwallet.cpp:2605:10 [opt]
frame #6: 0x00000001002483e8 bitcoind`CRPCCommand::CRPCCommand(this=<unavailable>, request=<unavailable>, result=0x00007000053addc0, (null)=<unavailable>)(JSONRPCRequest const&), std::initializer_list<char const*>)::'lambda'(JSONRPCRequest const&, UniValue&, bool)::operator()(JSONRPCRequest const&, UniValue&, bool) const at server.h:120:94 [opt]
frame #7: 0x00000001000653ac bitcoind`CChain::SetTip(this=<unavailable>, pindex=<unavailable>) at chain.cpp:17:12 [opt]
frame #8: 0x0000000100065296 bitcoind`CChain::SetTip(this=<unavailable>, pindex=<unavailable>) at chain.cpp:16:12 [opt]
frame #9: 0x00000001000653ac bitcoind`CChain::SetTip(this=<unavailable>, pindex=<unavailable>) at chain.cpp:17:12 [opt]
frame #10: 0x000000010024098b bitcoind`ExecuteCommand(command=0x00000001029dea10, request=0x00007000053adc98, result=0x00007000053addc0, last_handler=true) at server.cpp:487:20 [opt]
frame #11: 0x0000000100240617 bitcoind`CRPCTable::execute(this=<unavailable>, request=0x00007000053adc98) const at server.cpp:470:17 [opt]
frame #12: 0x0000000100030214 bitcoind`HTTPReq_JSONRPC(req=0x0000000138a09630, (null)=<unavailable>) at httprpc.cpp:192:40 [opt]
frame #13: 0x000000010003dc3e bitcoind`std::__1::function<bool (HTTPRequest*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::operator(this=<unavailable>, __arg=0x0000000138a09630, __arg=<unavailable>)(HTTPRequest*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const at functional:1913:12 [opt]
frame #14: 0x000000010004443b bitcoind`WorkQueue<HTTPClosure>::Run(this=0x0000000105001050) at httpserver.cpp:113:13 [opt]
frame #15: 0x00000001000479d3 bitcoind`void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (*)(WorkQueue<HTTPClosure>*), WorkQueue<HTTPClosure>*> >(__vp=<unavailable>) at thread:352:5 [opt]
frame #16: 0x00007fff7efea2eb libsystem_pthread.dylib`_pthread_body + 126
frame #17: 0x00007fff7efed249 libsystem_pthread.dylib`_pthread_start + 66
frame #18: 0x00007fff7efe940d libsystem_pthread.dylib`thread_start + 13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment