[issue8314] test_ctypes fails in test_ulonglong on sparc buildbots

2018-12-12 Thread Mark Lawrence


Change by Mark Lawrence :


--
nosy:  -BreamoreBoy

___
Python tracker 

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



[issue8314] test_ctypes fails in test_ulonglong on sparc buildbots

2018-12-12 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Starting from 3.7 Python always uses system libffi. 3.4 and 3.5 are in security 
bugfix only mode. So this issue is only for 2.7 and 3.6.

--
nosy: +serhiy.storchaka
versions: +Python 3.6 -Python 3.4, Python 3.5

___
Python tracker 

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



[issue8314] test_ctypes fails in test_ulonglong on sparc buildbots

2014-06-27 Thread Mark Lawrence

Mark Lawrence added the comment:

Can this be closed as out of date?

--
nosy: +BreamoreBoy
versions: +Python 3.4, Python 3.5

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



[issue8314] test_ctypes fails in test_ulonglong on sparc buildbots

2011-04-06 Thread Arfrever Frehtes Taifersar Arahesis

Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment:

There seems to be also a problem with src/sparc/v9.S.
https://bugs.gentoo.org/show_bug.cgi?id=362065

FAIL: test_ulonglong (ctypes.test.test_callbacks.Callbacks)
--
Traceback (most recent call last):
  File 
/var/tmp/portage/dev-lang/python-2.7.2_pre20110403/work/python-2.7.2_pre20110403/Lib/ctypes/test/test_callbacks.py,
 line 72, in test_ulonglong
self.check_type(c_ulonglong, 10955412242170339782)
  File 
/var/tmp/portage/dev-lang/python-2.7.2_pre20110403/work/python-2.7.2_pre20110403/Lib/ctypes/test/test_callbacks.py,
 line 31, in check_type
self.assertEqual(result, arg)
AssertionError: 10955412241121898851L != 10955412242170339782L

--
nosy: +Arfrever
versions: +3rd party -Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8314
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8314] test_ctypes fails in test_ulonglong on sparc buildbots

2011-04-06 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
versions: +Python 2.7 -3rd party

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8314
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8314] test_ctypes fails in test_ulonglong on sparc buildbots

2010-04-21 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

I was going to say that I think that this issue can be closed now...

... but the src/sparc/v8.S file still looks wrong to me:  Martin fixed one 
missing FFI_TYPE_UINT64 case, but it looks to me as though there's another one, 
in ffi_call_v8.  The code starting at line 68 in that file looks like:

cmp %i3, FFI_TYPE_INT
be,adone
st  %o0, [%i4]  ! (delay)

cmp %i3, FFI_TYPE_FLOAT
be,adone
st  %f0, [%i4+0]! (delay)

cmp %i3, FFI_TYPE_DOUBLE
be,adouble
st  %f0, [%i4+0]! (delay)

cmp %i3, FFI_TYPE_SINT8
be,asint8
sll %o0, 24, %o0! (delay)

cmp %i3, FFI_TYPE_UINT8
be,auint8
sll %o0, 24, %o0! (delay)

cmp %i3, FFI_TYPE_SINT16
be,asint16
sll %o0, 16, %o0! (delay)

cmp %i3, FFI_TYPE_UINT16
be,auint16
sll %o0, 16, %o0! (delay)

cmp %i3, FFI_TYPE_SINT64
be,alonglong
st  %o0, [%i4+0]! (delay)
done:
ret
restore

Shouldn't there should be another block here for FFI_TYPE_UINT64, essentially 
identical to the FFI_TYPE_SINT64 block?  Or am I missing something?

I don't know why this omission doesn't cause buildbot failures; perhaps it's 
because the compiled test function (e.g., tf_Q in _ctypes_test.c) just happens 
to already have placed the correct values in the right locations ([%i4 + 0] and 
[%i4 + 4]) already, before transferring them to o0 and o1.

I've asked about this on the libffi-discuss mailing list, as a follow-up to 
Victor's report there.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8314
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8314] test_ctypes fails in test_ulonglong on sparc buildbots

2010-04-16 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

 Committed as r79892.

Commited to py3k (r80106), but blocked in 3.1 (r80107) because Python 3.1 uses 
libffi 3.0.5.

--
nosy: +haypo
status: pending - open

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8314
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8314] test_ctypes fails in test_ulonglong on sparc buildbots

2010-04-12 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

It should be ported to py3k, the sparc buildbots still fail there.

--
nosy: +pitrou

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8314
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8314] test_ctypes fails in test_ulonglong on sparc buildbots

2010-04-12 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
status: closed - pending

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8314
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8314] test_ctypes fails in test_ulonglong on sparc buildbots

2010-04-08 Thread Thomas Heller

Thomas Heller thel...@ctypes.org added the comment:

Martin, you should probably post your patch to upstream libffi.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8314
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8314] test_ctypes fails in test_ulonglong on sparc buildbots

2010-04-07 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

It's surprising that test_ulonglong fails, while test_longlong passes:  can the 
Linux Sparc ABI really be treating these two types differently?

Maybe more information could be gained by supplying a more interesting test 
value than 42---some 8-byte value with all bytes different, for example.

In any case, this seems likely to be a libffi bug somewhere;  maybe we could 
bring it up on the libffi mailing list.  If we can translate the failing Python 
code into failing C code first that would probably increase the chances of 
getting a good answer.  Without access to Sparc hardware, I don't see much 
other way of making progress here.

--
nosy: +mark.dickinson

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8314
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8314] test_ctypes fails in test_ulonglong on sparc buildbots

2010-04-07 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

I have just studied the issue in detail; v8.S is indeed missing support for 
unsigned long long. Here is a patch.

--
keywords: +patch
nosy: +loewis
Added file: http://bugs.python.org/file16798/sparc.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8314
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8314] test_ctypes fails in test_ulonglong on sparc buildbots

2010-04-07 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

Committed as r79892.

--
resolution:  - fixed
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8314
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8314] test_ctypes fails in test_ulonglong on sparc buildbots

2010-04-05 Thread R. David Murray

New submission from R. David Murray rdmur...@bitdance.com:

==
FAIL: test_ulonglong (ctypes.test.test_callbacks.Callbacks)
--
Traceback (most recent call last):
  File 
/home2/buildbot/slave/trunk.loewis-sun/build/Lib/ctypes/test/test_callbacks.py,
 line 68, in test_ulonglong
self.check_type(c_ulonglong, 42)
  File 
/home2/buildbot/slave/trunk.loewis-sun/build/Lib/ctypes/test/test_callbacks.py,
 line 31, in check_type
self.assertEqual(result, arg)
AssertionError: 0L != 42

--
components: Tests
keywords: buildbot
messages: 102371
nosy: r.david.murray, theller
priority: normal
severity: normal
stage: needs patch
status: open
title: test_ctypes fails in test_ulonglong on sparc buildbots
type: behavior
versions: Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8314
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8314] test_ctypes fails in test_ulonglong on sparc buildbots

2010-04-05 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

The ubuntu and debian sparc buildbots show the same failure, none of the other 
buildbots do.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8314
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8314] test_ctypes fails in test_ulonglong on sparc buildbots

2010-04-05 Thread Florent Xicluna

Florent Xicluna florent.xicl...@gmail.com added the comment:

This bug is already reported here:
http://bugs.python.org/issue8142#msg101134

--
nosy: +flox

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8314
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com