{"action":"created","issue":{"url":"https://api.github.com/repos/bitcoin/bitcoin/issues/14200","repository_url":"https://api.github.com/repos/bitcoin/bitcoin","labels_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/14200/labels{/name}","comments_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/14200/comments","events_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/14200/events","html_url":"https://github.com/bitcoin/bitcoin/issues/14200","id":359219799,"node_id":"MDU6SXNzdWUzNTkyMTk3OTk=","number":14200,"title":"bitcoind aborts with boost exception","user":{"login":"ashishchandr70","id":41921015,"node_id":"MDQ6VXNlcjQxOTIxMDE1","avatar_url":"https://avatars0.githubusercontent.com/u/41921015?v=4","gravatar_id":"","url":"https://api.github.com/users/ashishchandr70","html_url":"https://github.com/ashishchandr70","followers_url":"https://api.github.com/users/ashishchandr70/followers","following_url":"https://api.github.com/users/ashishchandr70/following{/other_user}","gists_url":"https://api.github.com/users/ashishchandr70/gists{/gist_id}","starred_url":"https://api.github.com/users/ashishchandr70/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashishchandr70/subscriptions","organizations_url":"https://api.github.com/users/ashishchandr70/orgs","repos_url":"https://api.github.com/users/ashishchandr70/repos","events_url":"https://api.github.com/users/ashishchandr70/events{/privacy}","received_events_url":"https://api.github.com/users/ashishchandr70/received_events","type":"User","site_admin":false},"labels":[{"id":64585,"node_id":"MDU6TGFiZWw2NDU4NQ==","url":"https://api.github.com/repos/bitcoin/bitcoin/labels/Bug","name":"Bug","color":"FBBAAB","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-11T20:53:57Z","updated_at":"2018-09-13T08:52:27Z","closed_at":null,"author_association":"NONE","body":"<!-- This issue tracker is only for technical issues related to Bitcoin Core.\r\n\r\nGeneral bitcoin questions and/or support requests are best directed to the Bitcoin StackExchange at https://bitcoin.stackexchange.com.\r\n\r\nFor reporting security issues, please read instructions at https://bitcoincore.org/en/contact/.\r\n\r\nIf 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! -->\r\n\r\n<!-- Describe the issue --> \r\nRunning bitcoind results in a Boost related exception and bitcoind aborts.\r\n\r\n<!--- What behavior did you expect? -->\r\nbitcoind to start and wait for further input\r\n\r\n<!--- What was the actual behavior (provide screenshots if the issue is GUI-related)? -->\r\n\r\nHere is the output of running the bitcoind command\r\n\r\n$ bitcoind -printtoconsole\r\n\r\n2018-09-11 20:39:22\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n2018-09-11 20:39:22 Bitcoin Core version v0.16.2 (release build)\r\n2018-09-11 20:39:22 InitParameterInteraction: parameter interaction: -whitelistforcerelay=1 -> setting -whitelistrelay=1\r\n2018-09-11 20:39:22 Assuming ancestors of block 0000000000000000005214481d2d96f898e3d5416e43359c145944a909d242e0 have valid signatures.\r\n2018-09-11 20:39:22 Setting nMinimumChainWork=000000000000000000000000000000000000000000f91c579d57cad4bc5278cc\r\n2018-09-11 20:39:22 Using the 'sse4' SHA256 implementation\r\n2018-09-11 20:39:22 Using RdRand as an additional entropy source\r\n2018-09-11 20:39:22 Default data directory /home/achandra/.bitcoin\r\n2018-09-11 20:39:22 Using data directory /home/achandra/.bitcoin\r\n2018-09-11 20:39:22 Using config file /home/achandra/.bitcoin/bitcoin.conf\r\n2018-09-11 20:39:22 Using at most 125 automatic connections (1024 file descriptors available)\r\n2018-09-11 20:39:22 Using 16 MiB out of 32/2 requested for signature cache, able to store 524288 elements\r\n2018-09-11 20:39:22 Using 16 MiB out of 32/2 requested for script execution cache, able to store 524288 elements\r\n2018-09-11 20:39:22 Using 2 threads for script verification\r\n2018-09-11 20:39:22 scheduler thread start\r\n2018-09-11 20:39:22 HTTP: creating work queue of depth 16\r\n2018-09-11 20:39:22 No rpcpassword set - using random cookie authentication\r\n2018-09-11 20:39:22 Generated RPC authentication cookie /home/achandra/.bitcoin/.cookie\r\n2018-09-11 20:39:22 HTTP: starting 4 worker threads\r\n2018-09-11 20:39:22 Using wallet directory /home/achandra/.bitcoin/wallets\r\n2018-09-11 20:39:22 init message: Verifying wallet(s)...\r\n2018-09-11 20:39:22 Using BerkeleyDB version Berkeley DB 4.8.30: (April  9, 2010)\r\n2018-09-11 20:39:22 Using wallet wallet.dat\r\n2018-09-11 20:39:22 CDBEnv::Open: LogDir=/home/achandra/.bitcoin/wallets/database ErrorFile=/home/achandra/.bitcoin/wallets/db.log\r\n2018-09-11 20:39:22 Cache configuration:\r\n2018-09-11 20:39:22\r\n\r\n************************\r\nEXCEPTION: N5boost16exception_detail10clone_implINS0_19error_info_injectorINS_15condition_errorEEEEE\r\nboost::condition_variable::do_wait_until failed in pthread_cond_timedwait: Invalid argument\r\nbitcoin in scheduler\r\n\r\n2018-09-11 20:39:22 * Using 2.0MiB for block index database\r\n\r\n\r\n************************\r\nEXCEPTION: N5boost16exception_detail10clone_implINS0_19error_info_injectorINS_15condition_errorEEEEE\r\nboost::condition_variable::do_wait_until failed in pthread_cond_timedwait: Invalid argument\r\nbitcoin in scheduler\r\n\r\n2018-09-11 20:39:22 * Using 8.0MiB for chain state database\r\nterminate called after throwing an instance of '2018-09-11 20:39:22 * Using 440.0MiB for in-memory UTXO set (plus up to 286.1MiB of unused mempool space)\r\nboost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::condition_error> >2018-09-11 20:39:22 init message: Loading block index...\r\n'\r\n2018-09-11 20:39:22 Opening LevelDB in /home/achandra/.bitcoin/blocks/index\r\n  what():  boost::condition_variable::do_wait_until failed in pthread_cond_timedwait: Invalid argument\r\nAborted (core dumped)\r\n\r\n<!--- How reliably can you reproduce the issue, what are the steps to do so? -->\r\n\r\nCan produce it very reliably. Just keep running the same command i.e. bitcoind -printtoconsole\r\n\r\n<!-- What version of Bitcoin Core are you using, where did you get it (website, self-compiled, etc)? -->\r\n\r\n$ bitcoind --version\r\nBitcoin Core Daemon version v0.16.2\r\nCopyright (C) 2009-2018 The Bitcoin Core developers\r\n\r\n<!-- What type of machine are you observing the error on (OS/CPU and disk type)? -->\r\n\r\nUbuntu 16.04 running on Windows 10. Intel i5 processor and 8 GB RAM.\r\nProcessor: Intel(R) Core(TM) i5-3340M CPU @ 2.70GHz, 2701 Mhz, 2 Core(s), 4 Logical Processor(s)\r\n\r\n\r\n<!-- Any extra information that might be useful in the debugging process. -->\r\n<!--- 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. -->\r\n"},"comment":{"url":"https://api.github.com/repos/bitcoin/bitcoin/issues/comments/420933354","html_url":"https://github.com/bitcoin/bitcoin/issues/14200#issuecomment-420933354","issue_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/14200","id":420933354,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMDkzMzM1NA==","user":{"login":"laanwj","id":126646,"node_id":"MDQ6VXNlcjEyNjY0Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/126646?v=4","gravatar_id":"","url":"https://api.github.com/users/laanwj","html_url":"https://github.com/laanwj","followers_url":"https://api.github.com/users/laanwj/followers","following_url":"https://api.github.com/users/laanwj/following{/other_user}","gists_url":"https://api.github.com/users/laanwj/gists{/gist_id}","starred_url":"https://api.github.com/users/laanwj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laanwj/subscriptions","organizations_url":"https://api.github.com/users/laanwj/orgs","repos_url":"https://api.github.com/users/laanwj/repos","events_url":"https://api.github.com/users/laanwj/events{/privacy}","received_events_url":"https://api.github.com/users/laanwj/received_events","type":"User","site_admin":false},"created_at":"2018-09-13T08:52:27Z","updated_at":"2018-09-13T08:52:27Z","author_association":"MEMBER","body":"this is strange; from the manpage of `pthread_cond_timedwait`:\r\n```\r\n       The pthread_cond_timedwait function returns the following error codes on error:\r\n              ETIMEDOUT\r\n                     the condition variable was not signaled until the timeout specified by abstime\r\n              EINTR  pthread_cond_timedwait was interrupted by a signal\r\n```\r\n\r\nIt's not supposed to ever return `EINVAL` (\"invalid argument\").\r\n\r\nAs you say you're running this on windows, my guess is that it has something to do with the WFL, emulating a POSIX function incorrectly.\r\n"}}
{"actor":{"display_login":"laanwj"}}