Author

Topic: Python segmentation fault while generate key pairs (Read 1966 times)

legendary
Activity: 2212
Merit: 1199
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

newbie
Activity: 13
Merit: 0
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
Jump to: