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

Segmentation Fault with new OpenSSL #10248

Closed
hymie0 opened this issue Aug 7, 2016 · 3 comments
Closed

Segmentation Fault with new OpenSSL #10248

hymie0 opened this issue Aug 7, 2016 · 3 comments
Labels

Comments

@hymie0
Copy link

@hymie0 hymie0 commented Aug 7, 2016

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2016.08.06. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2016.08.06

Before submitting an issue make sure you have:

  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:

Add -v flag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):

$ ./youtube-dl -v
zsh: segmentation fault  ./youtube-dl -v
$ ./youtube-dl
zsh: segmentation fault  ./youtube-dl
$ 

Description of your issue, suggested solution and other information

I recently upgraded my version of OpenSSL from the very old 0.9.8-something to a more recent 1.0.2h. Now I cannot run youtube-dl. I downloaded the newest 2016-08-06 on a different computer running OpenSSL 1.0.2a and it works perfectly on that machine. Both machines should be configured roughly the same (but probably not exactly the same).

If I reinstall the old OpenSSL 0.9.8 libraries, then youtube-dl works correctly. But I don't want the old version conflicting with any other software that I have.

When I uninstall both 0.9.8 and 1.0.2 , I get this error:

newlaptop-pts/0:~% youtube-dl
Traceback (most recent call last):
  File "/usr/lib/python2.6/runpy.py", line 122, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.6/runpy.py", line 34, in _run_code
    exec code in run_globals
  File "youtube-dl/__main__.py", line 16, in <module>
  File "youtube-dl/youtube_dl/__init__.py", line 15, in <module>
  File "youtube-dl/youtube_dl/options.py", line 8, in <module>
  File "youtube-dl/youtube_dl/downloader/__init__.py", line 3, in <module>
  File "youtube-dl/youtube_dl/downloader/common.py", line 8, in <module>
  File "youtube-dl/youtube_dl/compat.py", line 25, in <module>
  File "/usr/lib/python2.6/urllib2.py", line 91, in <module>
    import hashlib
  File "/usr/lib/python2.6/hashlib.py", line 136, in <module>
    md5 = __get_builtin_constructor('md5')
  File "/usr/lib/python2.6/hashlib.py", line 63, in __get_builtin_constructor
    import _md5
ImportError: No module named _md5

Perhaps I compiled OpenSSL incorrectly, but nothing else has complained.

@hymie0 hymie0 changed the title Segmentation Fault Segmentation Fault with new OpenSSL Aug 7, 2016
@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Aug 7, 2016

Which OS are you using? I guess you need to recompile Python after upgrading OpenSSL.

@hymie0
Copy link
Author

@hymie0 hymie0 commented Aug 7, 2016

I'm sorry. Slackware 13 / Linux 3.18.25 . I will try to upgrade Python...

@hymie0
Copy link
Author

@hymie0 hymie0 commented Aug 7, 2016

Resolved. Thanks for the tip.

@hymie0 hymie0 closed this Aug 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.