[Bug 1620754] Re: hash(datetime.datetime(...)) fails with python3.5 on armhf (on an arm64 host) with a bus error

Matthias Klose doko at ubuntu.com
Fri Sep 9 12:06:24 UTC 2016


with a -O0 build:

Program received signal SIGBUS, Bus error.
0x001a761e in siphash24 (src=0xf74e6fcd, src_sz=10) at ../Python/pyhash.c:384
384             uint64_t mi = _le64toh(*in);
(gdb) info locals
mi = 12884829592
k0 = 2790264422508071935
k1 = 4214380634785109344
b = 720575940379279360
in = 0xf74e6fcd
v0 = 6185254077475221130
v1 = 6778778058880104973
v2 = 5386417098822285726
v3 = 5627556395274645523
t = 1
pt = 0xf74b0320 ""
m = 0x1 <error: Cannot access memory at address 0x1>
(gdb) info args
src = 0xf74e6fcd
src_sz = 10

where _le64toh is defined as
#  define _le64toh(x) ((uint64_t)(x))

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python3.5 in Ubuntu.
https://bugs.launchpad.net/bugs/1620754

Title:
  hash(datetime.datetime(...)) fails with python3.5 on armhf (on an
  arm64 host) with a bus error

Status in python-cryptography package in Ubuntu:
  New
Status in python3.5 package in Ubuntu:
  New

Bug description:
  seen with
  https://launchpad.net/ubuntu/+source/python-cryptography/1.4-2/+build/10476934
  https://launchpad.net/ubuntu/+source/python-cryptography/1.5-1/+build/10678695

  the TestInvalidityDate.test_invalid_invalidity_date test is the first
  one to fail with a bus error. No reasonable traceback from gdb.

  Trying to build python3.5, python-cffi and python-cryptography with
  -mno-unaligned-access doesn't fix the issue (buildds running on a
  64bit kernel).

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-cryptography/+bug/1620754/+subscriptions



More information about the foundations-bugs mailing list