Bitcoin Forum
May 26, 2024, 05:35:29 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Python segmentation fault while generate key pairs  (Read 1942 times)
mrmaks (OP)
Newbie
*
Offline Offline

Activity: 13
Merit: 0


View Profile
February 23, 2014, 02:07:27 PM
 #1

Good day.

My bitcoin python script while exec this code cause Segmentation fault.
Time: random loop iteration (0 - 3 secs) after the script run

Code:
        ssl = ctypes.cdll.LoadLibrary (ctypes.util.find_library ('ssl'))
        while():
            ...
            priv_key = ssl.BN_bin2bn(secret, 32, ssl.BN_new())     // This function cause sig
            group = ssl.EC_KEY_get0_group(self.k)
            pub_key = ssl.EC_POINT_new(group)
            ...
          
        
secret - normal data

I upgrade and recompile libssl and problem not solved (
Server OS: Debian 7 and 6, Python version: 2.6 and 2.7

What could be the reason ?
Thanks
roslinpl
Legendary
*
Offline Offline

Activity: 2226
Merit: 1199


Next Generation Web3 Casino


View Profile WWW
February 24, 2014, 12:59:14 AM
 #2

Good day.

My bitcoin python script while exec this code cause Segmentation fault.
Time: random loop iteration (0 - 3 secs) after the script run

Code:
        ssl = ctypes.cdll.LoadLibrary (ctypes.util.find_library ('ssl'))
        while():
            ...
            priv_key = ssl.BN_bin2bn(secret, 32, ssl.BN_new())     // This function cause sig
            group = ssl.EC_KEY_get0_group(self.k)
            pub_key = ssl.EC_POINT_new(group)
            ...
          
        
secret - normal data

I upgrade and recompile libssl and problem not solved (
Server OS: Debian 7 and 6, Python version: 2.6 and 2.7

What could be the reason ?
Thanks

I think not.

Python 2.x is mostly the same.
Difference is from 3.0


█████████████▄▄▄▄▄▄▄█████▄
█████████████▄▀███████▄▄
███████▄▄████▀▄██▀▀█▀██▄▄▄██▄▄
█████▄████████████████▄▀█▄██████▄▄
████▀▄█▄█████████████████▄▀█████████▄
░▄█████████████████████▄▄▄██████████
█████████████████████████████████
▀████████████████████▀██████▌████
░▀████████████████████▀▄█▀███▀████
░░▀███████████▀████████▀▄███████
███▀█████████████▀██████████████
████▀████████████████▀██████████
█████▀██▀▀██████████████▀█████▀

██████    ██
██
██
██
██
██
██
██
██
██
██████████
       ▄▄▄██▄▄▄
    ▄███████████▄
    █████████████▄
   ███████████████
▄█████████████████▄
▀▀▀▀█████████████▀██
    ▀█████████████▄
    ▄▀█████████████▄
   █▀ ▀▀▀██████████▌
▐███    ▄█████████▀▀
 ▀▀     ▄█████▀▀
       ███▀▀
      ██▀

██████
██
██
██
██
██
██
██
██
██
██████
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!