This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients cgohlke, ezio.melotti, paul.moore, serhiy.storchaka, steve.dower, tim.golden, vstinner, zach.ware
Date 2016-09-13.08:57:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473757044.92.0.0257442667448.issue28114@psf.upfronthosting.co.za>
In-reply-to
Content
> Trying to build numpy-1.11.2rc1 wheels for Python 3.6.0b1 on Windows 10 with `python.exe setup.py bdist_wheel`, python36.dll (32 and 64 bit) segfaults in the `find_maxchar_surrogates` function.

I ran "python setup.py bdist_wheel" on numpy-1.11.2rc1 on Linux: no issue.

I compiled Python 3.6 (the default branch in fact, so the future 3.7) in debug mode/64 bit with SSL, but the setup.py command failed with:

   Don't know how to compile Fortran code on platform 'nt'

I don't want to spend too much time to try to reproduce the issue.

Can you please try to get the Python traceback? Try:

   python -X faulthandler setup.py bdist_wheel

It seems like the crash occurs in parse_envlist(), function to parse environment variables in os.spawnve(). Can you try to dump the env parameter of os.spawnve()?

For example, you can put the following lines at the beginning of setup.py:

---
import os
orig_spawnve = os.spawnve

def log_spawnve(*args):
    print("spawnve: %r" % (args,))
    return orig_spawnve(*args)

os.spawnve = log_spawnve
---

My test:
---
>>> import os, sys; args=[sys.executable, "-c", "pass"]; os.spawnve(os.P_WAIT, args[0], args, None)
spawnve: (0, '/home/haypo/prog/python/default/python', ['/home/haypo/prog/python/default/python', '-c', 'pass'], None)
127
---
History
Date User Action Args
2016-09-13 08:57:24vstinnersetrecipients: + vstinner, paul.moore, tim.golden, ezio.melotti, cgohlke, zach.ware, serhiy.storchaka, steve.dower
2016-09-13 08:57:24vstinnersetmessageid: <1473757044.92.0.0257442667448.issue28114@psf.upfronthosting.co.za>
2016-09-13 08:57:24vstinnerlinkissue28114 messages
2016-09-13 08:57:24vstinnercreate