datadir path corruption while starting bitcoin-qt #12748

issue dooglus openend this issue on March 21, 2018
  1. dooglus commented at 6:01 pm on March 21, 2018: contributor

    Built commit 90a0aed51194ad82da8e011b96f9561c685e40b7. It has been working fine until now, when it failed to start up. I use an alias to run it:

    alias btcd='~/Programs/bitcoin.git/src/qt/bitcoin-qt      -datadir=/home/chris/.bitcoin-prune'
    

    When I ran it, I saw this:

    chris@chris:~$ btcd
    ICE default IO error handler doing an exit(), pid = 17342, errno = 32
    bitcoin-qt: /usr/include/boost/signals2/detail/lwm_pthreads.hpp:60: void boost::signals2::mutex::lock(): 
    Assertion `pthread_mutex_lock(&m_) == 0' failed.
    Aborted
    chris@chris:~$ 
    

    The debug.log file didn’t have much in it, just the following:

    2018-03-21 13:35:41 Bitcoin Core version v0.16.99.0-fbaac219d-dirty (release build)
    2018-03-21 13:35:41 InitParameterInteraction: parameter interaction: -whitelistforcerelay=1 -> setting -whitelistrelay=1
    2018-03-21 13:43:10 Assuming ancestors of block 0000000000000000005214481d2d96f898e3d5416e43359c145944a909d242e0 have valid signatures.
    2018-03-21 13:43:10 Setting nMinimumChainWork=000000000000000000000000000000000000000000f91c579d57cad4bc5278cc
    2018-03-21 13:43:10 Prune configured to target 600600MiB on disk for block and undo files.
    2018-03-21 13:43:10 Using the 'sse4' SHA256 implementation
    2018-03-21 13:43:10 Using RdRand as an additional entropy source
    2018-03-21 13:43:10 Default data directory /home/chris/.bitcoin
    2018-03-21 13:43:10 Using data directory `�Mj�Uris/.bitcoin-prune
    2018-03-21 13:43:10 Using config file /home/chris/�8cj�Uris/.bitcoin-prune/bitcoin.conf
    2018-03-21 13:43:10 Using at most 125 automatic connections (1024 file descriptors available)
    2018-03-21 13:43:10 Warning: relative datadir option 'Psmj�Uris/.bitcoin-prune' specified, which will be interpreted relative to the current working directory '/home/chris'. This is fragile, because if bitcoin is started in the future from a different location, it will be unable to locate the current data files. There could also be data loss if bitcoin is started while in a temporary directory.
    2018-03-21 13:43:10 Using 16 MiB out of 32/2 requested for signature cache, able to store 524288 elements
    2018-03-21 13:43:10 Using 16 MiB out of 32/2 requested for script execution cache, able to store 524288 elements
    2018-03-21 13:43:10 Using 2 threads for script verification
    2018-03-21 13:43:10 scheduler thread start
    2018-03-21 13:43:10 Using wallet directory `�Mj�Uris/.bitcoin-prune
    

    Note the corrupted datadir paths. It contains some non-ASCII characters, so I’m not sure how best to preserve them. Here’s a screenshot as rendered in GNU Emacs:

    screenshot_2018-03-21_10-56-42

    and here’s the file itself:

    debug.log

    I was running wipe to wipe an external hard drive at the same time, which is the only thing I can think of that was different than usual. The command I was running was sudo wipe -q -Q 1 -kD /dev/sdb. Nothing from /dev/sdb was mounted at the time, so it shouldn’t have caused this, but I figured I should mention it.

    Edit: oh, another thing that was different than usual was that I locked the laptop screen immediately after hitting return to the btcd command. Usually I would wait and watch the UI appear.

  2. meshcollider commented at 4:46 am on March 22, 2018: contributor
    Was it a once-off or does it happen every time now? If it happens every time, does running it directly without the alias work ok? And is it only Qt, or does bitcoind also have the same issue?
  3. dooglus commented at 5:05 am on March 22, 2018: contributor

    It was a one-off. I’ve never seen it before or since.

    It has been suggested to me on another issue here that perhaps my computer has some hardware fault.

  4. meshcollider commented at 6:07 am on March 22, 2018: contributor
    Yeah its likely not a bug with bitcoin in that case, I think this can be safely closed :)
  5. meshcollider added the label Linux/Unix on Mar 22, 2018
  6. MarcoFalke closed this on Mar 22, 2018

  7. MarcoFalke added the label Data corruption on Mar 22, 2018
  8. 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: 2024-12-03 15:12 UTC

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