File:  [NetBSD Developer Wiki] / wikisrc / users / leot / aarch64_problems.mdwn
Revision 1.1: download - view: text, annotated - select for diffs
Mon Jun 18 12:30:36 2018 UTC (4 years, 5 months ago) by leot
Branches: MAIN
CVS tags: HEAD
Add a wiki page with some aarch64/Pinebook problems that needs further
investigations.

# 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!


## `usbhidctl` and NetBSD crashes on Pinebook

At least by running:

````
# usbhidctl -f uhid4 -r
````

it is possible to crash the Pinebook. Investigate why and if possible get a
complete backtrace.


## `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
````

CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb