Bug #87331 mysql 5.7.19 run in arm64 aarch64 ubuntu 16.04 got error:
Submitted: 6 Aug 2017 20:34 Modified: 29 Aug 1:46
Reporter: vampire leech Email Updates:
Status: Analyzing Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:5.7.19 OS:Ubuntu (aarch64/Amlogic S905)
Assigned to: Bogdan Kecman CPU Architecture:ARM

[6 Aug 2017 20:34] vampire leech
Description:
========================== run mysqld ===========================================
root@NanoPi-K2:/server/bin# mysqld

Illegal instruction

======================= console info ====================== 

20:23:15 UTC - mysqld got signal 4 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
Attempting to collect some information that could help diagnose the problem.
As this is a crash and something is definitely wrong, the information
collection process might fail.

key_buffer_size=16384
read_buffer_size=262144
max_used_connections=0
max_threads=20
thread_count=0
connection_count=0
It is possible that mysqld could use up to 
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 6683 K  bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x0
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 0 thread_stack 0x3c000
mysqld(my_print_stacktrace+0x44)[0xdae3b4]
The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
information that should help you find out what is causing the crash.

========================= Hardward Info =========================== 
root@NanoPi-K2:/server/backup/source/mysql-5.7.19# cat /proc/cpuinfo 
Processor	: AArch64 Processor rev 4 (aarch64)
processor	: 0
processor	: 1
processor	: 2
processor	: 3
Features	: fp asimd crc32 
CPU implementer	: 0x41
CPU architecture: AArch64
CPU variant	: 0x0
CPU part	: 0xd03
CPU revision	: 4

Hardware	: Amlogic

root@NanoPi-K2:/server/backup/source/mysql-5.7.19# cat /proc/meminfo 
MemTotal:        1823072 kB
MemFree:          103676 kB
MemAvailable:    1672720 kB
Buffers:           36284 kB
Cached:          1471296 kB
SwapCached:            0 kB
Active:           770712 kB
Inactive:         767908 kB
Active(anon):      31392 kB
Inactive(anon):     7048 kB
Active(file):     739320 kB
Inactive(file):   760860 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:                20 kB
Writeback:             0 kB
AnonPages:         31048 kB
Mapped:             7456 kB
Shmem:              7392 kB
Slab:             104896 kB
SReclaimable:      89096 kB
SUnreclaim:        15800 kB
KernelStack:        1904 kB
PageTables:         1320 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:      911536 kB
Committed_AS:      92828 kB
VmallocTotal:    1048576 kB
VmallocUsed:       47796 kB
VmallocChunk:     962556 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB

How to repeat:
run in the env in:CPU:Amlogic S905

ARMv7 toolchain:
https://github.com/friendlyarm/prebuilts/raw/master/gcc-x64/arm-cortexa9-linux-gnueabihf-4...

linaro toolchain:
http://releases.linaro.org/components/toolchain/binaries/4.9-2017.01/aarch64-linux-gnu/gcc...
[6 Aug 2017 20:36] vampire leech
strace info

Attachment: strace_info.log (application/octet-stream, text), 37.33 KiB.