[Python-Dev] Bus error in Python 3.6.0beta

Stefan Scherfke stefan.scherfke at energymeteo.de
Tue Nov 22 06:52:59 EST 2016

Hi all,

I am trying to build a custom Conda installer for Python 3.6.0b4.

I could successfully build an run Python.  However, when I run
the generated Conda installer, it dies with a "Bus error".

It happens when Conda's meta-installer script tries to replace
the build-prefix (e.g., /home/stefan/conda/asdf) with the prefix
of the actual installation (e.g., /tmp/py36).

Therefore, it opens all files in binary mode, reads their contents, 
replaces stuff, and writes the new contents back to the original file.

This works fine with text files but it dies when it hits the first 
binary file.

Here is a minimal example that reproduces the error:

$ /tmp/py36/bin/python
Python 3.6.0b4 (default, Nov 22 2016, 10:32:29)
[GCC 6.2.1 20160916 (Red Hat 6.2.1-2)] on linux
 >>> path = '/tmp/py36/lib/libpython3.6m.so.1.0'
 >>> f = open(path, 'wb')

Can anyone reproduce this?  Is this a compilation error or an issue
with Python itself?


PS: If need, I can upload the Conda installer somewhere.  It's ~40MiB.

More information about the Python-Dev mailing list