[issue29804] test_ctypes test_pass_by_value fails on arm64 (aarch64) architecture

2018-08-02 Thread STINNER Victor


STINNER Victor  added the comment:

I backported commit a86339b83fbd0932e0529a3c91935e997a234582 from master: 
commit 3243f8c1fb16b6de73f1d7a30f5d09047553bce3, but I don't have access to 
arm64, so I cannot test if the backport fixes test_ctypes on arm64.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29804] test_ctypes test_pass_by_value fails on arm64 (aarch64) architecture

2018-08-02 Thread STINNER Victor


STINNER Victor  added the comment:

New changeset 3243f8c1fb16b6de73f1d7a30f5d09047553bce3 by Victor Stinner in 
branch '2.7':
bpo-29565: Corrected ctypes passing of large structs by value on Windows AMD64 
(GH-168) (GH-8625)
https://github.com/python/cpython/commit/3243f8c1fb16b6de73f1d7a30f5d09047553bce3

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29804] test_ctypes test_pass_by_value fails on arm64 (aarch64) architecture

2018-08-02 Thread STINNER Victor


STINNER Victor  added the comment:

This issue is mentioned from 
https://bugzilla.redhat.com/show_bug.cgi?id=1336557 but it seems like the bug 
has not been fixed in Python 2.7.

I created PR 8625 to backport the fix to Python 2.7.

--
nosy: +vstinner

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29804] test_ctypes test_pass_by_value fails on arm64 (aarch64) architecture

2018-03-11 Thread Ned Deily

Ned Deily  added the comment:

OK, PR 1559 (in 3.7.0) for Issue30353 has been backported to 3.6 in PR 5954 for 
release in 3.6.5.  So based on msg312200, I'm going to assume the problem is no 
longer reproducible in 3.6 and close this issue.  If not, please reopen.

--
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29804] test_ctypes test_pass_by_value fails on arm64 (aarch64) architecture

2018-02-27 Thread Vinay Sajip

Vinay Sajip  added the comment:

> Vinay, should this back-ported to 3.6?

Yes, I think it should be.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29804] test_ctypes test_pass_by_value fails on arm64 (aarch64) architecture

2018-02-26 Thread Charalampos Stratakis

Charalampos Stratakis  added the comment:

The bug is still present on the 3.6 branch.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29804] test_ctypes test_pass_by_value fails on arm64 (aarch64) architecture

2018-02-26 Thread Ned Deily

Ned Deily  added the comment:

Vinay, should this backported to 3.6?  Otherwise, can the issue be closed?

--
versions: +Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29804] test_ctypes test_pass_by_value fails on arm64 (aarch64) architecture

2018-02-15 Thread Iryna Shcherbina

Iryna Shcherbina  added the comment:

PR 1559 fixes the issue in Fedora builds on arm64. The issue is no longer 
reproducible with Python 3.7.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29804] test_ctypes test_pass_by_value fails on arm64 (aarch64) architecture

2017-05-19 Thread Erik Bray

Changes by Erik Bray :


--
pull_requests: +1760

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29804] test_ctypes test_pass_by_value fails on arm64 (aarch64) architecture

2017-04-24 Thread Chi Hsuan Yen

Changes by Chi Hsuan Yen :


--
nosy: +Chi Hsuan Yen

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29804] test_ctypes test_pass_by_value fails on arm64 (aarch64) architecture

2017-03-23 Thread Ned Deily

Ned Deily added the comment:

Technically speaking, we do not officially support arm64 in our release process 
as we have no arm64 buildbots nor an identified core developer for the 
platform; see PEP 11 for the policy details.  So there is no place to test a 
fix if there was one identified.  That said, it would be good to fix the 
problem if someone is willing to provide a fix and test it or determine that 
the issue here is a libffi problem.  It would be even better if we could make 
arm64 an officially supported platform as outlined.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29804] test_ctypes test_pass_by_value fails on arm64 (aarch64) architecture

2017-03-15 Thread Vinay Sajip

Changes by Vinay Sajip :


--
nosy: +ned.deily

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29804] test_ctypes test_pass_by_value fails on arm64 (aarch64) architecture

2017-03-15 Thread Vinay Sajip

Vinay Sajip added the comment:

I don't think it's a regression. It's catching an error that was there, but 
wasn't tested for before.

If it should be a release blocker - that should not be for any reversion of the 
change to the test, but for implementing the pass-by-value functionality 
correctly.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29804] test_ctypes test_pass_by_value fails on arm64 (aarch64) architecture

2017-03-15 Thread Charalampos Stratakis

Charalampos Stratakis added the comment:

Since this newly added assertion [0] fails for aarch64 shouldn't this be 
considered a regression?

And taking into account the timeframe, a release blocker for 3.6.1?

--
nosy: +cstratak

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29804] test_ctypes test_pass_by_value fails on arm64 (aarch64) architecture

2017-03-15 Thread Charalampos Stratakis

Charalampos Stratakis added the comment:

[0] 
https://github.com/python/cpython/commit/a86339b83fbd0932e0529a3c91935e997a234582#diff-39e8978a35ab16f78e60027c61b810f7R413

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29804] test_ctypes test_pass_by_value fails on arm64 (aarch64) architecture

2017-03-14 Thread Vinay Sajip

Vinay Sajip added the comment:

The test checks that a structure passed by value is indeed passed by value - 
something that is architecture-dependent, as calling conventions differ across 
architectures.

If the test fails, this indicates that the structure isn't being passed by 
value - a pointer to the structure is probably passed, which is 
pass-by-reference rather than pass-by-value. This indicates that a change to 
ctypes or libffi is needed to fix this. See the changes made in 
Modules/_ctypes/libffi_msvc/ffi.c for bpo-29565 - probably, analogous changes 
need to be made to the corresponding code for arm64.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29804] test_ctypes test_pass_by_value fails on arm64 (aarch64) architecture

2017-03-14 Thread Iryna

Iryna added the comment:

Hi Vinay, I have added you to the nosy list as you are the author of the fix 
for bpo-29565, and would like to ask you for insights or ideas on why the test 
would fail only on one architecture (arm64)?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29804] test_ctypes test_pass_by_value fails on arm64 (aarch64) architecture

2017-03-13 Thread Iryna

Changes by Iryna :


--
nosy: +vinay.sajip

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29804] test_ctypes test_pass_by_value fails on arm64 (aarch64) architecture

2017-03-13 Thread Iryna

New submission from Iryna:

I am trying to build Python 3.6.1rc1 on Fedora, and have the following test 
failing on arm64 (aarch64) architecture:

==
FAIL: test_pass_by_value (ctypes.test.test_structures.StructureTestCase)
--
Traceback (most recent call last):
  File 
"/builddir/build/BUILD/Python-3.6.1rc1/Lib/ctypes/test/test_structures.py", 
line 413, in test_pass_by_value
self.assertEqual(s.first, 0xdeadbeef)
AssertionError: 195948557 != 3735928559
--

The build log is attached.
The test was added in this commit [1] as a fix for bpo-29565.

Any idea what this can be related to?


[1] 
https://github.com/python/cpython/commit/3cc5817cfaf5663645f4ee447eaed603d2ad290a

--
components: Tests, ctypes
files: Python3.6.1rc1_build_log.txt
messages: 289539
nosy: ishcherb
priority: normal
severity: normal
status: open
title: test_ctypes test_pass_by_value fails on arm64 (aarch64) architecture
versions: Python 3.6
Added file: http://bugs.python.org/file46724/Python3.6.1rc1_build_log.txt

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com