Recursive mutex error at close up with an unlocked encrypted wallet #2704

issue rdponticelli opened this issue on May 29, 2013
  1. rdponticelli commented at 1:17 AM on May 29, 2013: contributor

    I've seen this error twice at close up, after importing/exporting keys on wallets:

    bitcoin-qt: /usr/include/boost/thread/pthread/recursive_mutex.hpp:67: void boost::recursive_mutex::lock(): Assertion `!pthread_mutex_lock(&m)' failed. Aborted

  2. laanwj commented at 5:39 AM on May 31, 2013: member

    Uh oh, likely another shutdown order issue.

  3. rdponticelli commented at 4:20 PM on June 8, 2013: contributor

    Looks like this is happening when you close the program with an encrypted wallet which remains unlocked.

    The issue is reproducible.

  4. rdponticelli commented at 4:21 PM on June 8, 2013: contributor

    Oh, and it also happens on v0.8.2-beta final.

  5. laanwj commented at 3:13 PM on November 12, 2013: member

    There seems to be a few issues regarding wallet related pthread_mutex_lock( assertions, though not obvious duplicates: #2472, #2375, #1663

  6. ghost assigned laanwj on Jan 17, 2014
  7. laanwj cross-referenced this on Jan 17, 2014 from issue "No working boost sleep implementation" libpthread required by librt by fryx
  8. laanwj commented at 4:15 PM on January 17, 2014: member

    Should be solved in master, as we use boost::asio deadline timers to keep track of re-locking the wallet. Also tested this and it works fine.

  9. laanwj closed this on Jan 17, 2014

  10. laanwj cross-referenced this on May 28, 2014 from issue "encryptwallet" RPC throws exception by jgarzik
  11. sidhujag cross-referenced this on Jul 8, 2014 from issue devcoind Debian 64 bit crash by belovachap
  12. RdeWilde cross-referenced this on Dec 26, 2016 from issue Assertion `!pthread_mutex_lock(&m)' failed. by RdeWilde
  13. shane-kerr cross-referenced this on Feb 11, 2018 from issue Assertion failure on shutdown by shane-kerr
  14. bitcoin 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: 2026-05-20 06:55 UTC