"Segmentation Fault: 11" on MacOS when "-rescan" large (1 GB) wallet.dat #20604

issue decryp2kanon opened this issue on December 8, 2020
  1. decryp2kanon commented at 5:57 PM on December 8, 2020: contributor

    Its a custom testnet based on v0.21.0rc1 But I couldn't test on real bitcoin, because I do not have such large BTC wallet.dat. I may test on regtest soon.

    • Reproduce Run bitcoind with -rescan large wallet.dat (~1 GB mining wallet).

    image

    Strange thing is Linux64 is just fine, but MacOS and Win10 this error.

    • MacOS
    Segmentation Fault: 11
    
    • Win10: Similar behavier like MacOS, but daemon just killed. No Segfault or any error log.

    • FYI: Win10 2cpu 4096ram MacOS (High Sierra 10.13.3) 2cpu 4096ram (Macbook Air 13 Inch 2011)

    • Related Issues bitcoin/bitcoin#4607 bitcoin/bitcoin#12318 bitcoin/bitcoin#9816

  2. MarcoFalke commented at 6:09 PM on December 8, 2020: member

    So this is self-compiled?

    Is it an OOM?

  3. decryp2kanon renamed this:
    "Segmentation Fault: 11" on MacOS and Win10 when "-rescan"
    "Segmentation Fault: 11" on MacOS when "-rescan"
    on Dec 8, 2020
  4. decryp2kanon commented at 6:11 PM on December 8, 2020: contributor

    So this is self-compiled?

    Its own gitian release

  5. decryp2kanon commented at 6:14 PM on December 8, 2020: contributor

    Is it an OOM?

    Possibly. But I do not see Out-Of-Memory message. Win10 is 2cpu4096ram. MacOS is 2cpu4096ram (Macbook Air 2011)

  6. sipa commented at 6:16 PM on December 8, 2020: member

    I'm surprised loading a 1 GB wallet file works at all with that amount of memory...

  7. MarcoFalke added the label Questions and Help on Dec 8, 2020
  8. decryp2kanon commented at 6:19 PM on December 8, 2020: contributor

    I'm surprised loading a 1 GB wallet file works at all with that amount of memory...

    Do you mean, is this just OOM?

  9. sipa commented at 6:21 PM on December 8, 2020: member

    Do you mean, is this just OOM?

    Yes, I assume so. Wallets are loaded entirely into memory, and the in-memory representation is often several times larger than the on-disk serialization.

  10. decryp2kanon commented at 6:24 PM on December 8, 2020: contributor

    often several times larger than the on-disk serialization.

    How much RAM do I need if I wanna load 1GB wallet.dat?

  11. decryp2kanon commented at 7:16 PM on December 8, 2020: contributor

    Since its not a bitcoin issue, anyway I closing this for now.

  12. decryp2kanon closed this on Dec 8, 2020

  13. decryp2kanon renamed this:
    "Segmentation Fault: 11" on MacOS when "-rescan"
    "Segmentation Fault: 11" on MacOS when "-rescan" large (1 GB) wallet.dat
    on Dec 8, 2020
  14. DrahtBot locked this on Feb 15, 2022

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-25 00:14 UTC

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