Segmentation Fault in ncrypt.dh.fromPEM_Parameters
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ncrypt (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
We need CSpace (http://
However it fails sometimes with Segmentation Fault, but only on 64bit machines.
After long searching I found the problem in the file sslcontext.py.
Here is a part of it which cause SegFault:
#EXAMPLE BEGIN
from ncrypt.dh import DH
_dh_params_pem = """
-----BEGIN DH PARAMETERS-----
MIGHAoGBAPSI/
jY67VYy4XTjTNP1
ypUM2Zafq9AKUJs
-----END DH PARAMETERS-----
copied from openssl-
"""
dh = DH()
dh.fromPEM_
#EXAMPLE END
My system is Dell:
veselin@dell64:~$ uname -a
Linux dell64 2.6.38-13-generic #54-Ubuntu SMP Tue Jan 3 13:38:12 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
veselin@dell64:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 11.04
Release: 11.04
Codename: natty
Even this code fails:
from ncrypt.rsa import RSAKey
keysrc = """ bcsySk8cgHfzx7B mGnF+WWrwFRpMJN 26u9BsAL0eETEeQ sQXE RuJlHKy0uxqK0M/ KyAfBw7a6HhNQwT 2/2dXhylUre1coC HeIv rWY0y5geKczPnRo AYJFqNZE1XzyYOq YmVoCs6XB5yPw2n OfcV +l2GKbmwIJXGZTW 4kl1P6VCjrtlEL5 B1qyOd3JYUm8JRJ ihca UQS0ucp5MHaI0jF K79sgkDujdAWtPL 7A/CK97WUMNl9Jh AvV/ u1Nqf8Xj18lT1g9 bH5wIBBQ= =
-----BEGIN RSA PUBLIC KEY-----
MIIBCAKCAQEA7Gl
gDeKrUHMs5EKtBB
KBkV1WJxNnjCJwK
TX5fXYPzsnA9EaR
8LIQrNu00awnxAk
oN9GFZO5MuNwUcf
-----END RSA PUBLIC KEY-----
"""
k = RSAKey() PublicKey( keysrc )
k.fromPEM_