<div dir="ltr"><div><div><div><div><div><div><div><div><div>What I see in the strace:<br><br></div>... load libpython3.4m.so.1.0<br></div>... load libm<br></div>... open /dev/__properties__ and do something to it (what?)<br></div>... get current time<br></div>... allocate memory<br></div>... getuid<br></div>... segfault<br><br></div><div>That's not a lot to go on, but it doesn't look as if it has started to load modules yet.<br></div><div><br></div>Does /dev/__properties__ ring a bell? Not to me.<br><br></div>That stack trace would be really helpful.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 28, 2015 at 8:34 AM, Cyd Haselton <span dir="ltr"><<a href="mailto:chaselton@gmail.com" target="_blank">chaselton@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Apologies...I'm not sure what a stack track is, but I do have the<br>
strace.  Nearest I can tell, it happens due to an open call, though I<br>
am probably wrong.<br>
Attaching the strace output to this email.  I'm going to head back to<br>
the documentation and to back out of some Android-related changes in<br>
_localemodule.c<br>
<div class="HOEnZb"><div class="h5"><br>
On Wed, Jan 28, 2015 at 9:43 AM, Guido van Rossum <<a href="mailto:guido@python.org">guido@python.org</a>> wrote:<br>
> There could be a million differences relevant (unicode, ints, ...). Perhaps<br>
> the importlib bootstrap is failing. Perhaps the dynamic loading code<br>
> changed. Did you get a stack track? (IIRC strace shows a syscall trace --<br>
> also useful, but doesn't tell you precisely how it segfaulted.)<br>
><br>
> On Wed, Jan 28, 2015 at 6:43 AM, Cyd Haselton <<a href="mailto:chaselton@gmail.com">chaselton@gmail.com</a>> wrote:<br>
>><br>
>> All,<br>
>> I recently ditched my attempts to port Python 2.7.8 to Android in<br>
>> favor of Python 3.4.2.  Unfortunately, after using the same configure<br>
>> options in the same environment, and modifying the setup.py as needed,<br>
>> the newly built binary throws a segfault when the generate-posix-vars<br>
>> portion of the build is reached...and when it is run as well (i.e.<br>
>> ./python --help, ./python -E -S -m sysconfig, or similar)<br>
>><br>
>> I took a strace of ./python, however I'm a bit lost when reviewing it.<br>
>> Any ideas as to what may be going on...i.e. why Python 2.7 works but<br>
>> 3.x throws a segfault?<br>
>><br>
>> Thanks in advance,<br>
>> Cyd<br>
>> _______________________________________________<br>
>> Python-Dev mailing list<br>
>> <a href="mailto:Python-Dev@python.org">Python-Dev@python.org</a><br>
>> <a href="https://mail.python.org/mailman/listinfo/python-dev" target="_blank">https://mail.python.org/mailman/listinfo/python-dev</a><br>
>> Unsubscribe:<br>
>> <a href="https://mail.python.org/mailman/options/python-dev/guido%40python.org" target="_blank">https://mail.python.org/mailman/options/python-dev/guido%40python.org</a><br>
><br>
><br>
><br>
><br>
> --<br>
> --Guido van Rossum (<a href="http://python.org/~guido" target="_blank">python.org/~guido</a>)<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">--Guido van Rossum (<a href="http://python.org/~guido">python.org/~guido</a>)</div>
</div>