Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: mrmaks on February 23, 2014, 02:07:27 PM



Title: Python segmentation fault while generate key pairs
Post by: mrmaks on February 23, 2014, 02:07:27 PM
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


Title: Re: Python segmentation fault while generate key pairs
Post by: roslinpl on February 24, 2014, 12:59:14 AM
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