[Python-Dev] Newly Built Python3 Binary Throws Segfault

Guido van Rossum guido at python.org
Wed Jan 28 16:43:42 CET 2015


There could be a million differences relevant (unicode, ints, ...). Perhaps
the importlib bootstrap is failing. Perhaps the dynamic loading code
changed. Did you get a stack track? (IIRC strace shows a syscall trace --
also useful, but doesn't tell you precisely how it segfaulted.)

On Wed, Jan 28, 2015 at 6:43 AM, Cyd Haselton <chaselton at gmail.com> wrote:

> All,
> I recently ditched my attempts to port Python 2.7.8 to Android in
> favor of Python 3.4.2.  Unfortunately, after using the same configure
> options in the same environment, and modifying the setup.py as needed,
> the newly built binary throws a segfault when the generate-posix-vars
> portion of the build is reached...and when it is run as well (i.e.
> ./python --help, ./python -E -S -m sysconfig, or similar)
>
> I took a strace of ./python, however I'm a bit lost when reviewing it.
> Any ideas as to what may be going on...i.e. why Python 2.7 works but
> 3.x throws a segfault?
>
> Thanks in advance,
> Cyd
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> https://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe:
> https://mail.python.org/mailman/options/python-dev/guido%40python.org
>



-- 
--Guido van Rossum (python.org/~guido)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20150128/a447ae5e/attachment.html>


More information about the Python-Dev mailing list