mac bitcoind exits with Segmentation fault: 11. #12318

issue giancarloGiuffra opened this issue on January 31, 2018
  1. giancarloGiuffra commented at 10:23 PM on January 31, 2018: none

    I built v0.15.0 on my mac (Mac OS X 10.13.1 (17B1003)) and run the tests with make check. All good. I then started bitcoind on mainnet which after a bit started to receive blocks. To stop the process I used the command bitcoin-cli stop. Unfortunately bitcoind exited with a Segmentation fault: 11.

    I had a look at ~/Library/Logs/DiagnosticReports and found several ones. They all look the same.

    Process:               bitcoind [968]
    Path:                  /usr/local/bin/bitcoind
    Identifier:            bitcoind
    Version:               0
    Code Type:             X86-64 (Native)
    Parent Process:        bash [852]
    Responsible:           bitcoind [968]
    User ID:               501
    
    Date/Time:             2018-01-31 22:42:34.871 +0100
    OS Version:            Mac OS X 10.13.1 (17B1003)
    Report Version:        12
    Anonymous UUID:        5EA74E29-C707-070B-1D60-3F9028225B29
    
    
    Time Awake Since Boot: 890 seconds
    
    System Integrity Protection: enabled
    
    Crashed Thread:        0  Dispatch queue: com.apple.main-thread
    
    Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000101
    Exception Note:        EXC_CORPSE_NOTIFY
    
    Termination Signal:    Segmentation fault: 11
    Termination Reason:    Namespace SIGNAL, Code 0xb
    Terminating Process:   exc handler [0]
    
    VM Regions Near 0x101:
    --> 
        __TEXT                 0000000103fc2000-0000000104457000 [ 4692K] r-x/rwx SM=COW  /usr/local/bin/bitcoind
    
    

    and the thread that fails:

    Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
    0   bitcoind                      	0x0000000104307460 leveldb::InternalFilterPolicy::CreateFilter(leveldb::Slice const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*) const + 80 (dbformat.cc:114)
    1   bitcoind                      	0x0000000104321696 leveldb::FilterBlockBuilder::GenerateFilter() + 374 (vector:369)
    2   bitcoind                      	0x00000001043214c8 leveldb::FilterBlockBuilder::StartBlock(unsigned long long) + 72 (vector:642)
    3   bitcoind                      	0x000000010432404d leveldb::TableBuilder::Flush() + 317 (table_builder.cc:135)
    4   bitcoind                      	0x0000000104323e6e leveldb::TableBuilder::Add(leveldb::Slice const&, leveldb::Slice const&) + 510 (table_builder.cc:119)
    5   bitcoind                      	0x0000000104306601 leveldb::BuildTable(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, leveldb::Env*, leveldb::Options const&, leveldb::TableCache*, leveldb::Iterator*, leveldb::FileMetaData*) + 401 (builder.cc:37)
    6   bitcoind                      	0x000000010430a0ea leveldb::DBImpl::WriteLevel0Table(leveldb::MemTable*, leveldb::VersionEdit*, leveldb::Version*) + 314 (status.h:104)
    7   bitcoind                      	0x00000001043099a5 leveldb::DBImpl::RecoverLogFile(unsigned long long, bool, bool*, leveldb::VersionEdit*, unsigned long long*) + 901 (status.h:104)
    8   bitcoind                      	0x00000001043093cc leveldb::DBImpl::Recover(leveldb::VersionEdit*, bool*) + 1756 (status.h:104)
    9   bitcoind                      	0x000000010430ecb2 leveldb::DB::Open(leveldb::Options const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, leveldb::DB**) + 146 (db_impl.cc:1500)
    10  bitcoind                      	0x000000010402a546 CDBWrapper::CDBWrapper(boost::filesystem::path const&, unsigned long, bool, bool, bool) + 838 (dbwrapper.cpp:115)
    11  bitcoind                      	0x000000010413f94c CBlockTreeDB::CBlockTreeDB(unsigned long, bool, bool) + 268 (txdb.cpp:150)
    12  bitcoind                      	0x000000010400c0ae AppInitMain(boost::thread_group&, CScheduler&) + 8366 (init.cpp:1403)
    13  bitcoind                      	0x0000000103fc6f4b AppInit(int, char**) + 3083 (bitcoind.cpp:176)
    14  bitcoind                      	0x0000000103fc7782 main + 50 (bitcoind.cpp:195)
    15  libdyld.dylib                 	0x00007fff59b4c145 start + 1
    

    Thanks for any help.

  2. fanquake added the label MacOSX on Jan 31, 2018
  3. Sjors commented at 3:31 PM on February 10, 2018: member

    Are you seeing this with the latest release v0.15.1 as well?

  4. eklitzke commented at 7:07 AM on March 10, 2018: contributor

    This is not really enough information to diagnose your issue as you have not provided a core dump. Are you still seeing crashes? If not, can you close this issue?

  5. MarcoFalke closed this on Mar 11, 2018

  6. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-15 15:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me