<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Jan 28, 2015 at 10:43 AM, Guido van Rossum <span dir="ltr"><<a href="mailto:guido@python.org" target="_blank">guido@python.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><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></div></blockquote><div><br></div><div><a href="https://android.googlesource.com/platform/system/core/+/tools_r22/init/property_service.c">https://android.googlesource.com/platform/system/core/+/tools_r22/init/property_service.c</a> is the code that works with that file.<br></div><div><br></div><div><a href="http://sssslide.com/www.slideshare.net/tetsu.koba/interprocess-communication-of-android">This</a> explains it a bit (slides 24-29). Looks like something to do with interprocess communication. Likely has nothing to do with Python itself.<br></div><div><br></div><div>Maybe <a href="http://www.andrew-kirkpatrick.com/2013/01/get-android-stack-trace-from-device-using-debug-bridge/">this</a> would be useful?</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div></div>That stack trace would be really helpful.<br></div><div class=""><div class="h5"><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:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style: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><div><br>
On Wed, Jan 28, 2015 at 9:43 AM, Guido van Rossum <<a href="mailto:guido@python.org" target="_blank">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" target="_blank">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" target="_blank">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>--Guido van Rossum (<a href="http://python.org/~guido" target="_blank">python.org/~guido</a>)</div>
</div>
</div></div><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: <a href="https://mail.python.org/mailman/options/python-dev/rymg19%40gmail.com" target="_blank">https://mail.python.org/mailman/options/python-dev/rymg19%40gmail.com</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Ryan<div><div>If anybody ever asks me why I prefer C++ to C, my answer will be simple: "It's becauseslejfp23(@#Q*(E*EIdc-SEGFAULT. Wait, I don't think that was nul-terminated."</div></div>Personal reality distortion fields are immune to contradictory evidence. - srean<div>Check out my website: <a href="http://kirbyfan64.github.io/" target="_blank">http://kirbyfan64.github.io/</a></div></div></div>
</div></div>