The segfault is caused by this issue with Python: https://bugs.python.org/issue29347 Commit that fixes the problem upstream: https://github.com/python/cpython/commit/7131a73f9655cfd325c798385905326f57b94640 Solutions: a) Upgrade to Python 2.7.14 b) Apply patch to current Python package: https://github.com/python/cpython/commit/7131a73f9655cfd325c798385905326f57b94640#diff-808097c10fb229693b5f8c42705f8314 Assigning this bug to Python packagers.