Various (possible) problems of aarch64

Here a list of possible problems of NetBSD/evbarm aarch64 that needs further investigation in order to write proper PR or better yet to fix them!

mpv and NetBSD crashes

Just by invoking mpv via:

$ mpv

It is possible to completely crash NetBSD on aarch64. Investigate why and if possible get a complete backtrace.

(Is it PaX MPROTECT related?)

Python import requests SIGILLs

Doing a (please note that also python36 is affected):

$ python2.7 -c 'import requests'
Illegal instruction (core dumped)
Exit 132

leads to a SIGILL. Trying to reduce the test case this also happens with just a:

$ python2.7 -c 'import OpenSSL'
Illegal instruction (core dumped)
Exit 132

Trying to debug this a bit further we can see:

% cat asi.py
import OpenSSL
% python2.7 -m trace --trace asi.py
[...]
binding.py(88):     for attr in dir(lib):
binding.py(89):         if attr not in excluded_names:
binding.py(90):             setattr(conditional_lib, attr, getattr(lib, attr))
binding.py(88):     for attr in dir(lib):
binding.py(89):         if attr not in excluded_names:
binding.py(90):             setattr(conditional_lib, attr, getattr(lib, attr))
binding.py(88):     for attr in dir(lib):
binding.py(89):         if attr not in excluded_names:
binding.py(90):             setattr(conditional_lib, attr, getattr(lib, attr))
binding.py(88):     for attr in dir(lib):
binding.py(92):     return conditional_lib
binding.py(126):                 cls._lib_loaded = True
binding.py(128):                 cls.lib.SSL_library_init()
Illegal instruction (core dumped)
Exit 132

Please also note that this problem seems limited to OpenSSL, ssl module works.

Add a comment