Author

Topic: Bitcoin client crashes when I enter in passphrase (Read 1015 times)

staff
Activity: 4284
Merit: 8808
#UPDATE#
so I have a backup from client 0.4 of my wallet.  I tried to decrypt my wallet but end up having the following error
EXCEPTION: 9key_error       
CKey::SetSecret() : secret must be 32 bytes       

You are entering the wrong password.   There was (now fixed in GIT but not in any released version) a somewhat tricky bug where a small fraction of incorrect passwords caused a crash rather than the wrong password notice.

The log message of "secret must be 32 bytes" is a very strong and clear indication of this.

Unfortunately this behavior seems to convince the afflicted user that they actually have the right password, making it unlikely that they'll keep trying and get the right not.

Here is the related pull request: https://github.com/bitcoin/bitcoin/pull/1039
newbie
Activity: 1
Merit: 0
I have the same issue.  Luckily my wallet has less than 1 BTC in it.


I encrypted a wallet in December.  Going back a month later I could not remember some details of my passphrase.  After ~50 guesses, I got the right phrase, but the client crashes when I enter it.  Any other phrase gives "The passphrase entered for the wallet decryption was incorrect."

New wallets can be encrypted and decrypted.  Trying to change the passphrase or send coins from the bad wallet causes bitcoin-qt to exit with the following output in the terminal:


Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.

Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.

************************
EXCEPTION: 9key_error       
CKey::SetSecret() : secret must be 32 bytes       
bitcoin in Runaway exception       

terminate called after throwing an instance of 'key_error'
  what():  CKey::SetSecret() : secret must be 32 bytes
Aborted


DB.log is empty.


debug.log is:

block 000000000a7156c0d74b
sending getdata: block 000000000c8e0d11d32d
sending getdata: block 00000000014ec472f6b8
sending getdata: block 000000000679e7163d94
...
SetBestChain: new best=0000000004f5d303bc40  height=67293  work=1569599215717594
ProcessBlock: ACCEPTED
received block 0000000000be5b4826e7


************************
EXCEPTION: 9key_error
CKey::SetSecret() : secret must be 32 bytes
bitcoin in Runaway exception

This is on ubuntu 11.10.

I tried bitcointools on a whim, but with no luck.  I also tried clearing the .bitcoin folder and reinstalling bitcoin-qt from ppa:bitcoin/bitcoin


Do wallets die often?  I am nervous now about encrypting my next wallet or using bitcoins for substantial amounts of money.
newbie
Activity: 43
Merit: 0
#UPDATE#
so I have a backup from client 0.4 of my wallet.  I tried to decrypt my wallet but end up having the following error
EXCEPTION: 9key_error       
CKey::SetSecret() : secret must be 32 bytes       
bitcoin in CMyApp::OnExceptionInMainLoop()


Anyone has any ideas???
newbie
Activity: 43
Merit: 0
So I decided to encrypt my wallet.dat file like a few months ago.  Problem I am having now is trying to change it to something else.  Every time I enter in the passphrase the bitcoin client crashes.

is there a command-line I can use to decrypt my wallet.dat file???

I know this should be at the tech support section but I can't open topic there. If possible can the mods move this over so I can get some help?

Thanks,
Jump to: