Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Illegal instruction (core dumped) #245

Closed
emily0418 opened this issue Jun 28, 2018 · 4 comments
Closed

Illegal instruction (core dumped) #245

emily0418 opened this issue Jun 28, 2018 · 4 comments
Labels

Comments

@emily0418
Copy link

在Docker环境中运行:
[root@zst1 ~]# sysbench /usr/local/share/sysbench/oltp_read_write.lua --mysql-host=172.17.0.2 --mysql-port=3306 --mysql-user=wubx --mysql-password=wubxwubx --mysql-db=wubx --tables=10 --table_size=100000 --mysql_storage_engine=Innodb prepare
Illegal instruction (core dumped)

sysbench版本:
[root@zst1 ~]# sysbench --version
sysbench 1.1.0-50966c8
core.zip

宿主机CPU类型:
[root@Docker30-Redhat opt]# cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
4 Intel(R) Xeon(R) CPU E5-2620 0 @ 2.00GHz

操作系统版本:
[root@Docker30-Redhat ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.3 (Maipo)
[root@Docker30-Redhat ~]# uname -a
Linux Docker30-Redhat.localdomain 3.10.0-514.el7.x86_64 #1 SMP Wed Oct 19 11:24:13 EDT 2016 x86_64 x86_64 x86_64 GNU/Linux

docker版本:
[root@Docker30-Redhat ~]# docker --version
Docker version 18.03.1-ce, build 9ee9f40

core日志文件见附件

@akopytov
Copy link
Owner

Can you try a binary built by me from https://packagecloud.io/akopytov/sysbench-prereleases/packages/el/7/sysbench-1.0.14.210-1.el7.centos.x86_64.rpm instead of the self-compiled one?

@emily0418
Copy link
Author

emily0418 commented Jun 28, 2018 via email

@emily0418
Copy link
Author

emily0418 commented Jun 28, 2018 via email

@akopytov
Copy link
Owner

Thanks for confirming. I think the reason is that you have built the binary optimized for a specific architecture (sysbench does that by default unless --without-gcc-arch is passed to ./configure), and somehow that architecture doesn't match whatever is provided inside the Docker container.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants