Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"exceptions.ValueError: Received a NULL pointer." #2687

Closed
2 tasks done
d33tah opened this issue Dec 28, 2016 · 2 comments
Closed
2 tasks done

"exceptions.ValueError: Received a NULL pointer." #2687

d33tah opened this issue Dec 28, 2016 · 2 comments
Milestone

Comments

@d33tah
Copy link

d33tah commented Dec 28, 2016

Please, fill all relevant items:

  • I have read CONTRIBUTING.rst

  • I have tried with the latest pre-release version and I still can reproduce the issue.

Tribler version/branch+revision:
✗ git describe
initial_import-11989-g1725b60
Operating system and version:

Fedora release 24

Expected behavior:

Tribler starts

Actual behavior:
Traceback (most recent call last):
  File "/home/d/workspace/0_src/tribler/Tribler/Main/tribler_main.py", line 989, in run
    use_torrent_search=use_torrent_search, use_channel_search=use_channel_search)
  File "/home/d/workspace/0_src/tribler/Tribler/Main/tribler_main.py", line 115, in __init__
    use_torrent_search=use_torrent_search, use_channel_search=use_channel_search)
  File "/home/d/workspace/0_src/tribler/Tribler/Main/tribler_main.py", line 342, in InitStage1
    session = Session(self.sconfig, autoload_discovery=autoload_discovery)
  File "/home/d/workspace/0_src/tribler/Tribler/Core/Session.py", line 124, in __init__
    self.keypair = permidmod.generate_keypair()
  File "/home/d/workspace/0_src/tribler/Tribler/Core/permid.py", line 25, in generate_keypair
    ec_keypair = EC.gen_params(KEYPAIR_ECC_CURVE)
  File "/usr/lib64/python2.7/site-packages/M2Crypto/EC.py", line 269, in gen_params
    return EC(m2.ec_key_new_by_curve_name(curve), 1)
  File "/usr/lib64/python2.7/site-packages/M2Crypto/EC.py", line 106, in __init__
    assert m2.ec_key_type_check(ec), "'ec' type error"
ValueError: Received a NULL pointer.
Steps to reproduce the behavior:

On Fedora 24:

sudo yum install python-qt5 python2-configobj rb_libtorrent-python2
sudo pip install libnacl
./tribler.sh
@devos50
Copy link
Contributor

devos50 commented Dec 29, 2016

Thanks for the report! That looks like a M2Crypto issue where the generation of the EC curve goes wrong. We will investigate it.

@devos50 devos50 added this to the V7.0 milestone Dec 29, 2016
@devos50
Copy link
Contributor

devos50 commented Jan 2, 2017

The default M2Crypto on Fedora does not have support for the specific EC curve we are using (NID_sect233k1). Please see #616 and #893 for more instructions about this. I will close this issue since we have received more reports about this.

@devos50 devos50 closed this as completed Jan 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants