Socket select error Bad file descriptor (9) after upgrading to master #12285

issue Raulo opened this issue on January 28, 2018
  1. Raulo commented at 11:23 AM on January 28, 2018: none

    <!-- This issue tracker is only for technical issues related to Bitcoin Core. General bitcoin questions and/or support requests are best directed to the Bitcoin StackExchange at https://bitcoin.stackexchange.com. For reporting security issues, please read instructions at https://bitcoincore.org/en/contact/. If the node is "stuck" during sync or giving "block checksum mismatch" errors, please ensure your hardware is stable by running memtest and observe CPU temperature with a load-test tool such as linpack before creating an issue! -->

    <!-- Describe the issue -->

    After upgrading to master (9cf6393a4f) from 0.15.1 I get the following errors in debug.log

    2018-01-28 11:01:30 socket select error Bad file descriptor (9) 2018-01-28 11:01:30 socket recv error Bad file descriptor (9)

    probably after connecting to some of new peers (it's not clear from the log). These errors were not encountered in 0.15.1.

    These errors do not seem to impact the operation. I guess other peers work.

    <!--- What behavior did you expect? -->

    <!--- What was the actual behavior (provide screenshots if the issue is GUI-related)? -->

    <!--- How reliably can you reproduce the issue, what are the steps to do so? -->

    <!-- What version of Bitcoin Core are you using, where did you get it (website, self-compiled, etc)? -->

    Ubuntu 16.04. GCC (Ubuntu/Linaro 6.3.0-18ubuntu2~16.04) 6.3.0 20170519

    <!-- What type of machine are you observing the error on (OS/CPU and disk type)? -->

    <!-- 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. -->

  2. fanquake added the label Linux/Unix on Jan 28, 2018
  3. Raulo commented at 9:41 PM on January 30, 2018: none

    I'd like to follow up.

    The error has not reappeared even after going back and forth between 0.15.1 and 0.15.99 versions. It seems that the problem was rather caused by problems with reading some old-version files than with peer communication.

    Anybody wanting to debug this problem should make a backup of the 0.15.1 data structure because after rewriting the files, the problem is gone. I had the same error appearing after upgrading testnet so backing up testnet might be an easier path.

  4. laanwj commented at 2:27 PM on February 1, 2018: member

    Thanks for the report. looks like many people have this problem, I've created #12323 to track this issue.

  5. Raulo commented at 5:49 PM on February 1, 2018: none

    Yes, It's likely related to #12323. I got later also the same leveldb error.

    Unfortunately, I am unable to reproduce this error again. It is either non-deterministic or requires a certain blockchain state I cannot go back now.

  6. gmaxwell commented at 9:04 AM on February 4, 2018: contributor

    I think this can be closed now. Thanks for the report!

  7. MarcoFalke closed this on Feb 4, 2018

  8. MarcoFalke added this to the milestone 0.16.0 on Feb 4, 2018
  9. MarcoFalke locked this on Sep 8, 2021

Milestone
0.16.0


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-05-02 21:15 UTC

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