On Thu, 2019-11-28 at 08:02 -0800, Guido van Rossum wrote:
Instead of trying random possibly related patches, why don't you use a debugger 
and find out exactly what is going wrong? From your report it doesn't seem that 
you have tried to do so already (apologies if you did and I missed the hint).

This is fair - let me do this.

Peter.



On Thu, Nov 28, 2019 at 7:41 AM Peter Morrow via Python-Dev 
<python-dev@python.org<mailto:python-dev@python.org>> wrote:
Hi Folks,

Python-dev seemed to be the most appropriate email alias for this,
though please do point me somewhere else if this is not appropriate.

We are using a custom arm64 based distro built using yocto and as such
we are currently using python 3.5.6.  We are hitting a failure in a python3 
test case qemu running under QEMU that we would like to try to resolve if 
possible:

root@10:/usr/lib/python3.5# python3 --version
Python 3.5.6
root@10:/usr/lib/python3.5# python3 ctypes/test/test_structures.py
.................F....s.....
======================================================================
FAIL: test_pass_by_value (__main__.StructureTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "ctypes/test/test_structures.py", line 419, in
test_pass_by_value
    self.assertEqual(s.first, 0xdeadbeef)
AssertionError: 195948557 != 3735928559

----------------------------------------------------------------------
Ran 28 tests in 0.457s

FAILED (failures=1, skipped=1)
root@10:/usr/lib/python3.5#

From searching the web I came across this bug which appears to match
what we are seeing:

https://bugs.python.org/issue29804<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugs.python.org%2Fissue29804&data=02%7C01%7CPeter.Morrow%40microsoft.com%7Cd168109f99d14a4ec9ae08d7741c66d9%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637105538712981693&sdata=uU3EdYIO2fZvFR%2BEPoGNO1Qyd7CCthUXh4n6yWceZq0%3D&reserved=0>
 ("test_ctypes test_pass_by_value
fails on arm64 (aarch64) architecture").
However it looks like this fix is already in 3.5.6 so this isn't it.

Next set of searching led me here:

https://bugs.python.org/issue30353<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugs.python.org%2Fissue30353&data=02%7C01%7CPeter.Morrow%40microsoft.com%7Cd168109f99d14a4ec9ae08d7741c66d9%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637105538712991648&sdata=QVHQ086I%2FB%2BqORbxKZVG%2F46xBjR8xD%2FNQQwsLPLkam4%3D&reserved=0>
 and thus this patch:

https://github.com/python/cpython/commit/9ba3aa4d02a110d1a1ea464a8aff3be7dd9c63c3<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fcommit%2F9ba3aa4d02a110d1a1ea464a8aff3be7dd9c63c3&data=02%7C01%7CPeter.Morrow%40microsoft.com%7Cd168109f99d14a4ec9ae08d7741c66d9%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637105538712991648&sdata=X3hJQLORLnSq4W8D6c%2F7AoAu30CwHAwJNC5ZVRLYAFg%3D&reserved=0>

So I applied this patch but we end up with this now:

root@10:~# cd /usr/lib/python3.5/
root@10:/usr/lib/python3.5# python3 ctypes/test/test_structures.py
Traceback (most recent call last):
  File "ctypes/test/test_structures.py", line 2, in <module>
    from ctypes import *
  File "/usr/lib/python3.5/ctypes/__init__.py", line 7, in <module>
    from _ctypes import Union, Structure, Array
ImportError: No module named '_ctypes'
root@10:/usr/lib/python3.5#


Can anyone help point me in the right direction with this failure we
are seeing? We are stuck with python 3.5.6 for now due to the version of yocto 
we are using, though I'm concerned since this seems to be a fairly fundamental 
issue which is being exposed by this testcase.

Do let me know if you require any more information from me.


Many Thanks,
Peter.
_______________________________________________
Python-Dev mailing list -- python-dev@python.org<mailto:python-dev@python.org>
To unsubscribe send an email to 
python-dev-le...@python.org<mailto:python-dev-le...@python.org>
https://mail.python.org/mailman3/lists/python-dev.python.org/<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmail.python.org%2Fmailman3%2Flists%2Fpython-dev.python.org%2F&data=02%7C01%7CPeter.Morrow%40microsoft.com%7Cd168109f99d14a4ec9ae08d7741c66d9%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637105538713001602&sdata=b363e0oR0nCbY313E7Rzw5TXr3ONRFEX5tw0pbEbPfI%3D&reserved=0>
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/4QSCCSWUU76IYSARXKYKV7PHJKYA26BL/<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmail.python.org%2Farchives%2Flist%2Fpython-dev%40python.org%2Fmessage%2F4QSCCSWUU76IYSARXKYKV7PHJKYA26BL%2F&data=02%7C01%7CPeter.Morrow%40microsoft.com%7Cd168109f99d14a4ec9ae08d7741c66d9%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637105538713001602&sdata=WnJRcOTHewENWaBBwWp%2Bw0x2Lzoe7OwDQ4TQkMuGIVY%3D&reserved=0>
Code of Conduct: 
http://python.org/psf/codeofconduct/<https://nam06.safelinks.protection.outlook.com/?url=http%3A%2F%2Fpython.org%2Fpsf%2Fcodeofconduct%2F&data=02%7C01%7CPeter.Morrow%40microsoft.com%7Cd168109f99d14a4ec9ae08d7741c66d9%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637105538713001602&sdata=puL1aOKZB%2BDeZC%2FWERNRHfxPTVQXYYvxb%2BWb0ch4G9I%3D&reserved=0>



_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/PM2REQWDM2F3RC7PXOXB2GRBHKQM3SMT/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to