Startup crash on 0.15.0.1 macOS #11409

issue LordAndrei openend this issue on September 27, 2017
  1. LordAndrei commented at 2:14 pm on September 27, 2017: none

    This issue tracker is only for technical issues related to bitcoin-core.

    General bitcoin questions and/or support requests and are best directed to the Bitcoin StackExchange.

    For reporting security issues, please read instructions at https://bitcoincore.org/en/contact/.

    Describe the issue

    Crash on startup on 0.15.0.1

    Can you reliably reproduce the issue?

    Yes

    If so, please list the steps to reproduce below:

    1. open App
    2. app verifies chain
    3. app crashes

    Expected behaviour

    App should not crash

    Actual behaviour

    App crashes

    Screenshots.

    n/a

    What version of bitcoin-core are you using?

    0.15.0.1 Distibution

    Machine specs:

    • OS: macOS 10.13 (17A362a)
    • CPU: 2.9 GHz Intel Core i7
    • RAM: 16 GB 2133 MHz LPDDR3
    • Disk size: 1T
    • Disk Type (HD/SDD): SDD

    Any extra information that might be useful in the debugging process.

    This is normally the contents of a debug.log or config.log file. Raw text or a link to a pastebin type site are preferred.

     0Process:               Bitcoin-Qt [1416]
     1Path:                  /Applications/Bitcoin-Qt.app/Contents/MacOS/Bitcoin-Qt
     2Identifier:            org.bitcoinfoundation.Bitcoin-Qt
     3Version:               0.15.0 (0.15.0)
     4Code Type:             X86-64 (Native)
     5Parent Process:        ??? [1]
     6Responsible:           Bitcoin-Qt [1416]
     7User ID:               501
     8
     9Date/Time:             2017-09-27 10:06:14.239 -0400
    10OS Version:            Mac OS X 10.13 (17A362a)
    11Report Version:        12
    12Bridge OS Version:     3.0 (14Y661)
    13Anonymous UUID:        DBCBA46A-1D23-05D3-35EB-31ADED1E0B59
    14
    15Crashed Thread:        10  QThread
    16
    17Exception Type:        EXC_CRASH (SIGABRT)
    18Exception Codes:       0x0000000000000000, 0x0000000000000000
    19Exception Note:        EXC_CORPSE_NOTIFY
    20
    21Thread 10 Crashed:: QThread
    220   libsystem_kernel.dylib        	0x00007fff609a7fce __pthread_kill + 10
    231   libsystem_pthread.dylib       	0x00007fff60ae5150 pthread_kill + 333
    242   libsystem_c.dylib             	0x00007fff6090432a abort + 127
    253   libsystem_c.dylib             	0x00007fff608cc380 __assert_rtn + 320
    264   org.bitcoinfoundation.Bitcoin-Qt	0x000000010545e202 0x105308000 + 1401346
    275   org.bitcoinfoundation.Bitcoin-Qt	0x000000010545e01e 0x105308000 + 1400862
    286   org.bitcoinfoundation.Bitcoin-Qt	0x000000010545c2ef 0x105308000 + 1393391
    297   org.bitcoinfoundation.Bitcoin-Qt	0x00000001054d66ba 0x105308000 + 1894074
    308   org.bitcoinfoundation.Bitcoin-Qt	0x00000001054dde98 0x105308000 + 1924760
    319   org.bitcoinfoundation.Bitcoin-Qt	0x0000000105497372 0x105308000 + 1635186
    3210  org.bitcoinfoundation.Bitcoin-Qt	0x000000010531da30 0x105308000 + 88624
    3311  org.bitcoinfoundation.Bitcoin-Qt	0x000000010609ccea 0x105308000 + 14241002
    3412  org.bitcoinfoundation.Bitcoin-Qt	0x000000010597559e 0x105308000 + 6739358
    3513  org.bitcoinfoundation.Bitcoin-Qt	0x000000010597725b 0x105308000 + 6746715
    3614  org.bitcoinfoundation.Bitcoin-Qt	0x00000001060815e4 0x105308000 + 14128612
    3715  org.bitcoinfoundation.Bitcoin-Qt	0x00000001060822d4 0x105308000 + 14131924
    3816  org.bitcoinfoundation.Bitcoin-Qt	0x00000001060bbe79 0x105308000 + 14368377
    3917  org.bitcoinfoundation.Bitcoin-Qt	0x000000010607df31 0x105308000 + 14114609
    4018  org.bitcoinfoundation.Bitcoin-Qt	0x0000000105f3277e 0x105308000 + 12756862
    4119  org.bitcoinfoundation.Bitcoin-Qt	0x0000000105f3557a 0x105308000 + 12768634
    4220  libsystem_pthread.dylib       	0x00007fff60ae26c1 _pthread_body + 340
    4321  libsystem_pthread.dylib       	0x00007fff60ae256d _pthread_start + 377
    4422  libsystem_pthread.dylib       	0x00007fff60ae1c5d thread_start + 13
    
  2. fanquake added the label MacOSX on Sep 27, 2017
  3. LordAndrei commented at 2:22 pm on September 27, 2017: none

    Additional from debug.log

     02017-09-27 14:06:13 No coin database inconsistencies in last 7 blocks (15228 transactions)
     12017-09-27 14:06:13  block index           11333ms
     22017-09-27 14:06:13 init message: Loading wallet...
     32017-09-27 14:06:13 nFileVersion = 150001
     42017-09-27 14:06:13 Keys: 1006 plaintext, 0 encrypted, 1006 w/ metadata, 1006 total
     52017-09-27 14:06:13  wallet                   49ms
     62017-09-27 14:06:13 setKeyPool.size() = 1000
     72017-09-27 14:06:13 mapWallet.size() = 37
     82017-09-27 14:06:13 mapAddressBook.size() = 5
     92017-09-27 14:06:13 mapBlockIndex.size() = 487187
    102017-09-27 14:06:13 nBestHeight = 487093
    112017-09-27 14:06:13 AddLocal([*Redacting local address*]:8333,1)
    122017-09-27 14:06:13 torcontrol thread start
    132017-09-27 14:06:13 Discover: IPv6 en0: *Redacting address*
    142017-09-27 14:06:13 AddLocal([*Redacting local address*]:8333,1)
    152017-09-27 14:06:13 Discover: IPv6 en0: *Redacting address*
    162017-09-27 14:06:13 Bound to [::]:8333
    172017-09-27 14:06:13 Bound to 0.0.0.0:8333
    182017-09-27 14:06:13 init message: Loading P2P addresses...
    192017-09-27 14:06:14 ERROR: DeserializeDB: Checksum mismatch, data corrupted
    202017-09-27 14:06:14 Invalid or missing peers.dat; recreating
    
  4. TheBlueMatt commented at 5:09 pm on September 27, 2017: member
    Can you run Bitcoin-Qt from a terminal and reproduce the issue? This should provide more info to help debug the issue. ie open Terminal and type /Path/To/Bitcoin-Qt.app/Contents/MacOS/Bitcoin-Qt
  5. LordAndrei commented at 5:14 pm on September 27, 2017: none
    0Assertion failed: (nIds != nNew), function Serialize, file ./addrman.h, line 320.
    1Abort trap: 6
    
  6. theuni commented at 6:29 pm on September 27, 2017: member

    ping @instagibbs. I remember in SF you had a corrupt addrdb causing a crash. Do you remember if yours was asserting here as well?

    Edit: I remember now, we looked at it. The addrman.Clear() in the case of a load failure isn’t enough. Did you look any further into what else needs to be cleared?

  7. TheBlueMatt commented at 6:44 pm on September 27, 2017: member
    @LordAndrei can you upload your peers.dat from your datadir somewhere? It does seem weird that this would cause a crash.
  8. LordAndrei commented at 8:52 pm on September 27, 2017: none
  9. instagibbs commented at 9:02 pm on September 27, 2017: member
    @theuni similar assert but I don’t think the same one? Can’t recall actually.
  10. instagibbs commented at 9:03 pm on September 27, 2017: member
    actually it’s the same line: https://github.com/bitcoin/bitcoin/pull/11252
  11. theuni commented at 9:28 pm on September 27, 2017: member

    @instagibbs Ah, that explains why I couldn’t find anything else to clear! Thanks for fixing. @LordAndrei This will be fixed in an upcoming version. A quick fix for you, if you’re still crashing, is to simply delete your peers.dat.

    Closing this and marking #11252 for backport.

  12. theuni closed this on Sep 27, 2017

  13. TheBlueMatt commented at 9:33 pm on September 27, 2017: member
    Tested the attached peers.dat, indeed it fails on 0.15.0.1 and is cleared properly on master.
  14. LordAndrei commented at 9:36 pm on September 27, 2017: none
    Removing peers.dat was a good workaround. Muchly appreciated for everyone’s help.
  15. MarcoFalke 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: 2024-10-05 01:12 UTC

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