[New-bugs-announce] [issue36024] ctypes: test_ctypes test_callbacks() crash on AArch64
STINNER Victor
report at bugs.python.org
Mon Feb 18 11:25:21 EST 2019
New submission from STINNER Victor <vstinner at redhat.com>:
Attached bug.py does crash *randomly* on AArch64. The code is extract from ctypes.test.test_as_parameter.AsParamPropertyWrapperTestCase.test_callbacks test.
Example with Python 2.7.15 and Python 3.6.8 on RHEL8:
# python2 bug.py
Illegal instruction (core dumped)
[root at cav-thunderx2s-cn88xx-01 ~]# python3 bug.py
...
OK
[root at cav-thunderx2s-cn88xx-01 ~]# python3 bug.py
Illegal instruction (core dumped)
I can reproduce the crash on Python 2.7.16rc compiled manually:
./configure --enable-unicode=ucs4 --with-system-ffi && make
RHEL8 currently uses libffi-3.1-18.el8.aarch64.
(I tried optimization levels -O0, -O1, -O2, -O3: I am always able to *randomly* trigger the crash.)
Original bug report, Python 2 crash on RHEL8:
https://bugzilla.redhat.com/show_bug.cgi?id=1652930
--
I don't know if it's related but I also saw the following error which has been reported in bpo-30991.
FAIL: test_pass_by_value (ctypes.test.test_structures.StructureTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/src/python-3.6.2/Lib/ctypes/test/test_structures.py", line 416, in test_pass_by_value
self.assertEqual(s.first, 0xdeadbeef)
AssertionError: 195948557 != 3735928559
----------
components: Library (Lib)
files: bug.py
messages: 335847
nosy: vstinner
priority: normal
severity: normal
status: open
title: ctypes: test_ctypes test_callbacks() crash on AArch64
versions: Python 2.7, Python 3.6
Added file: https://bugs.python.org/file48149/bug.py
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36024>
_______________________________________
More information about the New-bugs-announce
mailing list