Bitcoin Forum
February 23, 2019, 01:54:57 AM *
News: Latest Bitcoin Core release: 0.17.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Exception: 9key_error error  (Read 11111 times)
bitcoin2paysafe
Newbie
*
Offline Offline

Activity: 12
Merit: 0


View Profile
May 14, 2010, 06:07:50 PM
Last edit: May 14, 2010, 06:38:38 PM by bitcoin2paysafe
 #1

Today, I've got an error message:

Exception: 9key_error
CKey::CKey(); EC:KEY_new_by_curve_name failed
bitcoin in ThreadBitcoinMiner()

Console:

terminate called after throwing an instance of 'key_error'
  what():  CKey::CKey() : EC_KEY_new_by_curve_name failed
Aborted


I hope that isn't a buffer overflow. Have anybody this error message too?

OS: linux
1550886897
Hero Member
*
Offline Offline

Posts: 1550886897

View Profile Personal Message (Offline)

Ignore
1550886897
Reply with quote  #2

1550886897
Report to moderator
1550886897
Hero Member
*
Offline Offline

Posts: 1550886897

View Profile Personal Message (Offline)

Ignore
1550886897
Reply with quote  #2

1550886897
Report to moderator
Even in the event that an attacker gains more than 50% of the network's computational power, only transactions sent by the attacker could be reversed or double-spent. The network would not be destroyed.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1550886897
Hero Member
*
Offline Offline

Posts: 1550886897

View Profile Personal Message (Offline)

Ignore
1550886897
Reply with quote  #2

1550886897
Report to moderator
satoshi
Founder
Sr. Member
*
Offline Offline

Activity: 364
Merit: 1946


View Profile
May 16, 2010, 10:53:59 PM
 #2

Does it happen every time you run it, or just happened once at some random time?

I've never seen that fail before.  It's a call to OpenSSL that I assumed would never fail, but I put an error check there just in case.  I can't imagine how it would fail.  Out of memory maybe.

The code is:

key.h:
    EC_KEY* pkey;

        pkey = EC_KEY_new_by_curve_name(NID_secp256k1);
        if (pkey == NULL)
            throw key_error("CKey::CKey() : EC_KEY_new_by_curve_name failed");

NID_secp256k1 is a constant.
Pages: [1]
  Print  
 
Jump to:  

Bitcointalk.org is not available or authorized for sale. Do not believe any fake listings.
Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!