[Python-Dev] Bus error in Python 3.6.0beta

Antoine Pitrou solipsis at pitrou.net
Tue Nov 22 12:03:31 EST 2016


On Tue, 22 Nov 2016 12:52:59 +0100
Stefan Scherfke <stefan.scherfke at energymeteo.de> wrote:
> 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')  
> BusError

You'll have to investigate yourself.  First enable core dumps ("ulimit
-c unlimited"), then run gdb on the resulting core dump.

(or run Python directly under gdb)

Regards

Antoine.




More information about the Python-Dev mailing list